Hi
I have made this automation to control some outdoor lights, but its not working.
what am i missing?
alias: "sol belysning "
description: ""
trigger:
- platform: sun
event: sunrise
offset: "-02:00:00"
condition:
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- type: turn_on
device_id: bb3d2aecd9c02365aa35009613530525
entity_id: switch.shelly_pro_2_switch_0
domain: switch
- delay:
hours: 2
minutes: 0
seconds: 0
milliseconds: 0
- type: turn_off
device_id: bb3d2aecd9c02365aa35009613530525
entity_id: switch.shelly_pro_2_switch_0
domain: switch
- wait_for_trigger:
- platform: sun
event: sunset
offset: 0
- type: turn_on
device_id: bb3d2aecd9c02365aa35009613530525
entity_id: switch.shelly_pro_2_switch_0
domain: switch
- delay:
hours: 2
minutes: 0
seconds: 0
milliseconds: 0
- type: turn_off
device_id: bb3d2aecd9c02365aa35009613530525
entity_id: switch.shelly_pro_2_switch_0
domain: switch
mode: single