Traditore Posted February 13, 2018 Posted February 13, 2018 Hi guys, Pretty simple setup. I have a motion sensor in the laundry room. It is part of a scene with the ceiling light (SwitchLinc Relay). When the sensor is triggered, the light turns on and after 30 seconds it turns off. How do I write a program to bypass the motion sensor if I Fast On the switch and re-enable the sensor if I Fast Off the switch? I tried something with Adjust Scene but got nowhere. Patrick
Goose66 Posted February 13, 2018 Posted February 13, 2018 1. Remove Scene. 2. Create first program: Laundry Room Motion (enabled): If 'Motion Detector' is switched On And 'Motion Detector' is not switched Off (assuming you want the motion detector to handle on and off timing) Then Set 'Laundry Room Light' On Else Set 'Laundry Room Light' Off 3. Create a second program: Laundry Room Switch (enabled): If 'Laundry Room Light' is switched Fast On And 'Laundry Room Light' is not switched Fast Off Then Disable Program 'Laundry Room Motion' Else Enable Program 'Laundry Room Motion' This will give you slower response time from motion to initial On of the light however. Another, less efficient way to do this is (keeping your existing scene): 1. Configure motion sensor to send Ons only. 2. Change first program above to: Laundry Room Motion (enabled): If 'Motion Detector' is switched On Then Wait 3 minutes Set 'Laundry Room Light' Off Else - No Actions - 3. Add second program as above This will give you the more instantaneous On of the scene with the same functionality, and will shut the Laundry Room Light off 3 minutes after the last motion. I haven't tested this, but according to Larry, disabling the first program in the second program will stop the first program sitting in the wait statement so that the light will not turn off. EDIT: I would make the second program: If 'Laundry Room Light' is switched Fast On And 'Laundry Room Light' is not switched Fast Off And 'Laundry Room Light' is not switched Off Then Disable Program 'Laundry Room Motion' Else Wait 1 Minute Enable Program 'Laundry Room Motion'
shovelhead Posted March 29, 2018 Posted March 29, 2018 Thanks Goose66. This was a very good description. It helped me to add the "override" piece my little logic puzzle. The tutorials are nice, but seeing an application related to my intent helps to make sense of it all. In my case, I wanted the door lock or either garage door being unsecured to trigger the front lights. When all doors and locks secure, wait 5 minutes then shut off the light. But, I wasn't sure how to keep the light on if I need it. Using the switch status to disable the program seems a cool way to do it. Folder (Sunset to Sunrise) FrontLightsOn IF Status 'Great Room / Front Door Lock- Sensor' is Off Or Status 'Garage / Garage 1-Sensor' is Off Or Status 'Garage / Garage 2-Sensor' is Off Then Set 'Outside / Front Lights' On Else No Action FrontLightsOff IF Status 'Outside / Front Lights' is On And Status 'Great Room / Front Door Lock- Sensor' is On And Status 'Garage / Garage 1-Sensor' is On And Status 'Garage / Garage 2-Sensor' is On Then Wait 5 minutes Set 'Outside / Front Lights' Off Else No Action FrontLightsOverride IF Control 'Outside / Driveway Lights' is switched Fast On And Control 'Outside / Driveway Lights' is not switched Fast Off Then Disable Program 'FrontLightsOff' Else Enable Program 'FrontLightsOff'
shovelhead Posted April 7, 2018 Posted April 7, 2018 On 3/28/2018 at 7:26 PM, shovelhead said: Thanks Goose66. This was a very good description. It helped me to add the "override" piece my little logic puzzle. The tutorials are nice, but seeing an application related to my intent helps to make sense of it all. In my case, I wanted the door lock or either garage door being unsecured to trigger the front lights. When all doors and locks secure, wait 5 minutes then shut off the light. But, I wasn't sure how to keep the light on if I need it. Using the switch status to disable the program seems a cool way to do it. Though my "Thanks" to Goose66 still stands, my logic does not. What I wrote up worked to a point but had some issues. Once I better understood the variables the logic fell into place. Now my lights and doors are in sync and have an easy override.
larryllix Posted April 7, 2018 Posted April 7, 2018 1 hour ago, shovelhead said: Though my "Thanks" to Goose66 still stands, my logic does not. What I wrote up worked to a point but had some issues. Once I better understood the variables the logic fell into place. Now my lights and doors are in sync and have an easy override. You have just been Goosed!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.