Kankun
The kankun
switch integrationIntegrations connect and integrate Home Assistant with your devices, services, and more.
[Learn more] allows you to toggle customized Kankun SP3 Wi-Fi switches. Switches are
modified to include the json.cgi
script to provide an HTTP API.
Details of the necessary modifications were provided on the now dead HomeAutomationForGeeks site,
but fortunately we can still access the information via
archive.org link
(be sure to install the JSON version of the script as linked above).
Configuration
To enable it, add the following lines to your configuration.yaml
The configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI.[Learn more] file.
After changing the configuration.yaml
The configuration.yaml file is the main configuration file for Home Assistant. It lists the integrations to be loaded and their specific configurations. In some cases, the configuration needs to be edited manually directly in the configuration.yaml file. Most integrations can be configured in the UI.[Learn more] file, restart Home Assistant to apply the changes. To view the changes, go to Settings > Devices & services > Entities.
# Example configuration.yaml entry
switch:
platform: kankun
switches:
bedroom_heating:
host: hostname_or_ipaddr
Configuration Variables
The array that contains all Kankun switches.
Name of the Kankun switch as slug. Multiple entries are possible.