My goal,… is to extend the switch on-time for the light by 30mins either side of SunRise/Set, I have tried more variations than I care to include here,… without any real success.
I use this so that whenever a sensor in the hall detects motion the light comes on for 3 minutes (after the last motion detected) then goes off.
To limit this to time of day** I would add an additional condition in my automation so that the light wouldn’t turn ON during the day - I am fine with it turning OFF at any time.
** - I use a manual “house mode” that I set to “day” when I get up, since I don’t have a fixed schedule, but the effect is the same.
Its been a while since I worked with sunset and sunrise, but that line I read as it should only work after sunrise, so the automation would work during the day and not the night.
Is that what you want?
Same thing goes for your sunset line.
Also avoid using device_ids.
Use entity_ids instead.
No no,… your question is quite valid,…
I want the automation to turn the light on (enable) before sunrise,… and after Sunset,…
But to extend each 30 Mins… ie end later than Sunrise, but to start earlier than sunset…
Thankyou for pointing out the obvious…
PS,… why use entity_ids rather than device_ids?? for my education
David,… Many tx for explanation,… Trying to understand and second guess if you have it correctly configured can be a little painful,… but when it is verbally explained, for a working example,… it makes so much more sense…
And then gives one insight to move to the next level/task…
Again Many tx