Hi Bud,
I'm not speaking for Guy (whom you asked), but I'm sure he'll correct me if there is any error in the following:
The code Guy posted will use an end time of midnight, since midnight is 0:00, which will never be greater than the normal turn on time. If you wanted to have an earlier (than midnight) end time, such as 11:00pm (23:00), you could add an additional line like this:
IF Variable #1 becomes = 0 //if TV mode has just ended
AND Time of Day is > normal turn on time //and lights should be on at this time
AND Time of Day is < end normal turn on time
THEN X10 A/7 Turn ON //then turn on lights now
Conversely, if you wanted an end time that was past midnight, such as 1:00am, you could again add a single line:
IF Time of Day is > normal turn on time //lights should be on at this pm time
OR Time of Day is < end normal turn on time //or this am time
AND Variable #1 becomes = 0 //and TV mode has just ended
THEN X10 A/7 Turn ON //then turn on lights now
Notice the order of the statements had to be slightly modified, because of the OR clause.
_________________________
Just Another Joe
Why be politically correct, when you can be right?