Jump to content

Motion sensor operation


Gouldc

Recommended Posts

I have what should be a very easy problem to solve, just can't find the right approach. I have a simple setup with a lamp and motion sensor. Motion sensor control turns on, turn on the lamp, wait x minutes then turn off. The challenge is I do not want the motion sensor to turn the lamp on after we've gone to bed. I have accomplished this with a simple program:

 

If

   Control 'master bedroom sensor' is switched on

   And $sunset is 1

   And $bedtime is not 1

 

Then

   Set 'Master bedroom lamp' on

   Wait 15 minutes

   Set 'Master bedroom lamp' off

 

Else

   - No actions

 

$sunset and $bedtime are integer variables as they are a simple validation of condition, not triggering the event; that is left to the sensor. This works fine but the lag between the sensor turning on and the lamp responding is pretty noticeable when you walk into the room. I understand that a scene will be much faster but; when linked in a scene I cannot turn the sensor off during a specific time. If we roll in our sleep, the side lamp  turns on and I get a shot to the shin from a less than thrilled wife.

Link to comment

Hey Teken, that's essentially what I've baked but am using two variables, from sunset to bedtime. $sunset set to 1 at dusk and $bedtime set to 1 at a pre-determined time. The challenge/question I have is; is there any way to disable the trigger of the motion sensor between a certain timeframe so that I can call a scene vs. directly controlling the lamp with a program.

Link to comment

If
        From    Sunset
        To      10:15:00PM (same day)

 And Control 'master bedroom sensor' is switched on
 
Then
   - No Actions - (To add one, press 'Action')
 
Else
   - No Actions - (To add one, press 'Action')
 
 

Link to comment

The positioning of the MS is more important.

 

I use MSes in all bedrooms mounted over the head of the beds about face height if you stand on the bed mattress. You can kick your feet into the air to get a light on, or stand up but rolling very seldom activates it.

 

I also use scenes and dim the response of the bulb in the sleep hours to about 15% (100W equiv LED) so it doesn't blind anybody. I also use ramp speeds about 2.0-4.5 seconds for night responses.

 

I use manual override programs from miniRemotes and wall SwitchLincs to lock the light on 100% when needed. An all-else-fails-I-forgot timer in the program restores automatic operation as well as a manual override Off click.

 

I don't need to use any variables for these programs.

 

Times frames are used by other dedicated programs that just change scene levels. These can be combined but I find each bedroom has it's own schedule requirements.

 

Time delays are not noticeable using this technique.

Link to comment

An interesting approach Larry, one that might work for me. So, if a lamp and motion sensor are in a scene the sensor will always trigger a lamp on when the sensor sees motion. I could use the 'In Scene' during sleep hours to set the on rate of the scene to 0%. 

 

So, this is the new program but the on rate of the lamp is still 100%

 

If

   from sunset to 10:00 pm (thanks Stu!)

 

Then

   In scene 'master bedroom motion' set 'master bedroom lamp' 5% (on level)

   wait 5 minutes

   Set scene 'master bedroom motion' off

 

Else

   - no actions

Link to comment

Setting the lamp affects the on-level when you operate the lab controller manually. In the scene, set both the lamp and the sensor to 5%. Why do you have the 5 minute wait?

Link to comment

Not sure why this is hurting my head so much. So, in the above example:

 

Then

   In scene 'master bedroom motion' set 'master bedroom lamp 5% (on level);

 

the program is indeed setting the scene on level to 5% however the lamp is actually coming on at the device configured 40%. How would I set the sensor to 5% within the above program; the only device I see that I can modify is the lamp. Also, using the scene turns the light on regardless of the time frame specified in the program.

 

Regarding the off time, I have the sensor setup to receive commands only. My understanding was with that setting the lamp will not respond to "off" from the sensor. This would let me adjust the on time based on the situation/program. I'm hoping the attached screenshots will help to articulate (I have modified the run time for testing). Seems like a really simple concept that I'm missing here; wouldn't be the first time.

post-7216-0-27461700-1448817888_thumb.png

post-7216-0-67532400-1448817891_thumb.png

Link to comment

The ISY Scene name "Master bedroom motion" and "Master bedroom-Sensor" are different Insteon Controllers.

 

The "Master bedroom motion" ISY Scene uses the PLM as the Controller.  Using "Master bedroom motion" as the first (Controller)  parameter has no affect on the "Master bedroom-Sensor" Controller result.

 

To affect the "Master bedroom-Sensor" result use this statement 

 

In Scene "Master Bedroom / Devices / Master bedroom-Sensor" Set "Master Bedroom / Devices / Master bedroom lamp" 10% (On Level) 

 

Also note that by the time the Program is triggered the On command has already been sent to lamp so the first motion On changes the Responder On Level in link record but affect will not be seen until next Motion On.

Link to comment

Archived

This topic is now archived and is closed to further replies.


×
×
  • Create New...