欧普智能灯接入HA/HB(一) | 您所在的位置:网站首页 › 欧普夹子台灯拆 › 欧普智能灯接入HA/HB(一) |
在拖延了N久之后,终于在小伙伴的鞭策下把这个插件写出来了,自己测试了一周多,目前没发现什么问题,正式发出来 由于条件受限,没有测多个灯接入的情况,请大家帮忙测试,发现bug可以直接提issue 支持的设备:所有支持手机控制的opple吸顶灯 1. HA插件:仓库地址:https://github.com/jedmeng/homeassistant-opple 安装步骤:1. 下载 opple.py,放到custom_components/light/目录下 添加配置: light: - platform: opple name: light_1 host: 192.168.0.101 - platform: opple name: light_2 host: 192.168.0.102 2. HB插件:仓库地址:https://github.com/jedmeng/homebridge-opple 安装步骤: 安装 HomeBridge,安装完成后在iOS设备的home应用中应能看到HomeBridge。 安装插件: npm install -g homebridge-opple 修改配置,增加相关配置项。 "platforms": [{ "platform": "opple", "enableAll": false, "devices": { "xx:xx:xx:xx:xx:xx": { "name": "Bedroom Light", "address": "xxx.xxx.xxx.xxx" }, "xx:xx:xx:xx:xx:xy": { "name": "Living Light", "disabled": true } } }] 配置说明: enableAll: (可选)默认为false,当置为true时搜索局域网中所有通电的opple灯,包含未在devices中列出的设备。 devices: (可选)定义设备相关信息 "xx:xx:xx:xx:xx:xx":灯的mac地址 name:(可选)灯的显示名称 address:(可选)指定灯的ip,若不填写此项,需保证启动homebridge时灯处于通电状态,否则该灯将不会出现在设备列表中。 disabled:(可选)默认false,当置为true时该灯将不会出现在设备列表中。 |
CopyRight 2018-2019 实验室设备网 版权所有 |