I have 4 automations to put on/off the same light. Can it in one ? these are the triggers…
in the morning
triggers:
- trigger: sun
event: sunrise
offset: "-01:30:00"
conditions: []
actions:
- action: switch.turn_on
triggers:
- trigger: sun
event: sunrise
offset: "+01:30"
conditions: []
actions:
- action: switch.turn_off
in the evening
triggers:
- trigger: sun
event: sunset
conditions: []
actions:
- action: switch.turn_on
triggers:
- trigger: time
at: "22:30:00"
conditions: []
actions:
- action: switch.turn_off