Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - alias: Vaskerom - lysautomatikk
- mode: restart
- trigger:
- - platform: state
- entity_id: binary_sensor.vaskerom_pir_occupancy
- to: 'on'
- action:
- - service: light.turn_on
- data_template:
- entity_id: light.vaskerom_1, light.vaskerom_2
- brightness: '{{254 if states("binary_sensor.lyst_ute")=="on" else 127}}'
- - delay: '00:03:00'
- - service: light.turn_on
- data:
- entity_id: light.vaskerom_1, light.vaskerom_2
- brightness: 1
- transition: 10
- - delay: '00:01:00'
- - service: light.turn_off
- data:
- entity_id: light.vaskerom_1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement