Motion lights except if lights are manually turned off


#1

1) Give a description of the problem
I want a piston that will turn lights off with motion, and off after no motion. However, there are some instances when I want to keep the lights off. maybe someone is taking a nap or watching tv.
2) What is the expected behaviour?
Id like to be able to disable to motion lights and keep the lights off, and then later on, re-enable the motion lights.

3) What is happening/not happening?
Cant figure out how to temporarily disable motion lights

**4) Post a Green Snapshot of the piston![image|45x37]


#2

Just thinking out loud, I would use a virtual switch that you can control with alexa.


#3

you can pause and resume pistons from another piston. I’d try to define a virtual switch that I can set with Alexa or by a Smartthings automation, then use the following logic:

IF virtualSwitch switch changes to off
    THEN Pause piston "your other piston"
ENDIF

IF virtualSwitch switch changes to on
    THEN Resume piston "your other piston"
ENDIF

#4

How are you turning the lights off?

I personally would go with @Pantheon’s method and create a virtual switch called “Livingroom Automation” or something like that.

If Motion Sensor changes to Active && Livingroom Automation is On
    Turn on light

If Motion Sensor changes to Inactive && Livingroom Automation is On
    Turn off light

If you’ve got a push button for the room, you could use the long-press to toggle the automation switch as well.