Jump to content

Setting Scenes with a Program


C Martin

Recommended Posts

I am changing a scene via a program and it seems that in order to make sure the scene has actually been changed, I have to query the scene.

If
       $sSleepTime is 0

Then
       In Scene 'Scenes / Closet Motion' Set 'Interior Lights / Closet Lights / Closet Dimmer' 85% (On Level)
       Set Scene 'Scenes / Closet Motion' Query

Else
       In Scene 'Scenes / Closet Motion' Set 'Interior Lights / Closet Lights / Closet Dimmer' 25% (On Level)
       Set Scene 'Scenes / Closet Motion' Query

 

Before I had the query command, I have actually had the scene change but only after clicking on the scene and then clicking back on it. In other words, it was not consistently changing.

 

Is this the norm?

Link to comment

C Martin

 

The Adjust Scene Action is changing the Responder On Level or Ramp Rate in the link record of the selected Responder. The Action has no immediate effect on the Responder device itself. When the Scene is used the next time the new On Level will take effect.

 

Lee

Link to comment

The change to the Responder link record is immediate. You can confirm this by running Tools | Diagnostics | Event Viewer with Device communications events selected. The trace will look similar to this....

 

Wed 08/31/2011 03:49:09 PM : [C 8C 3B 1 ] Link 21 : 0F50 [A225129FE4D81F01] Saving [..........D8....]

 

Wed 08/31/2011 03:49:09 PM : [All ] Writing 1 bytes to devices

 

Wed 08/31/2011 03:49:09 PM : [C 8C 3B 1 ] Using engine version i1 for 'KeypadLinc White Box'

 

Wed 08/31/2011 03:49:09 PM : [C 8C 3B 1 ] Link 21 : 0F50 [A225129FE4D81F01] Writing [..........D8....]

 

Wed 08/31/2011 03:49:09 PM : [iNST-ACK ] 02 62 0C.8C.3B 0F 28 0F 06 SET-MSB(0F)

 

Wed 08/31/2011 03:49:09 PM : [iNST-SRX ] 02 50 0C.8C.3B 12.9F.E4 2B 28 0F SET-MSB(0F)

 

Wed 08/31/2011 03:49:09 PM : [standard-Direct Ack][0C.8C.3B-->ISY/PLM Group=0] Max Hops=3, Hops Left=2

 

Wed 08/31/2011 03:49:09 PM : [iNST-ACK ] 02 62 0C.8C.3B 0F 2B 55 06 PEEK (55)

 

Wed 08/31/2011 03:49:10 PM : [iNST-SRX ] 02 50 0C.8C.3B 12.9F.E4 2B 2B FF PEEK (FF)

 

Wed 08/31/2011 03:49:10 PM : [standard-Direct Ack][0C.8C.3B-->ISY/PLM Group=0] Max Hops=3, Hops Left=2

 

Wed 08/31/2011 03:49:10 PM : [iNST-ACK ] 02 62 0C.8C.3B 0F 29 D8 06 POKE (D8)

 

Wed 08/31/2011 03:49:10 PM : [iNST-SRX ] 02 50 0C.8C.3B 12.9F.E4 2B 29 D8 POKE (D8)

 

Wed 08/31/2011 03:49:10 PM : [standard-Direct Ack][0C.8C.3B-->ISY/PLM Group=0] Max Hops=3, Hops Left=2

 

This is the trace of an Adjust Scene to set the responder On Level to 85%. The effect on the actual responder On Level will not be seen until the Scene is turned On the next time. The Scene On command causes the responder to access the link record for the particular controller to see what On Level and Ramp Rate should be used for the On command.

Link to comment

After the Program changes the responder On Level for Closet Dimmer, the next time the Motion Sensor sends a Motion On the Closet Dimmer should turn On to the last responder On Level set by the Program. If the Closet Dimmer does turn On to the correct On Level but that On Level is not reflected back to the Admin Console Current State field for Closet Dimmer there is likely an unreliable powerline communication between the Motion Sensor and the ISY PLM. That result would indicate the Closet Dimmer is receiving the Motion On message and reacting to it but the ISY PLM is not seeing the same message so the Admin Console status is not being updated.

 

I set up a Scene with a Motion Sensor as the Controller and an ICON Dimmer as the responder. A Program triggered at a particular time and set the responder On Level for the ICON Dimmer responder to 85%. When the Program ran no change was reflected at the ICON Dimmer and no change was reflected at the Admin Console (as expected as only the link record is changed by the Program). The next Motion On turned the ICON Dimmer On to 85% and the Admin Console Current State for the ICON Dimmer changed to 85%.

 

I am not using any Query, not in the Program and not from the Admin Console.

 

If that is not the results you are seeing please detail what is happening and we can proceed from there.

Link to comment

Hi Lee,

 

All is working fine now. This must have been a problem with the old PLM that I was using. That PLM was flaky last week and I have upgraded to a new one now.

I checked things this morning and the Scene adjustment seems to be working just fine.

 

Thanks for your response,

 

Clarence

Link to comment

Archived

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


×
×
  • Create New...