kenza Posted July 6, 2014 Share Posted July 6, 2014 Hi guys! I am trying to program something quite simple: When Door opens? if time is night timeTurn on the hall light The problem is my system keeps turning on the light even during the day. I tried specifying between 7PM and 7AM and no luck. Any suggestions? Thanks in advance! Link to comment Share on other sites More sharing options...
msgreenf Posted July 6, 2014 Share Posted July 6, 2014 Do you have your longitude and latitude set correctly? Sent from my XT1060 using Tapatalk Link to comment Share on other sites More sharing options...
kenza Posted July 6, 2014 Author Share Posted July 6, 2014 Hm, have no idea how to confirm that But I do see correct sunrise and sunset values when I go to Agents / Scheduler. Thanks! Link to comment Share on other sites More sharing options...
TexasBill Posted July 6, 2014 Share Posted July 6, 2014 Hi guys! I am trying to program something quite simple: When Door opens? if time is night timeTurn on the hall light The problem is my system keeps turning on the light even during the day. I tried specifying between 7PM and 7AM and no luck. Any suggestions? Thanks in advance!You need to INDENT the turn on hall light so that it is indented underneath the "if time is night time" They should not be "even" in the left column.Drag and drop the turn on the light on top of the if time statement. Bill Link to comment Share on other sites More sharing options...
msgreenf Posted July 6, 2014 Share Posted July 6, 2014 Good catch bill! Sent from my XT1060 using Tapatalk Link to comment Share on other sites More sharing options...
kenza Posted July 6, 2014 Author Share Posted July 6, 2014 Bill, thanks a lot, that was the problem. Even with your advice, it took me a couple of tries until I dropped the command over the question mark symbol. Have a great day! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.