5high / konke

控客小K 接入Home Assistant,支持最新版本HA 目前最新版本(0.103),相信未来的版本也可以支持。
http://1t.click/avAU
Apache License 2.0
25 stars 16 forks source link

修改原插件为新版本Home Assistant支持,目前测试支持0.103版本。

Home Assistant component of Konke devices

Supported Devices

Mini K

Mini Pro

K

K2

intelliPLUG

Install

copy the custom_components to your home-assistant config directory.

config

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:

遥控使用方法: 控客的遥控器是不支持直接输入遥控编码的,只能通过学习添加遥控器。

configuration.yaml中添加:

remote:
  - platform: konke
    name: k_ir_remote
    model: minik
    host: 192.168.2.162
    hidden: false
    type: ir

学习遥控:

service: remote.koneke_ir_learn
data:
  entity_id: remote.k_ir_remote
  slot: 1001
  timeout: 10

使用遥控:

service: remote.send_command
data:
  entity_id: remote.k_ir_remote
  command: ir_1001
  num_repeats: 1
  delay_secs: 0.4