connect a JSON command to a switch

Moderator: leecollings

Post Reply
rhendriks
Posts: 44
Joined: Monday 23 December 2013 23:36
Target OS: Raspberry Pi / ODroid
Domoticz version: Newest
Location: Netherlands Helmond
Contact:

connect a JSON command to a switch

Post by rhendriks »

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