Suppress motion light ON if manually turned off

I have a motion sensor and a light switch. They’re relatively close together, in that if someone moves to or from the light switch, the motion sensor will trigger. Currently, if motion is sensed and the stairway light is off while either sleep mode is enabled or it’s night, I have the stairway light go on. Here’s my condition:

!t31_Stairway_Light_On AND t12_Second_Floor_Motion AND (t04_Sleep_Mode_On OR c02_Night)

What I’d like to do, mainly to appease my wife, is allow someone to turn off the stairway light at the switch without having the motion sensor trigger immediately turn it back on. Ideas?

I’m finding various threads on this using Google to search the site… but nothing definitive:
[url=http://forum.micasaverde.com/index.php/topic,14544.msg110490.html#msg110490]http://forum.micasaverde.com/index.php/topic,14544.msg110490.html#msg110490[/url]
[url=http://forum.micasaverde.com/index.php?topic=14709.0]http://forum.micasaverde.com/index.php?topic=14709.0[/url]

Here’s what I’m thinking I’ll try… I’ll just keep the condition above, and when it’s satisfied, I’ll disarm the motion sensor (as well as turn on the light). I’ve set the motion sensor to trigger only when armed. When the light is turned off, I’ll rearm the motion sensor after a 10-second delay. That might be a simple solution.

This is where sequence expressions can help you!

!t31_Stairway_Light_On AND t12_Second_Floor_Motion AND (t04_Sleep_Mode_On OR c02_Night) AND (!t31_Stairway_Ligh_On; t12_Second_Floor_Motion > 30)

This will ignore the Motion for 30 seconds after the light is manually turned off!

That’s good! Although, my solution worked too. I tested it around an hour later… I came upstairs and the light came on. Then I went over to the switch, filed off the light, and it stayed off as I walked in front of the sensor.

Thanks for the response!