I have the following piston set up to turn my bedroom lights on when there’s motion and when it’s dark and between the hours of 5:45 AM and 8:55 PM during the week. It works fine the first time it fires - the room is dark, it knows it’s dark, it sees motion and the lights come on. But they go off after 2 or so minutes even though the sensor still sees motion. I’m guessing it’s because the light level now is above the threshold I have set.
My question is, how do I get it to look at lux once and only once per piston fire. After the lights go out for no motion, I’d want it to evaluate lux again.