Jump to content

Did I write this correct?


AnthemAVM

Recommended Posts

I want to make sure that if someone turns any one of the four exterior lights off between sunset and 10pm they turn back on.

 

Was it correct to put the And statement after the time?

 

If

From Sunset

To 10:00:00PM (same day)

And Status 'Outside-Front Door Lights' is Off

Or Status 'Outside-West Side Landscape L' is Off

Or Status 'Outside-East Side Landscape L' is Off

Or Status 'Outside-Balcony Lights' is Off

 

Then

Set 'Outside-Front Door Lights' On

Set 'Outside-Balcony Lights' On

Set 'Outside-West Side Landscape L' On

Set 'Outside-East Side Landscape L' On

 

Else

- No Actions - (To add one, press 'Action')

 

Thanks very much.

Link to comment

You may have to add some parentheses:

 

If
From Sunset
To 10:00:00PM (same day)
And 
(
Status 'Outside-Front Door Lights' is Off
Or Status 'Outside-West Side Landscape L' is Off
Or Status 'Outside-East Side Landscape L' is Off
Or Status 'Outside-Balcony Lights' is Off
)

Then
Set 'Outside-Front Door Lights' On
Set 'Outside-Balcony Lights' On
Set 'Outside-West Side Landscape L' On
Set 'Outside-East Side Landscape L' On

Else
- No Actions - (To add one, press 'Action')

 

You may also find some reliability benefits in creating a scene with all four lights as responders and turning the scene on rather than turning four lights on individually.

Link to comment

Archived

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


×
×
  • Create New...