- 积分
- 349
- 金钱
- 287
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 349
- 金钱
- 287
- HASS币
- 0
|
发表于 2022-5-30 15:37:23
|
显示全部楼层
本帖最后由 MeowRay 于 2022-5-30 15:38 编辑
实测4+2也可以使用 #18 #20
忙活了两天,终于解决了。连涂鸦官方技术都半天解释不清楚,果然还是得靠社区,
https://github.com/Koenkk/zigbee2mqtt/issues/11928
问题关键
meta: {multiEndpoint: true},
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await endpoint.read('genBasic', ['manufacturerName', 'zclVersion', 'appVersion', 'modelId', 'powerSource', 0xfffe]);
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
await reporting.bind(device.getEndpoint(3), coordinatorEndpoint, ['genOnOff']);
await reporting.bind(device.getEndpoint(4), coordinatorEndpoint, ['genOnOff']);
},
|
|