* i-integrations:
- add note to restart HA after changing config
- add related topics
- rename 'platform' or 'sensor' to 'integration' to streamline terminology
- add glossary reference to Configuration file
* Undo formatting
title, description, ha_category, ha_release, ha_iot_class, ha_domain, ha_platforms, ha_integration_type, related
title
description
ha_category
ha_release
ha_iot_class
ha_domain
ha_platforms
ha_integration_type
related
Kankun
Instructions for the Kankun SP3 Wifi switch
Switch
0.36
Local Polling
kankun
switch
integration
docs
title
/docs/configuration/
Configuration file
The kankun switch {% term integration %} 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 {% term "configuration.yaml" %} file.
{% include integrations/restart_ha_after_config_inclusion.md %}
# Example configuration.yaml entryswitch:platform:kankunswitches:bedroom_heating:host:hostname_or_ipaddr
{% configuration %}
switches:
description: The array that contains all Kankun switches.
required: true
type: map
keys:
identifier:
description: Name of the Kankun switch as slug. Multiple entries are possible.
required: true
type: map
keys:
host:
description: Hostname or IP address of the switch on the local network.
required: true
type: string
name:
description: Friendly name of the switch.
required: false
type: string
port:
description: HTTP connection port.
required: false
default: 80
type: integer
path:
description: Path of CGI script.
required: false
default: "/cgi-bin/json.cgi"
type: string
username:
description: Username for basic authentication.
required: false
type: string
password:
description: Password for basic authentication.
required: false
type: string
{% endconfiguration %}