Virtual Devices and updating status of virtual switch.

Moderator: leecollings

Post Reply
kiwi
Posts: 14
Joined: Thursday 28 January 2016 13:41
Target OS: Linux
Domoticz version:
Contact:

Virtual Devices and updating status of virtual switch.

Post by kiwi »

Hi there,

I am coding some new stuff on my own and I really like to find a way to create feed back from the "backend" used on virtual switch. Eg. if the relay card (that is not on the hardware part) has a relay changed by another application.

I wanted to create a script that checks every X minutes that json of the virtualswitch has changed and push with

Code: Select all

'http://192.0.2.1:8080/json.htm?type=command&param=udevice&idx=127&svalue=On 
But seems the GUI doesn't take the command even if the status json says OK.

How do you do this guys on your side ?

Regards (and sorry if this question has been already asked the search on the forum didn't gave me the right answer).
Xavier
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest