Jump to content

Motion Sensor controlling a scene


lgilsenberg
Go to solution Solved by MrBill,

Recommended Posts

Posted

Using 5.3.4

I have a scene where an insteon motion sensor is controlling a scene of one dimmer switch.  

I have a program that is adjusting each scene in the evening to have the lights come on at 65% at a certain time of day.

image.thumb.png.2ec240c756251b68ac844840f63e7ea7.png

When the scene comes on, the lights come on at 100% for a second and then dim to 65%.   Am I doing something wrong?

 

  • Like 1
Posted

You are adjusting a scene (preset) with that command line, not turning anything on.

Can you copy to clipboard, your program, and paste it here so we can see your trigger program?

Posted

 

Half Bath Adjust Scene Late  - [ID 0042][Parent 0020]

If
        $Time_of_Day is $LATE_NIGHT
 
Then
        
 
        In '1 - First Floor / Half Bath / Half Bath' Set '1 - First Floor / Half Bath / Half Bath Light' To 20% in 0.2 seconds
 
Else
   - No Actions - (To add one, press 'Action')
 

 

Half Bath Sensor - [ID 0041][Parent 0020]

If
        '1 - First Floor / Half Bath / Half Bath Sensor.1 Motion' is switched On
 
Then
        Set '1 - First Floor / Half Bath / Half Bath' On
        Wait  10 minutes 
        Run Program 'Half Bath Sensor' (Else Path)
 
Else
        Set '1 - First Floor / Half Bath / Half Bath' Off
        Set '1 - First Floor / Half Bath / Half Bath Fan' Off

 

Does this help to clarify?

 

Posted

is the motion detector a member of the scene?   Or is control 100% thru the program 'Half Bath Sensor'?    If the motion sensor is also a scene controller, what's happening is the motion sensor is kicking it on to 100%, then the program is also kicking it on and that controller has been adjusted for 65%.

If the motion sensor is a scene controller, one solution is to add a line to your first program to also change the scene when the motion detector is the controller, then for better efficiency you can actually drop the first line of the second programs THEN block.

 

 

 

Posted
6 hours ago, MrBill said:

is the motion detector a member of the scene?   Or is control 100% thru the program 'Half Bath Sensor'?    If the motion sensor is also a scene controller, what's happening is the motion sensor is kicking it on to 100%, then the program is also kicking it on and that controller has been adjusted for 65%.

If the motion sensor is a scene controller, one solution is to add a line to your first program to also change the scene when the motion detector is the controller, then for better efficiency you can actually drop the first line of the second programs THEN block.

 

 

 

Excellent catch - I've changed the scene and the programs so many times to try and get it right that I missed that.  So, I got rid of the first line in the then statement that calls the scene.  Here's the weird thing . . . the scene changes from the adjust scene command but when the motion sensor (which is a controller in the scene) activates the scene, it always comes on at 100%.  Just call me baffled.

Posted
15 hours ago, lgilsenberg said:

Excellent catch - I've changed the scene and the programs so many times to try and get it right that I missed that.  So, I got rid of the first line in the then statement that calls the scene.  Here's the weird thing . . . the scene changes from the adjust scene command but when the motion sensor (which is a controller in the scene) activates the scene, it always comes on at 100%.  Just call me baffled.

Keep in mind that scene's can function differently based on which Controller is used.  I can't see the details of your scene from the screenshot you included in the first post, so let me pick a scene of mine for the example:

image.png.9f0de4d220667d354fc77c1b8eb37d59.png

There are 3 Controllers here.   The first controller is the ISY itself, or the root node of the scene "Christmas-All" the other 2 controllers are the RED nodes.  The same scene can be programed to behave 3 different ways.   The root node of the scene "Christmas-All" is what is used when a program controls the scene.

So you your case specifically what you need to do to make the motion sensor turn on the scene to 20% is add a second line to Program #1.  Same settings as the first line except for the "Controller" drop down, make that the motion sensor.  The existing line changes what happens when the switch is the controller, the new second line changes what happens when the motion sensor is the controller.

Posted
47 minutes ago, MrBill said:

Keep in mind that scene's can function differently based on which Controller is used.  I can't see the details of your scene from the screenshot you included in the first post, so let me pick a scene of mine for the example:

image.png.9f0de4d220667d354fc77c1b8eb37d59.png

There are 3 Controllers here.   The first controller is the ISY itself, or the root node of the scene "Christmas-All" the other 2 controllers are the RED nodes.  The same scene can be programed to behave 3 different ways.   The root node of the scene "Christmas-All" is what is used when a program controls the scene.

So you your case specifically what you need to do to make the motion sensor turn on the scene to 20% is add a second line to Program #1.  Same settings as the first line except for the "Controller" drop down, make that the motion sensor.  The existing line changes what happens when the switch is the controller, the new second line changes what happens when the motion sensor is the controller.

Now I understand.  Thank you.  Another question comes to mind . . . Since the motion sensor is the controller of the scene being adjusted and the motion sensor is a battery device, how do you put the motion sensor in "communications mode" programmatically? 

  • Solution
Posted
1 minute ago, lgilsenberg said:

Now I understand.  Thank you.  Another question comes to mind . . . Since the motion sensor is the controller of the scene being adjusted and the motion sensor is a battery device, how do you put the motion sensor in "communications mode" programmatically? 

You can't and shouldn't need to for this.  That said, "Adjust scene when used with a wireless controller" was broken in many versions of 5.x... I can't remember exactly which recent release fixed the bug but to use adjust scene with a wireless controller you should not need to put the device in setup mode-- the link that needs to change is actually in the responder.  Your first post says you're on 5.3.4 so you should be good.

  • Like 1
  • Thanks 1
Posted

When I make the controller "Motion Sensor"  I start teeing up writes to the motion sensor.  If I do this several times a day with a myriad of motion sensors, I don't know what will happen.

image.thumb.png.565578bc7cc9b6aef643e7051951bbb9.png

 

Posted
31 minutes ago, lgilsenberg said:

When I make the controller "Motion Sensor"  I start teeing up writes to the motion sensor.  If I do this several times a day with a myriad of motion sensors, I don't know what will happen.

You're going to need to open a ticket.... the fix for that was in 5.3.2:

Quote

0000774 - Green icon appears on Insteon Controller Node after using Adjust Scene

my guess is that they missed that particular device in the fix.

  • Like 1
Posted

And one more comment....

Another method is to drop the motion sensor from the scene, and then add the line that turns the light on back to the program..... and "adjust scene" the root level controller.    The drawback is that it takes an extra few seconds after motion detection for the light to come on.

Posted

Just found out from Michel that you have to set the motion sensor (or any battery device) into communication mode and write the changes once.  After that it works fine.

Thank you all for your help.

  • Like 1
  • Thanks 1
Guest
This topic is now closed to further replies.

×
×
  • Create New...