connect a JSON command to a switch

Post Reply
rhendriks
Posts: 181
Joined: Tuesday 24 December 2013 0:36
Target OS: Raspberry Pi
Domoticz version: Newest
Location: Netherlands Helmond
Contact:

connect a JSON command to a switch

Post by rhendriks » Sunday 08 January 2017 11:59

I must connect an input (gpio31) to an Alert dummy
To activate the dummy I do :

Code: Select all

192.168.1.5:****/json.htm?type=command&param=udevice&idx=67&nvalue=4&svalue=Geen Voeding 
The Alert dummy is red .
If the input is closed the dummy must be green

Code: Select all

192.168.1.5:****/json.htm?type=command&param=udevice&idx=67&nvalue=1&svalue=Voeding OK
If I type the cmd line in the browser , the dummy works and changes .
If I used blockly it don't react on the input.
for example : gpio31 open ----dummy red
gpio31 closed --dummy green
If I used in blockly an lightbulb instead of the JSON cmd line , then it works perfect.
How must I connect the dummy to an input?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest