修改原插件为新版本Home Assistant支持,目前测试支持0.103版本。
Home Assistant component of Konke devices
- Mini K
- Mini Pro
- Smart Plug K(untested)
- K2 Pro(untested)
- (cnct) intelliPLUG (Mini K us version, untested)
copy the custom_components
to your home-assistant config directory.
Add the following to your configuration.yaml file:
switch:
- platform: konke
name: switch_1
host: 192.168.0.101
- platform: konke
name: switch_2
host: 192.168.0.102
CONFIGURATION VARIABLES:
-
name (string)(Optional)The display name of the device
-
host (string)(Required)The host/IP address of the device.