I’ve been using the solar angle instead of sunrise/sunset with an offset for automation triggers, but I have found that if I reboot the system when the solar angle in below my defined trigger, i.e below -2 it can trigger at any point if it is below -2 and the system is rebooted.
What is the best practice please? i.e. I want it to trigger ONLY once even if it is rebooted.
My sunset/sunrise automation frequently triggers a couple of times on the same day.
In my case it doesn’t matter.
If it did, I would probably add an input boolean to flag on the first activation.
I think the reason is that when the system is starting it doesn’t know where the sun is.
So before it does the calculation it assumes ‘0’ which is below your level and thus triggers
I think you’d have to run a script or timer to run on reboot to stop activation until say 1 min expired ??
You might have to tweak it a bit as if it is below 1 when the timer prevents action then it may not trigger again
So it may be wise to run the evaluation and action at the end of the script regardless
Mutt