@EricR wrote:
I created a simple sensor to identify if the temperature is going to be warmer or cooler using darksky. It returned “warmer” but does not change to “cooler”. No errors in the logs. It’s as if it only evaluated when I restarted HASSIO and won’t evaluate again. What am I doing wrong?
#State of weather for weather light bulb - platform: template sensors: weather_state_custom: entity_id: - sensor.dark_sky_daytime_high_temperature_0d - sensor.dark_sky_daytime_high_temperature_1d value_template: >- {% if float('sensor.dark_sky_daytime_high_temperature_0d') < float('sensor.dark_sky_daytime_high_temperature_1d') %}warmer {% else %}cooler {% endif %}
Posts: 1
Participants: 1