|
本帖最后由 chenggangyaan 于 2021-8-26 12:13 编辑
本人代码小白,最近研究自制zigbee网关,综合大神教程,现在搞出了一个利用tasmota(zigbee.bin)连接CC2530,现在已经成功将设备接入,能在tasmota webui里面看到设备(命令窗口能看到设备各种信息),mqtt配置到了homeassistant。但是现在不知道怎么在homeassistant里面写配置文件,将设备信息读取出来,比如人体感应器(想获取:状态、电量、信号强度)等。希望大神能指导一二。 获取的信息如下。
MQT: tele/z2m/SENSOR = {"ZbReceived":{"0x987E":{"Device":"0x987E","Name":"涂鸦感应器","BatteryVoltage":3,"BatteryPercentage":100,"Endpoint":1,"LinkQuality":148}}}
MQT: tele/z2m/SENSOR = {"ZbReceived":{"0x076B":{"Device":"0x076B","Name":"无线开关","BatteryVoltage":2.99,"BatteryPercentage":96,"Endpoint":1,"LinkQuality":171}}}
|
|