larry shows how cold it is outside

This commit is contained in:
Gabor Körber 2025-04-01 23:28:11 +02:00
parent 11fd08d37a
commit 7d2ad2558a

View File

@ -728,6 +728,7 @@ light:
restore_mode: ALWAYS_ON
default_transition_length: 50ms
# MARK: Sensors
sensor:
- platform: aht10 # remove for no sensor version
i2c_id: bus_b
@ -795,7 +796,7 @@ sensor:
- platform: homeassistant
name: "HA Weather Temperature"
entity_id: weather.home
entity_id: weather.forecast_home
attribute: temperature
id: ha_weather_temp
@ -877,7 +878,7 @@ text_sensor:
- platform: homeassistant
name: "Weather Condition"
entity_id: weather.home
entity_id: weather.forecast_home
attribute: condition
id: ha_weather_condition
@ -1987,9 +1988,9 @@ display:
it.strftime(160, 88, id(my_font2), TextAlign::CENTER, "%l:%M%p", id(ha_time).now());
}
// Temperature from Home Assistant weather entity
it.printf(240, 181, id(my_font4), light_blue, TextAlign::CENTER, "%.f°C", id(ha_weather_temp).state);
it.printf(240, 161, id(my_font4), light_blue, TextAlign::CENTER, "%.f°C", id(ha_weather_temp).state);
// Weather condition (e.g. "partlycloudy", "sunny", etc.)
it.printf(240, 220, id(my_font4), light_blue, TextAlign::CENTER, "%s", id(ha_weather_condition).state.c_str());
it.printf(240, 210, id(my_font4), light_blue, TextAlign::CENTER, "%s", id(ha_weather_condition).state.c_str());
// Device
it.printf(80, 181, id(my_font4), light_blue, TextAlign::CENTER, "%.f°C", id(s3temp).state);