I would like to have a trigger based on sun sunrise/sunset datetime but with some restrictions (like never before 7am) with a single automation (I don’t think I can do that with ‘conditions’).
Something like:
trigger:
platform: sun
event: max(sunrise, "07:00")
The template trigger looks interesting for this but I’m totally lost with the ninja2 syntax.
Thanks Tinkerer, that would work !
In the meantime I was wondering if I could have a template trigger with something like ([‘tomorrow 7h’, ‘sun.sun.next_dawn’]|min), but I don’t know jinja2 enough.
I may have a look at the sun trigger code directly to add optional ‘never_before’/‘never_after’ settings.