Jump to content

Scene adjust


jkraus

Recommended Posts

trying to write a simple scene adjust program, as never did this before.

 

I have a motion sensor and garage light in a scene so garage light is turned on with motion

 

then I have a program to turn off the scene after certain time.  however if the light is turned on by a keypad button "A" the program will not turn off the light, all is working great.

 

However, I also have a "mood" button that tuns on this light at a low level, but every time I go by the motion sensor it turns it on to the brighter level of the scene, so I was trying to control with a program like this but does not seem to work (note, the "D" button is the mood lower level of 31%)

 

test - [iD 001F][Parent 0001]
 
If
        Control 'KPL Kitchen.D' is switched On
 
Then
        In Scene 'Garage Motion' Set 'Garage Back Lite' 31% (On Level)
 
Else
        In Scene 'Garage Motion' Set 'Garage Back Lite' 61% (On Level)
 
 
Link to comment

What problem are you trying to solve?  The one where the motion sensor will turn on the lights bright, even when the mood scene is set?  To solve this problem, you would have to first ensure you trigger the lights from the motion sensor via program rather than a scene with motion sensor as controller.  One of the problems you may be running into is that battery devices, such as motion sensors, cannot be programmed without first putting them into linking mode.  Your program may be correct, but you cannot make the changes to the motion sensor.

 

You may want to consider pulling the motion controller out of your garage light scene and trigger the garage lights via program.  This would allow you to create conditions for your motion sensor to trigger lights, such as lights already off, lights not at 61%, button D not on, etc....  I suspect you will have better luck with this approach.

Link to comment

In addition to what oberkc has mentioned, you have to change the Responder for the Controller.

 

In an ISY Scene "Garage Motion" there are multiple Controllers where the Responder of each Controller must be changed

 

Scene Garage Motion - PLM is Controller of this Insteon Scene

Motion Sensor-Sensor - Controller - Motion Sensor-Sensor is Controller of this Insteon Scene

KPL button D - Controller - KPL button D is Controller of this Insteon Scene
Garage Back Lite - Responder

 

Multiple Adjust Scene statements are required. 

 

In Scene 'Garage Motion' Set 'Garage Back Lite' 31% (On Level) - for when the ISY Scene is used in a Program

In Scene 'Motion Sensor-Sensor'  Set 'Garage Back Lite' 31% (On Level) - for when Motion Sensor-Sensor is Controller

In Scene 'KPL button D'  Set 'Garage Back Lite' 31% (On Level) - for when KPL button D is Controller

Link to comment

Have a look at this thread from post #36 up. This setup is tricky and not intuitive but it works really well..

 

http://forum.universal-devices.com/topic/12824-how-to-program-an-insteon-motion-sensor/page-2

 

The level of brightness can be adjusted in a Insteon direct linked scene by adjusting the device instead of the scene in the scene pulldown list.. Scroll the other way.

Link to comment
  • 1 month later...

The Set Scene ...... On or Off works in Then and Else clause.

 

TestSceneBeep - [iD 003C][Parent 0001][Not Enabled]

 

If

- No Conditions - (To add one, press 'Schedule' or 'Condition')

 

Then

Set Scene 'ScenePrimaryBeep' Off

 

Else

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

Link to comment

"In Scene 'Garage Motion' Set 'Garage Back Lite' 31% (On Level) - for when the ISY Scene is used in a Program

In Scene 'Motion Sensor-Sensor'  Set 'Garage Back Lite' 31% (On Level) - for when Motion Sensor-Sensor is Controller

In Scene 'KPL button D'  Set 'Garage Back Lite' 31% (On Level) - for when KPL button D is Controller"

 

LeeG, your message is finally sinking in, so all three lines are required, then I assume 3 lines to take the scene back to 81% when KPL button D is off?

Link to comment

LeeG

 

does not work.  Here are my programs:

 

test - [iD 001F][Parent 0001]
 
If
        Control 'KPL Kitchen.D' is switched On
    And Control 'KPL Kitchen.D' is not switched Off
 
Then
        In Scene 'Motion Garage' Set 'Garage Back Lite' 31% (On Level)
        In Scene 'Back Garage-Sensor' Set 'Garage Back Lite' 31% (On Level)
        In Scene 'KPL Kitchen.D' Set 'Garage Back Lite' 31% (On Level)
 
Else
   - No Actions - (To add one, press 'Action')
 
then off program:
 
test 2 - [iD 0003][Parent 0001]
 
If
        Control 'KPL Kitchen.D' is switched Off
    And Control 'KPL Kitchen.D' is not switched On
 
Then
        In Scene 'Motion Garage' Set 'Garage Back Lite' 81% (On Level)
        In Scene 'Back Garage-Sensor' Set 'Garage Back Lite' 81% (On Level)
        In Scene 'KPL Kitchen.D' Set 'Garage Back Lite' 81% (On Level)
        Wait  1 second
        Set 'Garage Back Lite' Off
 
Else
   - No Actions - (To add one, press 'Action')
 
 
Link to comment

regarding two programs, yes for some reason I always start with two to make sure then combine after, no problem with that , right?

 

Since I left the message above it is better now, gets dim and holds the dim level, major progress, but does not go back to 81% after I turn off Kitchen D off

Link to comment

jkraus

 

The Adjust Scene statements change the On Level in the link records in 'Garage Back Lite' when KPL button D is used. This change of the link record affects the next time the link record is used. The change in link record On Level does NOT immediately change the actual On Level of the device. Since the KPL has already turned On 'Garage Back Lite' and then changed the link record value the new On Level will not have an immediate affect. It would require another On command from the KPL WITHOUT an Off command to see 31% On Level.

 

The Back Garage-Sensor On command should set the Garage Back Lite to 31% after the KPL button is turned On.

 

Seems like some understanding of how Insteon devices work would help.

 

Just saw your last post. Same comment. Changing the link record On Level affects the next time the device is turned On. When the KPL button is On the next motion sensor turns the device to 31% On. When the KPL button is Off the next motion sensor turns the device on to 81%.

Link to comment

still learning, yes.  But ti seems to say at 31% even when I turn off KPL D and even if I turn off Garage lite, next time MS it is only 31%.  so still an issue, I will have to study your comment further to see if I am missing something

 

Thanks for all you rhelp

Link to comment

If the Garage Back Lite stays On when KPL button D is turned Off the second Program is not working as desired. The 2nd line in If "is not switched On" is not needed. That Program will/should be triggered True when KPL button D is turned Off. Check the Program Summary display and see if the second Program is marked as True.

 

Note that the Adjust Scene statements do not affect what happens if Garage Back Lite is turned On manually. If manual operation of switch should also be affected the Local On Level setting also needs changing.

 

In Scene 'Garage Back Lite' Set 'Garage Back Lite' 31% (On Level)

Link to comment

LeeG,

one more question (I think a dumb one), the Kitchen D does not have to be physically turned on correct?  i.e. it can be a responder to a scene that is turned on, that is OK correct?  I would think so because as a responder to a scene the Kitchen KPL D lights up as planned, so I do not think this is part of my issue.  Regarding your other suggestions I will try tonight.

 

Thanks

 

Joe

Link to comment

Turning KPL button D on as a Scene responder will turn on the button D LED but it has no affect on Programs with If Control testing commands from KPL button D.

 

The Programs would need to use If Status to know button was turned On/Off by another device or Program.

Link to comment

Archived

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


×
×
  • Create New...