kankun switch platform allows you to toggle customized Kankun SP3 Wifi switches. Switches are
modified to include the json.cgi
script to provide an HTTP API. Details of the necessary modifications can be found
here (be sure to install the JSON version
of the script as linked above).
To enable it, add the following lines to your
# Example configuration.yaml entry switch: platform: kankun switches: bedroom_heating: host: hostname_or_ipaddr
(map)(Required)The array that contains all Kankun switches.
(map)(Required)Name of the Kankun switch as slug. Multiple entries are possible.
(string)(Required)Hostname or IP address of the switch on the local network.
(string)(Optional)Friendly name of the switch.
(integer)(Optional)HTTP connection port.
Default value: 80
(string)(Optional)Path of CGI script.
Default value: /cgi-bin/json.cgi
(string)(Optional)Username for basic authentication.
(string)(Optional)Password for basic authentication.