jkraus Posted March 18, 2009 Posted March 18, 2009 Is this the best way to write a program to turn on and off a motion sensor controlled light but only when that light is not already on via an RL or KPL? is there another way since if I add this light to another scene or add another controller to the scene I need to go back and add them to this program. No other way to write it independent of what is controlling "garage lite" ? If Control '11.A0.A5-Sensor' is switched On And Status 'KPL A' is Off And Status 'RL Backyard #1' is Off And Status 'RL Backyard #5' is Off And Status 'RL Backyard #6' is Off Then Set 'Garage Lite' On Else - No Actions - (To add one, press 'Action') off: If Control '11.A0.A5-Sensor' is switched Off And Status 'KPL A' is Off And Status 'RL Backyard #1' is Off And Status 'RL Backyard #5' is Off And Status 'RL Backyard #6' is Off Then Set 'Garage Lite' Off Else - No Actions - (To add one, press 'Action')
Sub-Routine Posted March 18, 2009 Posted March 18, 2009 You could put all your controllers in one program and then check that program to be true. Status Off Check If Status 'Family Room KPL 2' is Off And Status 'House Remote 2' is Off And Status 'Living Room CL 2' is Off Then - No Actions - (To add one, press 'Action') Else - No Actions - (To add one, press 'Action') Motion On If Control 'Motion Sensor 2-Sensor' is switched On And Program 'Status Off Check' is True Then Set Scene 'Kitchen Motion' On Else - No Actions - (To add one, press 'Action') Motion Off If Control 'Motion Sensor 2-Sensor' is switched Off And Program 'Status Off Check' is True Then Set Scene 'Kitchen Motion' Off Else - No Actions - (To add one, press 'Action') Then you only need to maintain the Status Off Check program. Rand
Recommended Posts