Kankun

The kankun switch integration集成将 Home Assistant 与您的设备、服务等连接和集成。 [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.yamlconfiguration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] file. 在更改了configuration.yamlconfiguration.yaml 文件是 Home Assistant 的主要配置文件。它列出了要加载的集成及其特定配置。在某些情况下,需要直接在 configuration.yaml 文件中手动编辑配置。大多数集成可以在 UI 中配置。 [Learn more] 文件后,重启 Home Assistant 以应用更改。 该集成现在显示在集成页面的 设置 > 设备与服务 下。其实体在集成卡片上以及实体标签上列出。

# Example configuration.yaml entry
switch:
  platform: kankun
  switches:
    bedroom_heating:
      host: hostname_or_ipaddr

Configuration Variables

switches map Required

The array that contains all Kankun switches.

identifier map Required

Name of the Kankun switch as slug. Multiple entries are possible.

host string Required

Hostname or IP address of the switch on the local network.

name string (Optional)

Friendly name of the switch.

port integer (Optional, default: 80)

HTTP connection port.

path string (Optional, default: /cgi-bin/json.cgi)

Path of CGI script.

username string (Optional)

Username for basic authentication.

password string (Optional)

Password for basic authentication.