TheEther Posted June 16, 2013 Posted June 16, 2013 The following program is intended to turn on the lights in the kitchen when the garage door is opened between sunset and sunrise and the Elk is armed in certain modes. It doesn't work that way though... What this program does is turn on the lights at Sunset regardless of whether the garagedoor is open or not and leaves them on till I turn them off. Appreciate your help. If From Sunset To Sunrise (next day) And Elk Area 'House' 'Armed State' is Armed Away Or Elk Area 'House' 'Armed State' is Armed Night Instant Or Elk Area 'House' 'Armed State' is Armed Stay And Elk Zone 'Garage Ovrhd Dr' 'Physical Status' is Open Then Set '1st Floor Kitchen Bar Lights' 50% Else Set '1st Floor Kitchen Bar Lights' Off
LeeG Posted June 16, 2013 Posted June 16, 2013 You need some parens to get the order of precedence correct If From Sunset To Sunrise (next day) And ( Elk Area 'House' 'Armed State' is Armed Away Or Elk Area 'House' 'Armed State' is Armed Night Instant Or Elk Area 'House' 'Armed State' is Armed Stay ) And Elk Zone 'Garage Ovrhd Dr' 'Physical Status' is Open Then Set '1st Floor Kitchen Bar Lights' 50% Else Set '1st Floor Kitchen Bar Lights' Off
TheEther Posted June 16, 2013 Author Posted June 16, 2013 I hadn't noticed the Peren's lines *facepalm*. Thank You!
Recommended Posts