本帖最后由 aoligei 于 2023-1-30 13:59 编辑
目前z2m只支持小燕的几个设备。我有一个TERNCY-CM01窗帘电机。目前能够接入zigbee2mqtt里,但是不能获取状态和控制。数据库条目如下
{"id":16,"type":"Router","ieeeAddr":"0xe0798dfffe815396","nwkAddr":17231,"manufId":4648,"manufName":"小燕","powerSource":"Unknown" ,"modelId":"TERNCY-CM01","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":514,"inClusterList" :[0,3,4,5,258,64716],"outClusterList":[3,25],"clusters":{"genBasic":{"attributes":{"hwVersion":4,"modelId":"TERNCY -CM01","manufacturerName":"Xiaoyan","powerSource":0,"zclVersion":8}},"genOta":{"attributes":{"currentFileVersion":23}},"manuSpecificClusterAduroSmart":{"attributes":{"20":0}}},"binds":[],"configuredReportings":[],"meta":{}}},"hwVersion":4,"zclVersion":8,"interviewCompleted ":true,"meta":{},"lastSeen":1673633218570,"defaultSendRequestWhen":"immediate"}
转换文件如下
{
zigbeeModel: ['TERNCY-CM01'],
model: 'TERNCY-CM01',
vendor: 'Xiaoyan',
description: '小燕开合帘电机',
fromZigbee: [],
toZigbee: [],
exposes: [e.linkquality(), e.battery()],
},
我应该如何写转换文件才能控制呢。恳请大神支招。如果很麻烦也愿意付费。
另外不知道有没有大神能帮我解读指导一下怎么理解这些变量常量的意思呢。以便于举一反三。谢谢
|