How do I make an automation to turn on a boolean_input helper entity when the output of a sensor is between 0 and 0.5
It’s the between that I can’t figure out.
How do I make an automation to turn on a boolean_input helper entity when the output of a sensor is between 0 and 0.5
It’s the between that I can’t figure out.
Numeric state trigger… Listing above
and below
together means the numeric state has to be between the two values.
trigger:
- platform: numeric_state
entity_id: sensor.example
above: 0
below: 0.51
condition: []
action:
- service: input_boolean.turn_on
target:
entity_id: input_boolean.example
If you don’t specifically need the ability to turn it on and off manually, another option would be to use a template binary sensor.
Thanks. Senior moment- I forgot about editing in YAML.