|
发表于 2021-3-28 22:12:50
|
显示全部楼层
{
zigbeeModel: ['1719SP-WS-01'],
model: 'SP-SK-01',
vendor: 'Spotmau',
description: 'Power plug',
supports: 'on/off',
fromZigbee: [fz.on_off],
toZigbee: [tz.on_off],
endpoint: (device) => {
return {'top': 16};
},
meta: {configureKey: 1, multiEndpoint: true},
configure: async (device, coordinatorEndpoint) => {
await bind(device.getEndpoint(16), coordinatorEndpoint, ['genOnOff']);
},
},
能不能帮忙编辑一下 我跟着写了 但是会一直会自动重启z2m,代码根本不懂 |
|