Advertisement
JLindvig

script

Sep 10th, 2020
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.38 KB | None | 0 0
  1. - alias: "Generic dimmer on sensor"
  2.   mode: parallel
  3.   sequence:
  4.     - service: light.turn_on
  5.       data_template:
  6.         entity_id: "{{ light }}"
  7.         brightness: 254
  8.         transition: 1
  9.     - wait_template: "{{ is_state(sensor, 'off') }}"
  10.     - service: light.turn_on
  11.       data_template:
  12.         entity_id: "{{ light }}"
  13.         brightness: 0
  14.         transition: 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement