If the room is configured to use the illuminance threshold and the light
is currently on when the threshold is crossed it will never get turned
off unless it naturally turns off due to lack of motion, etc.
This adds a check in the motion_event to exit without refreshing the timer
If the room is configured to use the illuminance threshold and the light is currently on when the threshold is crossed it will never get turned off unless it naturally turns off due to lack of motion, etc.
This adds a check in the motion_event to exit without refreshing the timer