well, the best way that I would do it as I sorta have in my set up is this:
set up 4 programs
1=Motion turn on
2=Switch turn on
3=Auto turn off
4=Switch turn off
1st program: Motion turn on
If
Control 'Motion Sensor 1' is switched On
Or Control 'Motion Sensor 2' is switched On
Or Control 'Motion Sensor 3' is switched On
Then
Set 'Basement Light' On (*note - or you would already have this as a scene and you wouldn't need ISY to turn on light, thus delaying the 'On' command)
Stop program 'Auto turn off'
Run program 'Auto turn off'
Else
- No Actions - (To add one, press 'Action')
2nd program: Switch turn on
If
Control 'Basement Light Switch' is switched On
Then
Stop program 'Auto turn off'
Run program 'Auto turn off'
Else
- No Actions - (To add one, press 'Action')
3rd Program: Auto turn off (this program should be disable)
If
- No Conditions - (To add one, press 'Schedule' or 'Condition')
Then
Wait x minutes
Set 'Basement Light' Off
Else
- No Actions - (To add one, press 'Action')
4th Program: Switch turn off
If
Control 'Basement Light Switch' is switched Off
Then
Stop program 'Auto turn off'
Else
- No Actions - (To add one, press 'Action')
Now, with this to work, you will need to set up motion sensors as 'On' Commands only in the options, this way, only ISY will control when the lights go off, not the motion detectors.
This is how I did my motion sensor and it's been working well. Unless someone has a better solution that maybe I don't know about.