First of all, yes I searched no haven’t really found a solution.
So I got a device that measures luminance in our house. What I would like to do it that if the luminance is below a certain treshold, lights in the house are activated.
I have a trigger for when the state of the sensor changes, that triggers if luminance is below 10. And then lights are turned on.
However I don’t wanne keep on sending lights on commands tot the lights and I don’t want them to be on all night. So, I have a limiter that only allows 1 message to go though, and at 2 am all the lights are turned off.
But, that rate limiting doesn’t really work as I hoped.
Say day 1 a message is fired at 19hrs.
Day 2 a message can only be fire after 19hrs and if it takes 5 minutes before the state of the device changes the message will be sent at 19.05. µ
Day 3 message can only be sent after 19.05 and if it takes 5 minutes …
So, even though it’s getting darker earlier and earlier, the lights go on later and later …
So instead of resetting every 24hrs is there a way to reset every time at noon or someting (midnight wont work since it’s still dark then and it would fire immediately)