Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Sensor does not change state

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>