Help needed to integrate smart switches with json scripts

Im sure this must be easy and simple for somone with the right knowledge ? i have tried and still cant get this to work .

I run my openremote from my Qnap server at home and seems most times when i add new

http command switches and items to my design then the panel will not load on my web browser or on my android phone , seems to get stuck in some sort of loading loop so i cant see any of my items ( i also control my home KNX from the openremote app)

the commands by http are: (supposing the switch you want to control is at ip 192.168.10.253)

talking to relay.cgi

From any web browser connected to the plug, you can now issue commands to the smart plug.

http://192.168.10.253/cgi-bin/relay.cgi?state will inquire whether the relay is on or off.

http://192.168.10.253/cgi-bin/relay.cgi?on will tell the smart plug to turn the relay on.

http://192.168.10.253/cgi-bin/relay.cgi?off will tell the smart plug to turn the relay off.

http://192.168.10.253/cgi-bin/relay.cgi?toggle will toggle the relay from on to off, or off to on.

how do i convert these into open remote switches and sensors ? i have tried all kinds of combos and cant seem to get anywhere.

i really need help!

anyway not sure if anyone has done it before ? inf not i would be willing to pay someone (via paypal ) to tell me how to do it … .

some background from people who made relay.cgi


http://benlo.com/esp8266/KankunSmartPlug.html


http://www.anites.com/2015/01/hacking-kankun-smart-wifi-plug.html

THANKS!!

json.cgi (1.48 KB)

Im sure this must be easy and simple for somone with the right knowledge ? i have tried and still cant get this to work .

I run my openremote from my Qnap server at home and seems most times when i add new

http command switches and items to my design then the panel will not load on my web browser or on my android phone , seems to get stuck in some sort of loading loop so i cant see any of my items ( i also control my home KNX from the openremote app)

the commands by http are: (supposing the switch you want to control is at ip 192.168.10.253)

talking to relay.cgi

From any web browser connected to the plug, you can now issue commands to the smart plug.

http://192.168.10.253/cgi-bin/relay.cgi?state will inquire whether the relay is on or off.

http://192.168.10.253/cgi-bin/relay.cgi?on will tell the smart plug to turn the relay on.

http://192.168.10.253/cgi-bin/relay.cgi?off will tell the smart plug to turn the relay off.

http://192.168.10.253/cgi-bin/relay.cgi?toggle will toggle the relay from on to off, or off to on.

how do i convert these into open remote switches and sensors ? i have tried all kinds of combos and cant seem to get anywhere.

i really need help!

anyway not sure if anyone has done it before ? inf not i would be willing to pay someone (via paypal ) to tell me how to do it … .

some background from people who made relay.cgi


http://benlo.com/esp8266/KankunSmartPlug.html


http://www.anites.com/2015/01/hacking-kankun-smart-wifi-plug.html

THANKS!!

relay.cgi (583 Bytes)

Hi Alex,

Commands and sensors are independent of panel loading so not sure why you are having loading issues, is the qnap under large load or maybe slow network connection over the internet?

As for HTTP commands then you want to use HTTP GET and the URL is what you pasted; the URL ending in state can then be linked to a switch sensor and then create a switch and link the two other URLs as the on/off commands accordingly (ignore the toggle URL).

Hi , as im using it mostly with my KNX system and the KNX IP gateway, do i need to add some other sort of gateway first ? is the error becayse im trying to talk to these devices from the KNX IP gateway ?

sorry if any dumb questions just not sure what im doing wrong.