Advertisement
yurghie

Untitled

May 12th, 2023
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.66 KB | None | 0 0
  1.  - alias: Vaskerom - lysautomatikk
  2.     mode: restart
  3.     trigger:
  4.       - platform: state
  5.         entity_id: binary_sensor.vaskerom_pir_occupancy
  6.         to: 'on'
  7.     action:
  8.       - service: light.turn_on
  9.         data_template:
  10.           entity_id: light.vaskerom_1, light.vaskerom_2
  11.           brightness: '{{254 if states("binary_sensor.lyst_ute")=="on" else 127}}'
  12.       - delay: '00:03:00'
  13.       - service: light.turn_on
  14.         data:
  15.           entity_id: light.vaskerom_1, light.vaskerom_2
  16.           brightness: 1
  17.           transition: 10
  18.       - delay: '00:01:00'
  19.       - service: light.turn_off
  20.         data:
  21.           entity_id: light.vaskerom_1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement