- 积分
- 402
- 金钱
- 364
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
中级会员
- 积分
- 402
- 金钱
- 364
- HASS币
- 0
|
发表于 2023-5-4 13:06:26
|
显示全部楼层
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);
你看看这几行用的上吗。
|
|