Advertisement
314ma

motyle

Jul 3rd, 2023 (edited)
1,131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.54 KB | None | 0 0
  1. motyle_oswietlenie_zmierzch_jesien_zima:
  2.   alias: "Motyle - Oświetlenie - Zmierzch (Jesień - Zima)"
  3.   sequence:
  4.   - if:
  5.     - condition: time
  6.       after: "17:30:00"
  7.       before: "19:10:00"
  8.     - condition: template
  9.       value_template: "{{ now().month in [1, 2, 3, 4, 9, 10, 11, 12] }}"
  10.     then:
  11.     - service: light.turn_on
  12.       data:
  13.         transition: 5
  14.         brightness_pct: "{{ min(100, max(1149 - (now().hour*60 + now().minute), 0)) }}"
  15.         kelvin: 6500
  16.       target:
  17.         entity_id: light.motyle_oswietlenie
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement