Jump to content

Setting scene on-level and ramp rate programmatically


brad77

Recommended Posts

This is related to this post, but I didn't want to hijack that thread, so I'm starting a new one.

 

In two separate installations, I have tried to implement a couple programs with the aim to change the ramp rate and on-level of two SwitchLincs that are responders to a scene in which a motion sensor is the controller. Basically, the motion sensor turns the lights on an off. Simple enough.

 

I desire that the lights come up to a lower light level at night and ramp up more slowly than they would during the day. I have tried to accomplish this with two programs:

 

Motion PM:

If
       Time is 9:00:00PM

Then
       In Scene 'Hallway / Hallway Motion' Set 'Hallway / Hallway Light' 2.0 Sec (Ramp Rate)
       In Scene 'Hallway / Hallway Motion' Set 'Hallway / Hallway Light' 67% (On Level)
       In Scene 'Hallway / Hallway Motion' Set 'Hallway / Hallway Light Secondary' 2.0 Sec (Ramp Rate)
       In Scene 'Hallway / Hallway Motion' Set 'Hallway / Hallway Light Secondary' 67% (On Level)

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

 

Motion Normal:

If
       Time is Sunrise

Then
       In Scene 'Hallway / Hallway Motion' Set 'Hallway / Hallway Light' 0.3 Sec (Ramp Rate)
       In Scene 'Hallway / Hallway Motion' Set 'Hallway / Hallway Light' 100% (On Level)
       In Scene 'Hallway / Hallway Motion' Set 'Hallway / Hallway Light Secondary' 0.3 Sec (Ramp Rate)
       In Scene 'Hallway / Hallway Motion' Set 'Hallway / Hallway Light Secondary' 100% (On Level)

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

The programs seem to run correctly, but the on-level and ramp rates do not change when that scene is activated by the motion sensor.

 

When I manually change the on-level and ramp rates with the scene node selected in the Admin Console's device tree, I find that the on-levels ramp rates remain unaffected when the scene is activated.

 

However, when I select the controller of the scene (the motion sensor) and subsequently change the on-levels and ramp rates, the lighting then does what I want it to do.

 

So in this case, it appears that the program is changing the former rather than the latter, and doesn't impact the lighting the way that I would like (and would expect it to do) when the controller (motion sensor) activates the scene.

 

Am I doing things incorrectly? Is this a bug or is there no mechanism to do this via programs?

 

Thanks!

Link to comment

I may have read your post wrong, but it wasn't clear to me if you were using the scene instead of the controller in your programs.

 

The terminology for Scene is a little misleading ...

 

In a practical sense, each controller is itself a scene, containing its own set of levels/rates for the responders. Therefore if you want to adjust the behaviour of an individual controller then you must use the controller, and not the overall scene.

 

e.g. To adjust levels/rates for MotionSensor

 

Scene1

|

+--- MotionSensor

+--- SwitchLinc1

+--- SwitchLinc2

 

You would select 'MotionSensor' as the 'Scene' for Adjust scene.

 

Here's another example

 

If you are already doing this and its still not working then there is either a communications problem with the switchLinc's at the time the programs run, or there is a bug.

 

The easiest way to test this is to run the program manually, then go to the main page and see if the levels/rates were changed.

Link to comment

Thanks for the quick reply, Chris. That's exactly what I'm looking for. I was unaware that you could select the controller as the "scene" in the program.

 

If anyone else comes across this thread in the future, here's my setup using the names matching the programs listed above with descriptions in parens:

 

HallwayMotion (scene)

|

+--- Hallway Motion-Sensor (motion sensor)

+--- Hallway Light (load controlling SwitchLinc 1)

+--- Hallway Light Secondary (dummy SwitchLinc 2)

 

After changing my programs as follows, the scene does what I want.

 

Motion PM:

If
       Time is 9:00:00PM

Then
       In Scene 'Hallway / Hallway Motion-Sensor' Set 'Hallway / Hallway Light' 2.0 Sec (Ramp Rate)
       In Scene 'Hallway / Hallway Motion-Sensor' Set 'Hallway / Hallway Light' 67% (On Level)
       In Scene 'Hallway / Hallway Motion-Sensor' Set 'Hallway / Hallway Light Secondary' 2.0 Sec (Ramp Rate)
       In Scene 'Hallway / Hallway Motion-Sensor' Set 'Hallway / Hallway Light Secondary' 67% (On Level)

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

 

Motion Normal:

If
       Time is Sunrise

Then
       In Scene 'Hallway / Hallway Motion-Sensor' Set 'Hallway / Hallway Light' 0.3 Sec (Ramp Rate)
       In Scene 'Hallway / Hallway Motion-Sensor' Set 'Hallway / Hallway Light' 100% (On Level)
       In Scene 'Hallway / Hallway Motion-Sensor' Set 'Hallway / Hallway Light Secondary' 0.3 Sec (Ramp Rate)
       In Scene 'Hallway / Hallway Motion-Sensor' Set 'Hallway / Hallway Light Secondary' 100% (On Level)

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

Link to comment

Hi dsdee,

 

GUI oddities usually are due to the Java Cache. You should have the choice of any controller.

 

When you access the ISY are you using the desktop icon created by http://www.universal-devices.com/99i/2.8.10/admin.jnlp?

 

Rand

 

I am trying to accomplish the same thing here, but in my Program, I only have the choice to select the light/load, and not my RemoteLinc button or buttons on other KeypadLincs to make the adjustments.

 

Any chance this is a problem in the 2.8.10 GUI?

Link to comment

Brad;

 

Sorry for the delay.

 

I checked this from three machines, both the .JNLP icon on the desktop, and and by navigating to the /admin URL. On the 3rd machine, there were no java-cache issues, since I had never been to the ISY from that browser before.

 

I see the same issue on the other boxes still, so I don't believe it is a cache issue. Let me give more detail on the simplest of the setups:

 

My Breakfast room has one light, on a SwitchLinc. It is also controllable thru Button #2 on the KPL8 in the Kitchen [Name], and that 'control' is managed/linked through a scene [break Rm Scene].

 

1155588300_bfaAQ-S-1.jpg

 

If I go into the Program Details for a program that I have to set the on-levels, you'll see in the Actions area that I can only select the primary load, "Breakfast Rm Light" there 1155588320_9g7Ua-S-1.jpg.... and the 2ndary controller, the KPL's button #2, shows up outside of the Breakfast Rm Scene, in the "In Scene" drop-down, not within the "Scenes/Kitchen Scene" scene . 1155588303_G3piW-S.jpg

 

To me, it would make more sense being within the scene, since it is actually attached to the scene..... Hopefully I am relaying my confusion well enough?

 

Thanks,

David

 

 

(if you want to HTTPS into the GUI, PM me, and I can set up that forwarding really quick)

Link to comment

Hi David,

 

You need to select the Controller of the Scene before you can Adjust a responder's actions.

 

The KPL button Action cannot be adjusted so it is not displayed in that drop-down.

 

I agree it would be nice if Scenes could display nested controllers.

 

Rand

Link to comment

Archived

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


×
×
  • Create New...