Hi Dave,

That's what I thought.. but it doesn't work because of the checking of the minutes. For example, if the current time is 18:07 and I want to set the on time to 16:45 then I tried
Code:
If lightsetHR[fn] <= timeH and lightsetMN[fn] <= timeM then
I used < because in this case lightsetHR = 16 and timeH=18. But as lightsetMN = 45 and timeM is 07 the condition is not matched. If used as per your example,
Code:
If lightsetHR[fn] >= timeH and lightsetMN[fn] >= timeM then
lightsetHR =16 which isn't > than timeH which is 18 so again the condition would not be matched

Does that make sense ?