Jump to content

Program syntax to check status of a device ?


telljcl

Recommended Posts

I'm trying to determine the status of an ApplianceLinc (responder only, I gather). If I go into ISY admin console I can "Query" the status and it will update to the correct status, but if I manually press the button on the ApplianceLinc, no status update is reflected in ISY (I guess because it isn't a controller.) If I control the ApplianceLinc with the ISY, obviously the status shows properly.

 

Shouldn't I be able to make a program to "Query" the status of this device at a particular time and then do something based on the (correct) status of it? I can only seem to issue a "on" or "off" command to it, but not just "query" this particular module, in case somebody has pressed the local button on it (which makes the ISY's status then incorrect).

 

Searched but couldn't seem to figure it out. Thanks for any help.

Link to comment

An ApplianceLinc can be queried with

 

If

Time is 12:15:00PM

Then

Set 'ApplianceLinc' Query

Run Program 'xxxx' (If)

 

where Program 'xxxx' checks the Status of the 'ApplianceLinc'

 

If Status 'ApplianceLinc' is On

Then

do something

Else

do something

 

 

You are correct in that an ApplianceLinc does not have Controller capability so changing its On/Off state locally is not sent to the PLM (ISY).

Link to comment
An ApplianceLinc can be queried with

 

If

Time is 12:15:00PM

Then

Set 'ApplianceLinc' Query

Run Program 'xxxx' (If)

 

Lee is the query guaranteed to return before the next statement or is a wait needed? I'm hoping its the former but was never clear on this specific construct.

Link to comment

I believe that could be an exposure, particularly if the path to the ApplianceLinc is marginal. The PLM could retry the Query a few times before getting an answer. I suspect that would allow the second Program time to execute. I don't think doing a Run for the second Program is actually needed. If the Status of the ApplianceLinc is changed as a result of the Query the second Program will naturally trigger without need to invoke it from the Query Program.

Link to comment

Archived

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


×
×
  • Create New...