#Hi is there any way to change status of
1 messages ยท Page 1 of 1 (latest)
binary_sensor:
- platform: template
sensors:
inverted_sensor:
friendly_name: Door
value_template: >-
{% if is_state('binary_sensor.isa_dw2hl_501c_magnet_sensor', 'on') %}
off
{% elif is_state('binary_sensor.isa_dw2hl_501c_magnet_sensor', 'off') %}
on
{% elif is_state('binary_sensor.isa_dw2hl_501c_magnet_sensor', 'unavailable') %}
unavailable
{% else %}
error
{% endif %}
tbh iโd just make a helper and set up two automations, one that turns the helper off when the boolean turns on, and another for the opposite ๐
thx! I am going to try it. ๐