『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 2302|回复: 1

[插件集成] 小白关于飞利浦wiz灯泡接入 第三方集成的分享~

[复制链接]

1

主题

24

帖子

224

积分

中级会员

Rank: 3Rank: 3

积分
224
金钱
200
HASS币
0
发表于 2021-11-5 18:20:55 | 显示全部楼层 |阅读模式
本帖最后由 poseidon 于 2021-11-5 18:25 编辑

之前买天猫精灵的时候送了一个fsl的灯泡,拧在了宜家的经典落地灯上,应该是质量不咋地 时间长坏掉了于是买了个新的飞利浦wiz灯泡,光线质量很不错~最近鼓捣HA后,就到处找家里能接入的设备,发现wiz灯在论坛上还没有人分享,对于我这个小白来说很苦恼。。
好在google一下发现外网有这个第三方集成,于是弄它!
上链接:https://github.com/sbidy/wiz_light

接入步骤:
1. 将release下面最新版本的source code(zip)打包下载
2. 找到压缩包内custom_components/wiz_light文件夹,并将其复制到/config/custom_components中
3. 重启home assistant

4. 登录ha,配置→集成→添加集成→搜索wiz(没有搜到的话,shift+f5强制刷新页面再试)
5. 在“hostname or ip”中输入wiz灯泡的ip地址(去路由器查),“name”自便,选择“提交”添加成功
6. 这个时候,在“概览”里面就能看到这个灯啦~

                               
登录/注册后可看大图


                               
登录/注册后可看大图


继续折腾:
为了更方便能管理集成,我删除自己本地添加的集成,改为从HACS商店中下载,默认情况下HACS商店里是没有wiz的,
将这个网址添加到HACS的自定义储存库就好啦:https://github.com/sbidy/wiz_light

不方便访问github的朋友可以在附件中下载,直接丢到custom_components文件夹就好



另外,有一个不太懂的地方,如果有大佬看到,希望能不吝赐教~
在项目介绍页面里面有这样一段话:
-------------------------------------------------------------------------------------------
DNS / IP Address Tip
If you are using DHCP IP address features and looking for avoiding static IPs for the bulb, you can use the DNS names. To avoid the mess with the IPs you can use the Hostnames of the bulbs. The hostname will be created from the last 6 digest of the MAC and the wiz- prefix. Example: wiz-123123 or wiz-123ABC . So you can have dynamic IPs, but this hostname will not change. The MAC address you can find in your router or via nc. One of the next versions of this integration will show the MAC in the "Device Properties" tab. Overall, your DNS resolution should work
-------------------------------------------------------------------------------------------
按我的理解意思是用“wiz-mac地址后六位”代理ip填入,可以做到即便wiz灯泡的ip地址变动,仍然能正常控制的效果,然鹅我试着这样填无法成功添加设备,不知道是不是还有什么“DNS resolution”要部署

wiz_light.rar

11.47 KB, 下载次数: 7

评分

参与人数 1金钱 +1 收起 理由
风蚀的碑铭 + 1 感谢楼主分享!

查看全部评分

回复

使用道具 举报

3

主题

32

帖子

262

积分

中级会员

Rank: 3Rank: 3

积分
262
金钱
230
HASS币
0
发表于 2022-1-31 00:27:42 | 显示全部楼层
完美接入了,rgb灯带跟筒灯。 感谢分享
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-5-3 00:06 , Processed in 1.013141 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表