Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: Accensione/Spegnimento luce con apertura porta
- trigger:
- - platform: state
- entity_id: binary_sensor.door_window_sensor_158d00023ea03f
- to: 'on'
- - platform: state
- entity_id: binary_sensor.door_window_sensor_158d00023ea03f
- to: 'off'
- action:
- service_template: '{% if trigger.to_state.state == "on" %} homeassistant.turn_on
- {% elif trigger.to_state.state == "off" %} homeassistant.turn_off {% endif %}'
- entity_id: light.gateway_light_7811dce210d1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement