Jump to content

Bathroom Motion Sensor - Lower Light at Night - Problem


hbskisurf

Recommended Posts

Posted

I've been banging my head against the wall trying to get motion sensors to work in the bathroom.  I'm trying to accomplish the following:

 

1) Daytime - turn on 100% with fast ramp based on motion and time out after no motion

2) Nighttime - turn on 30% with slow ramp based on motion and time out after no motion

3) Turn off if switch turned off

4) Ramp up light to 100% at night if switch pressed and turn off via switch or time out after no motion, reset to 30% until sunrise

 

I'm struggling with the nighttime slow ramp and lower light and the ramp up override from the switch.  

Initially when you walk in the room at night, you get a slow ramp set to 30% but on the next detection of motion, the light is turned on to 100% (scene resets to 100% with 0.1 ramp rate).

Not sure why.  Any thoughts?

 

 

I have the following:

 

MS - set to always on + sensing mode

 

Bathroom Light Scene - MS controller, Switchlinc responder

 

Motion Program:

If

Control MS-Sensor is switched on

Then

Set Scene Bathroom Light On

Wait 1 min

Set Scene Bathroom Light Off

 

Switch Off Override Program:

If Control Switchlinc is switched Off or Fast Off

Then

Disable Motion Program

Set Scene Bathroom Light Off

Wait 10 sec

Enable Motion Program

 

Night Ramp Rate Program:

If 10pm-Sunrise (next day)

Then

In Scene MS-Sensor Set Switchlinc 30% (On Level)

In Scene MS-Sensor Set Switchlinc 4.5 Sec (Ramp Rate)

 

Else

In Scene MS-Sensor Set Switchlinc 100% (On Level)

In Scene MS-Sensor Set Switchlinc 0.1 Sec (Ramp Rate)

 
Switch On Override Program:
If Control Switchlinc is switched On or Fast On 
AND Status Switchlinc > Off
Then

In Scene MS-Sensor Set Switchlinc 100% (On Level)

In Scene MS-Sensor Set Switchlinc 0.1 Sec (Ramp Rate)

Set Scene Bathroom Light On
 
Posted (edited)

Check the time statement in your IF line if should have a "FROM"

 

Your switchlinc should be a controller in your scene.

Make sure you have the on levels and ramp rates set for your devices in the scene.

 

 

Night Ramp Rate Program:

If FROM 10pm to Sunrise (next day)

Then

In Scene MS-Sensor Set Switchlinc 30% (On Level)

In Scene MS-Sensor Set Switchlinc 4.5 Sec (Ramp Rate)

Edited by Techman
Posted

It's best to copy and paste the actual program(s).

Posted

Night Ramp Rate Program:

If 10pm-Sunrise (next day)

Then

In Scene MS-Sensor Set Switchlinc 30% (On Level)

In Scene Switchlinc Set Switchlinc 30% (On Level) <<--- Try adding this line...

 

In Scene MS-Sensor Set Switchlinc 4.5 Sec (Ramp Rate)

In Scene Switchlinc  Set Switchlinc 4.5 Sec (Ramp Rate)<<--- Try adding this line...

 

Else

In Scene MS-Sensor Set Switchlinc 100% (On Level)

In Scene Switchlinc Set Switchlinc 100% (On Level) <<--- Try adding this line...

 

In Scene MS-Sensor Set Switchlinc 0.1 Sec (Ramp Rate)

In Scene Switchlinc  Set Switchlinc 0.1 Sec (Ramp Rate) <<--- Try adding this line...

 

 

 

Jon...

Posted

Thanks for all the suggestions.  I tried all of the above.  However, I wasn't able to get the option to add 

 

In Scene Switchlinc Set Switchlinc (the Switchlinc didn't show up in the list)

 

I tried adding:

In Scene Bathroom Light Set Switchlinc

 

That would work at first for the switch override but any subsequent motion would reset the light at the lower 30% level.

Posted

Select Adjust Scene. There will be two line, the first is the scene name, the second is the device name.

 

BTW, do you actually have two scenes that you want to control? Or one scene with multiple device (e.g., Motion Sensor, SwitchLinc, etc.)

Posted

I see the adjust scene with 2 drop down.  However, I don't have the option of choosing Adjust Switchlinc in the Scene Name drop down.  I only have the option of other switches or scenes.

 

I'm only trying to control 1 Scene (Bathroom Light) which is made up of the MS and Switchlinc.

 

Thanks!

Posted

Are you selecting the scene or the device? You should be selecting the scene name and not the device name for the first line of Adjust Scene.

Posted

I see the adjust scene with 2 drop down.  However, I don't have the option of choosing Adjust Switchlinc in the Scene Name drop down.  I only have the option of other switches or scenes.

 

I'm only trying to control 1 Scene (Bathroom Light) which is made up of the MS and Switchlinc.

 

Thanks!

 

You can paste your program into your reply by selecting the program, right click and copy to clipboard (bottom option) the either paste directly into reply or use code quotes (select angle brackets in toolbar <>)

 

 

Jon...

Posted (edited)

As per Stu's post above you have to select the scene and scroll the other way to find the controller device. It's not really a scene name but rather an initiating  device name.

 

Here is some examples. Note the different icon symbols  and the name xxxx.motion.MBR which is my name for a motion sensor, not the scene name.

 

Note the layout may be slightly different as I am using v5.0.2 beta.

 

post-4697-0-95617600-1451876613_thumb.jpg  post-4697-0-15903900-1451876615_thumb.jpg

Edited by larryllix
Posted

Thanks.  I couldn't figure out how to paste the programs in...saves a bit of typing and hopefully clears things up a bit.

I was able to adjust the scene adjustment like suggested above but after I turn the switch on any subsequent motion ramps the light back down.  

I'm guessing a work around would be to disable the motion program for a period of time after the switch is pressed...isn't there a better way?

 

Motion Program

Cody Bath Motion - [ID 0049][Parent 002A]

If
        Control 'Cody Bath-Sensor' is switched On
 
Then
        Set Scene 'Shower Bath Motion Light' On
        Wait  1 minute 
        Set Scene 'Shower Bath Motion Light' Off
 
Else
   - No Actions - (To add one, press 'Action')
 

Switch off Override Program

Cody Bath Switched Off - [ID 0056][Parent 002A]

If
        Control 'Shower Bath - Room' is switched Off
     Or Control 'Shower Bath - Room' is switched Fast Off
 
Then
        Disable Program 'Cody Bath Motion'
        Set Scene 'Shower Bath Motion Light' Off
        Wait  10 seconds
        Enable Program 'Cody Bath Motion'
 
Else
   - No Actions - (To add one, press 'Action')
 

Night Ramp Program

Cody Bath Ramp Rate - [ID 0044][Parent 002A]

If
        From    10:00:00PM
        To      Sunrise (next day)
 
Then
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 30% (On Level)
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 4.5 Sec (Ramp Rate)
        In Scene 'Shower Bath - Room' Set 'Shower Bath - Room' 30% (On Level)
        In Scene 'Shower Bath - Room' Set 'Shower Bath - Room' 4.5 Sec (Ramp Rate)
 
Else
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 100% (On Level)
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 0.1 Sec (Ramp Rate)
 
 

Switch On Override

Cody Bath Manual Switch - [ID 0023][Parent 002A]

If
        Control 'Shower Bath - Room' is switched On
     Or Control 'Shower Bath - Room' is switched Fast On
    And Status  'Shower Bath - Room' > Off
 
Then
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 100% (On Level)
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 0.1 Sec (Ramp Rate)
        In Scene 'Shower Bath - Room' Set 'Shower Bath - Room' 100% (On Level)
        In Scene 'Shower Bath - Room' Set 'Shower Bath - Room' 0.1 Sec (Ramp Rate)
        Set Scene 'Shower Bath Motion Light' On
 
Else
   - No Actions - (To add one, press 'Action')
 

Posted (edited)

Motion Program

 

Cody Bath Motion - [iD 0049][Parent 002A]

If
        Control 'Cody Bath-Sensor' is switched On

Then
        Set Scene 'Shower Bath Motion Light' On <---Delete = direct link between devices
        Wait  1 minute
        Set Scene 'Shower Bath Motion Light' Off

Else
   - No Actions - (To add one, press 'Action')

 

---------------------------
 

Night Ramp Program                                       <---looks good

Cody Bath Ramp Rate - [iD 0044][Parent 002A]

If
        From    10:00:00PM
        To      Sunrise (next day)

Then
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 30% (On Level)
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 4.5 Sec (Ramp Rate)
        In Scene 'Shower Bath - Room' Set 'Shower Bath - Room' 30% (On Level)    <----Delete, wrong scene
        In Scene 'Shower Bath - Room' Set 'Shower Bath - Room' 4.5 Sec (Ramp Rate)   <----delete, wrong scene


Else
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 100% (On Level)
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 0.1 Sec (Ramp Rate)
 

--------------------------------------------------

 

The rest of this confuses me. I started to renovate it but it got too confusing with this small editing page.  It doesn't look anything like my original and I do not understand what you are trying to do with different logic. You have attempted to split the one program into two also. That can work but isn't necessary. It does make the compound If conditions easier to understand though.

 

Here is my original program that does both. Some disables need to be done and calls to the resstting of the levels program needs to be done and have been attempted to shortcut. I suggest you copy Then and Else into your individual programs changing devices and program names, to suit,  as you copy over each line.

 

 

MBR Lamp.manual - [iD 0038][Parent 0017]

If
        'Master Bedroom / MBR KeyPad.A' is switched On
    And 'Master Bedroom / MBR KeyPad.A' is not switched Off
 
Then
        Set 'Master Bedroom / MBR Wall Lamp' Fast On
        Disable Program 'MBR Lamp.auto'
        Disable Program 'MBR Lamp Level.adjust'
        In Scene 'Master Bedroom / Motion.MBR' Set 'Master Bedroom / MBR Wall Lamp' 100% (On Level)
        Wait  2 hours
        Run Program 'MBR Lamp.manual' (Else Path)
 
Else
        Set 'Master Bedroom / MBR Wall Lamp' Off
        Run Program 'MBR Lamp Level.adjust' (If)
        Wait  1 second
        Enable Program 'MBR Lamp Level.adjust'
        Enable Program 'MBR Lamp.auto'
 
Lamp will get direct hit by MS so adjusted scene level so it can't be noticed.

 



Edited by larryllix
Posted

Sorry...dumb question but what do you mean by delete the direct link?

I believe the only link is the Scene with Motion Sensor as controller and Light as responder.

Posted

Sorry...dumb question but what do you mean by delete the direct link?

I believe the only link is the Scene with Motion Sensor as controller and Light as responder.

No "delete direct link". Delete the line, there is already a direct link. sorry for the shorthand.

Posted (edited)

 

 I think I have it. It's late and I am having trouble focusing so nothing guaranteed, :)

 

 

Cody Bath Manual Switch - [iD 0023][Parent 002A]

 

 If

         Control 'Shower Bath - Room' is switched On

     Or Control 'Shower Bath - Room' is switched Fast On    <--- I would save Fast On for other functions

                                                                                   <---no condition needed as far as I can tell

 

Then

      Set Scene 'Shower Bath Motion Light'   Fast On  <---- just set the light on without the scene.

      Disable Cody Bath Motion

      Disable Program Cody Level Ramp Rate

      In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 100% (On Level)

      In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 0.1 Sec (Ramp Rate)

      Wait 2 hours

      Run Cody Bath Switched Off  (Then path)   <---- use other program to restore everything
 

 

Cody Bath Switched Off - [ID 0056][Parent 002A]

If

          Control 'Shower Bath - Room' is switched Off

     Or Control 'Shower Bath - Room' is switched Fast Off    <----could be used for other functions

 

Then

       Set 'Shower Bath - Room' Off

       Run Program Cody Level Ramp Rate (If)

       Wait 1 second

       Enable Program Cody Level ramp Rate (If)

       Enable Program 'Cody Bath Motion'

 

Else

        - No Actions - (To add one, press 'Action')

Edited by larryllix
Posted (edited)
Cody Bath Motion - [ID 0049][Parent 002A]

If
        Control 'Cody Bath-Sensor' is switched On
        And Status 'Shower Bath - Room' > Off        <<-- This will prevent further sense from turning light on 100%
 
Then
        Set Scene 'Shower Bath Motion Light' On
        Wait  1 minute 
        Set Scene 'Shower Bath Motion Light' Off
 
Else
   - No Actions - (To add one, press 'Action')
 

Cody Bath Switched Off - [ID 0056][Parent 002A]

If
        Control 'Shower Bath - Room' is switched Off
     Or Control 'Shower Bath - Room' is switched Fast Off           <<-- Not needed (and as larryllix recommends save for other purpose.)
 
Then
        Disable Program 'Cody Bath Motion'
        Set Scene 'Shower Bath Motion Light' Off
        Wait  10 seconds
        Enable Program 'Cody Bath Motion'
 
Else
   - No Actions - (To add one, press 'Action')
 
Cody Bath Ramp Rate - [ID 0044][Parent 002A]

If
        From    10:00:00PM
        To      Sunrise (next day)
 
Then
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 30% (On Level)
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 4.5 Sec (Ramp Rate)
        In Scene 'Shower Bath - Room' Set 'Shower Bath - Room' 30% (On Level)       <<-- without this line you won't have "on level" with local control 
        In Scene 'Shower Bath - Room' Set 'Shower Bath - Room' 4.5 Sec (Ramp Rate)        (if you leave then return before timeout)
 
Else
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 100% (On Level)
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 0.1 Sec (Ramp Rate)
 
 
Cody Bath Manual Switch - [ID 0023][Parent 002A]                        You don't need this program...

If
        Control 'Shower Bath - Room' is switched On                      If the original intent of this program was to set the on level to 100% it can be 
     Or Control 'Shower Bath - Room' is switched Fast On          accomplished while 'Shower Bath - Room' is On at "on level" simply by pressing On again.
    And Status  'Shower Bath - Room' > Off
 
Then
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 100% (On Level) 
        In Scene 'Cody Bath-Sensor' Set 'Shower Bath - Room' 0.1 Sec (Ramp Rate)
        In Scene 'Shower Bath - Room' Set 'Shower Bath - Room' 100% (On Level)
        In Scene 'Shower Bath - Room' Set 'Shower Bath - Room' 0.1 Sec (Ramp Rate)
        Set Scene 'Shower Bath Motion Light' On
 
Else

 

 

Jon...

 

Edited by jerlands
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.5k
×
×
  • Create New...