Jump to content

UDP Formatting question - variables


nadler

Recommended Posts

I have connected ISY and Powerhome operating on my PC through UDP. Powerhome has easy to use voice integration and I have it announce things like "Garage Door is Open" or "Perimeter is Secured". I can not figure out how to send it ISY variables using UDP. For example I would like it to say "The temperature on the first floor is " ${sys.node.14 86 C 1.ST} "degrees." This works in an email but for UDP it sends the formula not the temperature.

 

I am certain that I am missing something easy, but I don't know what.

 

Anyone know if this is possible? If not, any other solutions?

 

Thanks!

Link to comment
I won't mind creating a separate UDP resource for each variable. There aren't many. But how do I get the variables into each resource. I'm at a loss.

 

Thanks.

 

You have to put the actual value into each network resource, at least until variables is supported. For example, if the variable can have 5 values, you would need 5 network resources, one for each value. Then you would need 5 programs to call each of those 5 resources depending on what the actual value was.

 

If

$x = 1

Then

resource '1'

 

If

$x = 2

Then

Resource '2'

 

And so on, where resource 1 does your UDP posting of the value 1 to your other device, 2 for 2, and so on.

Link to comment

I am glad to hear that variables will be supported in Network Resources in future firmware.

 

apostolakisl, thanks for your suggestion. I'm going to try it.

 

I'm also going to try to have ISY send PowerHome a UDP packet when the temperature changes which will fire a trigger in PH which will run a macro to issue a Rest command from PH to ISY which will pull the various temperatures and setpoints from ISY and trigger PH's voice.

 

Thanks again.

Link to comment

Archived

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


×
×
  • Create New...