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

Change of Binary_Sensor-State does not happen

$
0
0

@bernd67 wrote:

This is what I build:

# Windalam Sensor
binary_sensor:
 - platform: template
   sensors:
      wind_alarm_state:
          entity_id:
            - sensor.wind_speed_station
            - input_number.slider1
            - input_number.slider2
          friendly_name: "Windalarm Status"
          value_template: >-
                  {%- if (states.sensor.wind_speed_station.state|float - states.input_number.slider1.state|float > 0.0 )
                      or (states.sensor.wind_speed_weather.state|float - states.input_number.slider1.state|float > 0.0 ) %}
                  'on'
                  {% else %}
                  'off'
                  {%- endif %}
          device_class: safety

I understood, that all changes in one of the listed items under entity_id will change the value depending on the value_template. I tought it would change from on to off (or the the way round) when I change the input_number.slider1 in a max or minimum using a slider in the gui.
But exactly nothing happens and the state of “wind_alarm_state” is from the begin on ‘off’.
Has anyone any suggestions?

Posts: 4

Participants: 3

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>