Jump to content

Did I write this correct?


AnthemAVM

Recommended Posts

Posted

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.

Posted

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.

Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Who's Online (See full list)

  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...