Hey guys,
I have an automation set up that turns my garden lights ON an hour (or so) after sunset and a second one that turns them OFF an hour (or so) before sunrise.
What i want to achieve is to write a third automation that will run when the HA boots and will turn the lights ON the time is between the aforementioned ones.
Here is what i am working on, but it wont fire as expected.
- alias: Turn on garden after reboot
trigger:
platform: homeassistant
event: start
condition:
condition: and
conditions:
- condition: sun
after: sunset
after_offset: "00:32:00"
- condition: sun
before: sunrise
before_offset: "01:00:00"
action:
alias: Turn Garden On
entity_id: group.fwta_kipou
service: switch.turn_on
If i manually trigger it, it does turn on the lights.
I have an identical automation that notifies me when HA boots up.
So i am guessing that the action and trigger parts are ok, what’s wrong with the condition part?