So I cant wrap my head around how to do this, so perhaps someone can help with the logic. I want a variable to go from false to true if motion has not been detected for at least an hour and it is past a time, say 11pm.
So here it is in a sentence, "If it is past 11, but before 8 am and motion has not been sensed in the last hour, then check every 5 minutes afterward, as soon as there has been no motion for an hour, set the variable from false to true"
I am getting heartbeats from the motion sensors...
Any ideas?