#Sun automations, between certain time possible?
1 messages · Page 1 of 1 (latest)
Yes, then it executes after sun dawn and an hour before sunset
What about it should execute an hour before sunset and sunset?
It's right there. Select "before" and add -01:00:00 as the offset.
Offsets can be in either direction. So an hour after would be +01:00:00 and an hour before would be -01:00:00
But then the condition is "after sundawn, before sunset minus 1h.
It can execute in a super large timeframe.
Im talking about a timespan of just 1 hour when the automation can execute
What is your exact condition you want?
I could make a binary switch that executes an hour before sunset. But thats complicated
If it's either an hour before or an hour after?
If the sun is between down, and 1 hour before down, and then brightness of device below x, execute that
use 2 sun conditions anded together.
after an hour before sunset and before sunset
conditions:
- condition: sun
after: sunset
after_offset: "-01:00:00"
- condition: sun
before: sunset
use whatever trigger you want but that will ensure the automation only fires between the hour before sunset
That looks a bit redundant to me..
Breaks my logic train. But maybe I'm just seeing something weird that is t there.
it might need a +1 instead of -1
Thanks this is what i needed 🙂
just checked docs, hour before sunset is -1