I’m having trouble with YAML. I want to link two conditions in an automation:
The roller shutter should open when it’s 7:00 AM AND sunrise. So, in summer, it should open at 7:00 AM, and in winter, only at sunrise.
The reverse: closing the roller shutter when it’s 7:00 PM OR sunset is trivial, as it can be achieved with two separate automations, but it’s not elegant:
Hi tom_I,
Thanks for your help. The season isn’t THE deciding factor. I only mentioned it for clarification.
The crucial point is whether sunrise occurs before or after 7:00 a.m.:
If sunrise is before 7:00 a.m., the blind should open at 7:00 a.m.
If sunrise is after 7:00 a.m., the blind should open at sunrise.