AnthemAVM Posted December 24, 2010 Posted December 24, 2010 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.
oberkc Posted December 24, 2010 Posted December 24, 2010 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.
Recommended Posts