Madelena / esphome-weatherman-dashboard

A simple dashboard with weather and NYC subway information for ESPHome
https://community.home-assistant.io/t/use-esphome-with-e-ink-displays-to-blend-in-with-your-home-decor
947 stars 48 forks source link

Fixes day/night detection and an indentation bug #17

Closed pehses closed 1 year ago

pehses commented 1 year ago

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:

Madelena commented 1 year ago

Thank you for the fixes @pehses 😊