I'm trying to get the status of a virtual device from vera and set an indigo variable with it.
this command:
- Code: Select all
http://192.168.2.140:3480/data_request?id=lu_variableget&DeviceNum=15&serviceId=urn:upnp-org:serviceId:VSwitch1&Variable=Status
...entered in a browser from my mac works. It returns a 1 for on, a 0 for off.
Can anyone point me in a direction of how to script this command to periodically check the status of this device AND put the result in an indigo variable?
Thanks.