kayo77

HA sun

Mar 14th, 2021
953
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.98 KB | None | 0 0
  1.  alias: Włącz światło u Toli
  2.   description: ''
  3.   trigger:
  4.   - type: motion
  5.     platform: device
  6.     device_id: 2fee3e503d054080bd88509f2221d5e6
  7.     entity_id: binary_sensor.czujnik_ruchu_tola_occupancy
  8.     domain: binary_sensor
  9.   condition:
  10.   - after: sunset
  11.     after_offset: -00:30:00
  12.     condition: sun
  13.   - before: '21:30'
  14.     condition: time
  15.   action:
  16.   - data: {}
  17.     entity_id: light.swiatlo_pokoj_toli_light
  18.     service: light.turn_on
  19.  
  20. - id: '1600285164007'
  21.   alias: Włącz blat
  22.   description: ''
  23.   trigger:
  24.   - event: sunset
  25.     platform: sun
  26.   condition: []
  27.   action:
  28.   - device_id: 1018e2467b8c4c96816126ad3b32cae8
  29.     domain: switch
  30.     entity_id: switch.blat
  31.     type: turn_on
  32.   mode: single
  33. - id: '1600285206199'
  34.   alias: Wyłącz blat
  35.   description: ''
  36.   trigger:
  37.   - at: '23:30:00'
  38.     platform: time
  39.   condition: []
  40.   action:
  41.   - device_id: 1018e2467b8c4c96816126ad3b32cae8
  42.     domain: switch
  43.     entity_id: switch.blat
  44.     type: turn_off
Advertisement
Add Comment
Please, Sign In to add comment