Forums : support for Kankun Small K wifi switch
This page last changed on Jan 24, 2016 by alexhp11.
Has anyone integrated these little Kankun Small K switches into openremote ?
im sure it can be done through the webview area
the switches run openwrt and already have a script on the switch which lets me turn it on and off with different web addresses
we have people who made json.cgi and relay.cgi already but im not sure how to call the switch from openremote i have tried a bunch of ways but no luck.
I run my openremote from my Qnap server at home and seems most times when i add new webview 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 web 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. Change the IP address to the appropriate one for your device.
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.
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
|Document generated by Confluence on Jun 05, 2016 09:34|