mirror of
https://github.com/michivonah/esphome-eink-dashboard.git
synced 2025-12-23 05:26:27 +01:00
Fixes day/night detection and an indentation bug
Day/night detection is used in sensor.yaml to select the appropriate weather icon (e.g. 'sunny' vs 'night'). The previous if condition did not work for the weather_condition_x states, when the _now state was in a different part of the day/night cycle. This commit should fix this issue, as long as weather_condition_x is not too far in the future (not more than one day or night phase). Additional bug fix: - fix an indentation bug in weatherman.yaml
This commit is contained in:
parent
8789abfb11
commit
b73f1e0455
2 changed files with 7 additions and 7 deletions
|
|
@ -54,9 +54,9 @@ time:
|
|||
binary_sensor.is_on: motion_detected
|
||||
then:
|
||||
- logger.log: "Sensor data updated and activity in home detected: Refreshing display..."
|
||||
- component.update: eink_display
|
||||
- lambda: 'id(data_updated) = false;'
|
||||
else:
|
||||
- component.update: eink_display
|
||||
- lambda: 'id(data_updated) = false;'
|
||||
else:
|
||||
- logger.log: "Sensor data updated but no activity in home - skipping display refresh."
|
||||
else:
|
||||
- logger.log: "No sensors updated - skipping display refresh."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue