Jump to content

Help with this simple program


TheEther

Recommended Posts

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

Link to comment

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

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...