I’m sure this has been covered before, but I did not find any similar topic.
I would like my lights to turn on at different times depending on the local weather condition,
This could be solved by using different offsets depending on the current weather condition.
Sure, I could use two automations/aliases, but it would be better to have a more clean code.
Any idea of how to alter the example code below in order to accomplice my intention?
- alias: "Turn on the light at sunset"
trigger:
platform: sun
event: sunset
offset: '+00:00:00'
action:
- service: homeassistant.turn_on
entity_id: light.mylight