Waketech Posted June 28, 2014 Posted June 28, 2014 All, I have the following program If From Sunset +30 min To Sunrise - 30 min (next day) or Module climate light <=5 Then Set lights on Else Set lights off The issue is it looks like to light turn off all the time based on light level rather than 30 min before sunrise, any help would be appreciated.
oberkc Posted June 28, 2014 Posted June 28, 2014 Have you tried a different light level to see if it better matches your expectaions?
Waketech Posted June 28, 2014 Author Posted June 28, 2014 Have you tried a different light level to see if it better matches your expectaions? I am happy with the light level when it works on its own, however I want to combine the two for darker days. Currently my sunrise is at 5:08 am and the lights turn off at 7:45 not at 4:38. So I am not sure what is going on. The intent is to turn off based on time (sunrise) or light level. I have determined that the lights are turning off based on the last run time, I assume this is ok as nothing else should be triggered and/or trying to run this program ?
oberkc Posted June 28, 2014 Posted June 28, 2014 Ah! So it is actually PASSING sunrise and waiting until the light level kicks in? I can see why your program does this. BOTH conditions (time and dark) must be FALSE for the program to be false. If time is sunrise-30 while it is still dark, the program will remain TRUE. Without thinking too much about this, you may need to break into two programs If time is sunset or it is dark then turn lights on if time is sunrise or it is light then turn lights off
Waketech Posted June 28, 2014 Author Posted June 28, 2014 I will give this a try. On a side note I just looked at the status again and it last ran at 12:30, obviously there was enough light, any ideas ?
oberkc Posted June 28, 2014 Posted June 28, 2014 Yes, I do have an idea. I suspect that the lighting levevs continue to change over the morning (and evenings). Each change triggers the program. In your case it was last triggered at 12:30. The status was likely already false, so the program probably sent an OFF command to lights that were already off. That sort of thing probably happens several times each morning, and each night.
Recommended Posts