jjones3318
New Member
Hi - I've been trying to figure this one out without success.
The premise is simple - turn the garage lights on for 1 minute if it's dark out, or if the time is less than 59 minutes before sunset or after sunrise when going from the mud room to the garage. The G2 timer is used to prevent the lights being turned on if the garage door was opened within three minutes of the mud room door going not ready, as the lights on the garage door opener are on at that time. The sunset/sunrise conditions need to be added to this block, which I haven't done yet.
The problem is, no matter the time of day or night, this code always turns the lights on. I can't figure out why that's happening.
The premise is simple - turn the garage lights on for 1 minute if it's dark out, or if the time is less than 59 minutes before sunset or after sunrise when going from the mud room to the garage. The G2 timer is used to prevent the lights being turned on if the garage door was opened within three minutes of the mud room door going not ready, as the lights on the garage door opener are on at that time. The sunset/sunrise conditions need to be added to this block, which I haven't done yet.
The problem is, no matter the time of day or night, this code always turns the lights on. I can't figure out why that's happening.
Code:
19. WHEN Garage Door NOT READY
AND IF DARK
THEN Door Timer G2 ON FOR 3 MINUTES
20. WHEN Mud Room Door NOT READY
AND IF Door Timer G2 OFF
AND IF Garage Overhead Lights OFF
AND IF DARK
OR
AND IF Door Timer G2 OFF
AND IF Garage Overhead Lights OFF
AND IF TIME IS LESS THAN 59 MINUTES BEFORE SUNSET
OR
AND IF Door Timer G2 OFF
AND IF Garage Overhead Lights OFF
AND IF TIME IS LESS THAN 59 MINUTES AFTER SUNRISE
THEN SET LIGHTING LEVEL Garage Overhead Lights TO 50% FOR 1 MINUTE