From 79baa484c7123dea3459060256b94a545f36b7bf Mon Sep 17 00:00:00 2001 From: void Date: Wed, 2 Apr 2025 18:25:19 +0000 Subject: [PATCH] Update watchwip fixed temp display --- watchwip | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/watchwip b/watchwip index 12f1eb5..518ea96 100644 --- a/watchwip +++ b/watchwip @@ -117,7 +117,7 @@ display: it.print(0, 10, id(font1), id(weather_condition).state.c_str()); // Display current temperature under the weather condition - String temp_str = "Temp: " + String(id(temperature).state) + " °F"; // Create the temperature string + String temp_str = "Temp: " + String(static_cast(id(temperature).state)) + " °F"; // Truncate decimal it.print(0, 20, id(font1), temp_str.c_str()); // Convert the String to a const char* and display it # Define pull-up buttons for GPIOs @@ -125,7 +125,23 @@ binary_sensor: - platform: gpio pin: number: GPIO12 + mode: INPUT_PULLUPesphome: + name: esphome-web-ad0671 + friendly_name: WATCH + min_version: 2024.11.0 + name_add_mac_suffix: false + +esp8266: + board: esp01_1m + +# Enable logging with debug level +… name: "Button GPIO14" + - platform: gpio + pin: + number: GPIO0 # Boot button on most ESP32 boards mode: INPUT_PULLUP + inverted: true # Inverted because it's typically pulled low when pressed + name: "Boot Button" name: "Button GPIO12" - platform: gpio pin: