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
- from: 'off'
- to: 'on'
- action:
- data:
- entity_id: light.gateway_light_7c49ebb1dfcb
- brightness: 50
- rgb_color: [128, 0, 0]
- service: light.turn_on
- - alias: Accensione/Spegnimento luce con apertura porta
- trigger:
- - platform: state
- entity_id: binary_sensor.door_window_sensor_158d00023ea03f
- from: 'on'
- to: 'off'
- action:
- data:
- entity_id: light.gateway_light_7c49ebb1dfcb
- service: light.turn_off
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement