标签 - 易微联

homeassistant 易微联    2021-03-12 08:16:32    6    0    0

一、易微联插件

1、安装位置

  1. /homeassistant/custom_components/sonoff

2、插件内容

二、插件调用

  • 修改homeassistant配置文件 /homeassistant/configuration.yaml
  1. .
  2. .
  3. .
  4. sonoff:
  5. username: '+86手机号' #易微联APP帐号
  6. password: '密码' #易微联APP密码
  7. scan_interval: 60
  8. grace_period: 600
  9. api_region: 'cn'
  10. entity_prefix: True
  11. debug: False
  12. .
  13. .
  14. .

三、重启 homeassistant

homeassistant 智能家庭 ewelink 易微联 homekit 苹果家庭    2020-01-19 20:12:08    62    0    0

因为买了个sonoff智能开关(2020-01-18),还有当初玩黑群晖时买的小K智能开关(2018-02),它们各用各的APP感觉好麻烦,所以想到是不是可以集中到苹果手机的homekit中。所以就上网搜索了一把,再折腾了一把。

一、群晖中docker安装homeassistant

  • 肯定是下载这个了(见下图)
    title
  • 卷设置
    title
  • 网络设置(关键
    title
  • 完成

二、将HomeAssistant与HomeKit(apple)连接起来

  • 修改docker/homeassistant下的configuration.yaml文件,添加如下两行
  1. homekit:
  2. auto_start: true
  • 重启homeassistant,登录WebUI可以在消息中看到一个8位数设备码,去apple的homeKit中添加设备就可以了。

三.(1)、小K智能插座for HomeAssistant (方法一)

  • 亲测失败
  1. https://github.com/jedmeng/homeassistant-konke

三.(2)、小K智能插件for HomeAssistant (方法二)

  • 亲测失败
  1. https://github.com/YinHangCode/homeassistant-ikonke-outlet
  2. https://github.com/YinHangCode/ikonkeIO
  1. #docker版,需要运行以下命令才能正常使用
  2. apk add libc6-compat
  1. #动行以下命令查看小K智能设备信息,192.168.2.255为广播地址
  2. sh ikonkeIO.sh --discover 192.168.2.255
  3. #下图为运行后结果截图

title

  • 修改homeassistant下的configuration.yaml文件
  • ikonkeIO:后面跟着ikonkeIO.sh的绝对路径
  1. switch:
  2. - platform: homeassistant-ikonke-outlet
  3. ikonkeIO: '/config/custom_components/ikonkeIO/ikon