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

标题: 关于ZigBee2mqtt把不支持的硬件用外部转换文件方式接入的问题 [打印本页]

作者: a_dongde    时间: 2023-2-28 12:09
标题: 关于ZigBee2mqtt把不支持的硬件用外部转换文件方式接入的问题
本帖最后由 a_dongde 于 2023-2-28 13:35 编辑

我在某鱼上买了几个粤奇胜的两位开关,开始通过ZHA方式可以直接接入HA的,后来转到ZigBee2mqtt发现只能识别出型号不受支持,通过坛内的方法:https://bbs.hassbian.com/thread-13030-1-9.html
修改配置文件如下:[attach]45751[/attach],

然后显示受支持了,第一次可以更新开关的状态,但是控制开关的时候屡次报错,信号好的时候也是报同样的错误

,[attach]45752[/attach][attach]45753[/attach]
不知道是和原因?查询到粤奇胜的开关与涂鸦的TS0001 型号外形相似,哪位大佬帮忙提示下外部转换文件正确的写法?本人不懂编程,还请多指教~~





作者: 尼陌    时间: 2023-5-4 13:02
js文件没有写对吧。
作者: 尼陌    时间: 2023-5-4 13:06

    meta: {multiEndpoint: true},
     
        configure: async (device, coordinatorEndpoint, logger) => {
        const endpoint1 = device.getEndpoint(1);
        await reporting.bind(endpoint1, coordinatorEndpoint, ['genOnOff');
        await reporting.onOff(endpoint1);
        const endpoint2 = device.getEndpoint(2);
        await reporting.bind(endpoint2, coordinatorEndpoint, ['genOnOff']);
        await reporting.onOff(endpoint2);

你看看这几行用的上吗。

作者: wz199021    时间: 2023-8-16 00:39
尼陌 发表于 2023-5-4 13:06
meta: {multiEndpoint: true},
     
        configure: async (device, coordinatorEndpoint, logge ...

求大佬帮我这个6键情景开关的转换器




欢迎光临 『瀚思彼岸』» 智能家居技术论坛 (https://bbs.hassbian.com/) Powered by Discuz! X3.5