Front Door Motion Need Help


#1

I have created the piston below & all is working fine. What I want to do is only have the lights come on between sunset & sunrise, but can not figure that out. Any & all help is appreciated.
Mike


#2

In your IF you can use ONLY WHEN.

ONLY WHEN
Time is between Sunset and Sunrise. (No need to use variables. Use the presets that are already available).
IF
Motion Is Active
THEN
DO
Blah Blah.

EDIT: Can I ask why you have defined your devices into variables, and are then using the variables? You can just use the devices in your piston.
Just wondering about your reasoning. :slight_smile:


#3

I can not find the ONLY WHEN
I go to add a condition & do not see ONLY WHEN
Did I miss something?
Mike


#4

At the top of the editing page is a toolbar with a funnel icon. Select that to add a restriction.


#5

Just to add to @Bry ‘s reply you can also click on the options tab and’ tick’ the restrictions option.