Advertisement
bafplus2

Ha-sun-automation

Dec 2nd, 2021
1,123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.81 KB | None | 0 0
  1. alias: Buitenlamp aan en uit
  2. description: Buitenlamp aan bij zonsopkomst en uit bij zonsondergang
  3. trigger:
  4.   - platform: sun
  5.     event: sunrise
  6.     id: Sunrise
  7.     offset: '+00:30:00'
  8.   - platform: sun
  9.     event: sunset
  10.     id: Sunset
  11.     offset: '-00:30:00'
  12. condition: []
  13. action:
  14.   - choose:
  15.       - conditions:
  16.           - condition: trigger
  17.             id: Sunset
  18.         sequence:
  19.           - type: turn_on
  20.             device_id: 05c2909d59002f280abf688c49302123
  21.             entity_id: light.buitenlamp
  22.             domain: light
  23.       - conditions:
  24.           - condition: trigger
  25.             id: Sunrise
  26.         sequence:
  27.           - type: turn_off
  28.             device_id: 05c2909d59002f280abf688c49302123
  29.             entity_id: light.buitenlamp
  30.             domain: light
  31.     default: []
  32. mode: single
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement