|
AHA! Got it.
Part of day variable. I used variable 4 as a "flag" and apply other logic lines to the flag (see example at bottom) I used an internal timer to make sure the outside lights get turned on and dimmed at night. I used a 30 minute cycle because with 3 teenagers in the house, coming and going at all kinds of odd hours, it assures that they do not leave them on bright (waste of energy) or turn them off (security issue). After midnight (curfew time) I let the timers expire and turn the lights off.
0013 - IF Time of Day is > Sunrise offset 0 minutes 0014 - AND Time of Day is < 08:00 0015 - AND V4-Time-of-Day-Flag is NOT = 1 0016 - THEN V4-Time-of-Day-Flag = 1 0017 - IF Time of Day is > 07:59 0018 - AND Time of Day is < 16:00 0019 - AND V4-Time-of-Day-Flag is NOT = 2 0020 - THEN V4-Time-of-Day-Flag = 2 0021 - IF Time of Day is > 15:59 0022 - AND Time of Day is < Sunset offset 0 minutes 0023 - AND V4-Time-of-Day-Flag is NOT = 3 0024 - THEN V4-Time-of-Day-Flag = 3 0025 - IF Time of Day is > Sunset offset 0 minutes 0026 - AND Time of Day is < 23:00 0027 - AND V4-Time-of-Day-Flag is NOT = 4 0028 - THEN V4-Time-of-Day-Flag = 4 0029 - IF Time of Day is > 22:59 0030 - AND Time of Day is < 23:59 0031 - AND V4-Time-of-Day-Flag is NOT = 5 0032 - THEN V4-Time-of-Day-Flag = 5 0033 - IF Time of Day is > 00:00 0034 - AND Time of Day is < 05:00 0035 - AND V4-Time-of-Day-Flag is NOT = 5 0036 - THEN V4-Time-of-Day-Flag = 5
(for cycling the outside lights on a 30 minute cycle)
0112 - IF V4-Time-of-Day-Flag is = 4 0113 - AND T1-Nightime-Cycle-Timer is = 0 0114 - THEN T1-Nightime-Cycle-Timer = 1 0115 - THEN Transmit X10, O - All Units OFF (17) 0116 - THEN O2-Porch-Light, Turn ON 0117 - THEN O3-Porch-Light, Turn ON 0118 - THEN Transmit X10, O - 2 0119 - THEN Transmit X10, O - 3 0120 - THEN Transmit X10, O - Dim (21), 8 time(s) 0121 - IF T1-Nightime-Cycle-Timer is > 1800 0122 - THEN T1-Nightime-Cycle-Timer = 0
|