Culvdave Posted April 10, 2016 Posted April 10, 2016 I have 2 motion sensors on either side of the bed at the baseboard that control LED strips around the perimeter of the bed. I have a simple program to control it now: .Master Bed LED - [iD 0011][Parent 0001] If From Sunset - 1 hour To Sunrise + 31 minutes (next day) And Control 'Master Bed Sensor 1' is switched On Or Control 'Master Bed Sensor 2' is switched On Then Set Scene 'Master Bed LED' On Wait 1 minute Set Scene 'Master Bed LED' Off Else - No Actions - (To add one, press 'Action') The scene has only the lamplinc the led's are plugged into in it and there is a delay, I'm assuming because the MS's are not in the scene. Can I have both MS's in the scene as controllers?
paulbates Posted April 10, 2016 Posted April 10, 2016 (edited) Hi Yes, you can. Have the MS's 'Send on Commands only. You can then remove the 'Set Scene on' statement. The scene will turn the lamp on right away, and your program will turn it off: If From Sunset - 1 hour To Sunrise + 31 minutes (next day) And ( Control 'Master Bed Sensor 1' is switched On Or Control 'Master Bed Sensor 2' is switched On ) Then Set Scene 'Master Bed LED' On Wait 1 minute Set Scene 'Master Bed LED' Off Else - No Actions - (To add one, press 'Action' EDIT: you'll need to put the If logic in parens as bolded above Edited April 10, 2016 by paulbates
oberkc Posted April 10, 2016 Posted April 10, 2016 (edited) You can have multiple controllers in a scene, even if the controllers are motion sensors. Yes, the program can cause perceptble delays. You may also notice that you program, as written, may cause the lights to come on during daytime hours (edit...looks like this was caught before I could post). Using a scene to turn them on, however limits the ability to constrain when the lights respond, other than based on the built-in light sensors. You could not, for example, limit response to sunset to sunrise. Consider, also, the possibility that you could use a scene to turn them on, but a program to turn them off. In my mind, this can provide a nice combination of speed and flexibility. Edited April 10, 2016 by oberkc
Culvdave Posted April 10, 2016 Author Posted April 10, 2016 (edited) You are correct, I used paulbates program and the lights come on during the day, problem with using built in light sensors is that the MS's are down at the baseboard where it is dark all the time. There is no delay though so given a choice I can live with lights coming during the day. I will experiment with adjusting sensitivity on the light sensors but it is pretty dark down there. Also, the lights aren't turning off after 1 minute Edited April 10, 2016 by Culvdave
larryllix Posted April 10, 2016 Posted April 10, 2016 You are correct, I used paulbates program and the lights come on during the day, problem with using built in light sensors is that the MS's are down at the baseboard where it is dark all the time. There is no delay though so given a choice I can live with lights coming during the day. I will experiment with adjusting sensitivity on the light sensors but it is pretty dark down there. Also, the lights aren't turning off after 1 minute There are better ways to adjust the preset brightness on the dimmers. I will attempt to post my method shortly.
larryllix Posted April 10, 2016 Posted April 10, 2016 There are better ways to adjust the preset brightness on the dimmers. I will attempt to post my method shortly. Note the phrases in Red! You adjust the Scene labelled the signal originating unit and that become confusing and sometimes hard to find on the pulldown. IIRC you have to scroll UP on the pulldown to find these pseudo Scenes. MBR Lamp Level.adjust - [iD 0084][Parent 00FA] If From 10:30:00PM To 9:30:00AM (next day) Then In Scene 'Master Bedroom / Motion.MBR' Set 'Master Bedroom / MBR Wall Lamp' 15% (On Level) Else In Scene 'Master Bedroom / Motion.MBR' Set 'Master Bedroom / MBR Wall Lamp' 70% (On Level)
Culvdave Posted April 10, 2016 Author Posted April 10, 2016 OK, I've sorted out why lights don't turn off, with the time constraints in the program, when the lights turn on during the day they won't turn off until sunset-1 hr
oberkc Posted April 10, 2016 Posted April 10, 2016 OK, I've sorted out why lights don't turn off, with the time constraints in the program, when the lights turn on during the day they won't turn off until sunset-1 hr Yes, that would explain things. Also, if they come on at night and sunrise occurs before they turn off, they will remain on.
stusviews Posted April 10, 2016 Posted April 10, 2016 Adjust the sensitivity of the Motion Sensors so they send an On signal only when it's relatively dark. Use a low number, I use 5. Includes them as scene controllers for fast response, then use a program to turn them off.
ronvond Posted April 11, 2016 Posted April 11, 2016 My under bed lighting is used a little differently than yours, but this program should work fine if you just change the timing. I do not use a scene, but just the program. The lighting is controlled by a dimmer module that has its ramp rate set to 60 seconds. I use "Fast On" to turn the lights on and then have them fade out. If ( Status ‘Bedroom / Bedroom Motion-Sensor’ is On And From 10:30PM To Sunrise (next day) ) Then Set ‘Bedroom / Under Bed Lites’ Fast On Wait 5 minutes Set ‘Bedroom / Under Bed Lites’ Off Else Wait 5 minutes Set ‘Bedroom / Under Bed Lites’ off Ron With this program the lights will not fail to turn off after five minutes regardless of when they are turned on.
Recommended Posts