Motion sensor light override


#1

1) Give a description of the problem
Cannot override motion sensor to keep light on.

2) What is the expected behavior?
In my current code, pressing the off button on my dimmer turns off my lights and turns off the “follow me” mode so that they do not turn on if motion is detected. Pressing the on button, turns on “follow me” mode so that if motion is sensed, the lights turn on and if no motion, they turn off.

The last option I am looking for is to press the dimmer on once more and make it override the motion sensor, keeping the light on regardless of activity.

3) What is happening/not happening?
Cannot go into stay on mode.

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)
image


#2

I have a similar setup.
If remote button changes to ON
change a global variable, which stops motion sensors messing with the lights…

But how I use is, instead of
IF remote button physically changes to ON or OFF
i use,
IF remote button CHANGES TO ON
or
IF remote button CHANGES TO OFF

and it works


#4

I’m not sure how I would be able to use that code in this instance.

IF remote button CHANGES TO ON
or
IF remote button CHANGES TO OFF

In the example above, if the button is already on, and I click it on once more, it didn’t change so it won’t run that code, right? Basically I’m just looking for an option to say, if the button is currently on, and I click the on button again (think dimmer paddle switch), it doesn’t register that I did anything cause nothing changed and there are no options for “button pressed” or anything like that.