I want to have an automation that closes curtains at :
OR at Sunset + 15 mins
OR at 8 pm
I have created the following Script and would like to know if this is correct:
alias: MBR Dark Curtains
sequence:
- condition: or
conditions:- condition: time
before: “20:00:00”
weekday:- mon
- tue
- wed
- thu
- fri
- sat
- sun
- condition: or
conditions:- condition: sun
after: sunset
after_offset: “15” - condition: or
conditions:- condition: sun
before: sunset
after: sunset
after_offset: “45”
- condition: sun
- condition: sun
- condition: time
- type: turn_on
device_id: d12793886c34239a69d8e8980c030e18
entity_id: switch.10a_mbr_dark_curtains
domain: switch
mode: single