100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > Home Assistant 基于EZSP Zigbee Dongle创建Zigbee智能家居系统

Home Assistant 基于EZSP Zigbee Dongle创建Zigbee智能家居系统

时间:2023-03-08 11:04:01

相关推荐

Home Assistant 基于EZSP Zigbee Dongle创建Zigbee智能家居系统

本文描述了如何在家庭自动化平台Home Assistant (Hass.io) (https://www.home-assistant.io/)中使用基于Silicon Labs的Zigbee Dongle创建Zigbee智能家居系统。

需求:

Home Assistant 系统:https://www.home-assistant.io/installation/

EZSP(Silicon Labs EmberZNet protocol) Zigbee Dongle控制器:/item.htm?spm=a1z10.5-c-s.w4002-2320597.22.7ca341afWpA4Mi&id=629214051586

本文重点介绍以下三个部分:

连接EZSP(Silicon Labs EmberZNet protocol)到目标PC或树莓派

在Home Assistant中安装Zigbee Home Automation平台

Zigbee设备配对和移除

本文不侧重于Home Assistant (hasss .io)的安装和初始配置。请遵循官方说明https://www.home-assistant.io/hassio/installation/。

介绍

基于EZSP(Silicon LabsEmberZNet protocol)的ZigbeeDongle可以用以下两个方式和Home Assistant 一起工作:

在普通的Linux机器上,安装Home Assistant

在树莓派(任何其他单板电脑)中安装Home Assistant

初始化安装和连接

本文不包括HomeAssistant (Hass.io) 的安装。我们假设,你可以使用浏览器访问Home Assistant Web 界面。

强烈建议安装SSH Server和Configurator插件,至少在Zigbee设置阶段。要安装它们,只需遵循Hass.io安装指南(https://www.home-assistant.io/hassio/installation/)。

连接EZSP(SiliconLabs EmberZNet protocol) Zigbee Dongle 到Raspberry Pi 或者PC

插入USB适配器后,检查配置

等待Hass.io启动

使用您最喜爱的浏览器连接到web界面

进入Supervisor -> System -> Hardware菜单

确认USB适配器被检测到并正确识别为串口(在本例中为/dev/ttyUSB0)

Zigbee HomeAutomation 组件配置

为了EZSP(Silicon Labs EmberZNet protocol)Zigbee Dongle 与Home Assistant 一起工作,我们要使用Zigbee Home Automation组件(https://www.home-assistant.io/components/zha/)。它是预装到Hass.io,所以我们只需要正确配置它,让它工作。

配置Zigbee HomeAutomation组件

要设置Zigbee Home Automation组件与EZSP(Silicon Labs EmberZNet protocol)Zigbee Dongle 正常工作,我们需要

进入Configuration -> Integrations

搜索并添加新的集成Zigbee Home Automation

选择Enter Manually

连接EZSP选项

输入串口/dev/ttyUSB0并连接波特率115200

安装成功

现在Zigbee集成应该出现:

设置日志(可选)

为了发现任何潜在的问题,最好启用日志记录,至少在安装和安装期间是这样。要做到这一点,只需在配置文件/config/configuration.yaml中添加以下几行:

logger: default:

warn logs:

ponents.zha: debug

bellows.ezsp: debug

bellows.uart: debug

zigpy.zdo: debug

zigpy.application: debug

Zigbee HomeAutomation 组件使用

添加并正确配置Zigbee HomeAutomation组件后,您就可以开始使用它了。

添加你的设备到Home Assistant

打开“Configuration ”,转到“Devices ”和“ZigbeeCoordinator”

开始“Add Devices via this device”

当你调用它时,你有60秒的时间添加设备。

在此过程中,请参考设备手册将其设置为配对模式。有时候你只需要给它上电。

如果找到了设备,您将能够在日志中看到它(示例设备)

从Home Assistant中移除你的设备

打开Configuration并且转到Devices

选择要删除的设备

一旦您调用了这个服务,您就可以在日志中验证设备是否已经离开网络。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。