本帖最后由 zxyny1989 于 2022-10-19 19:35 编辑
找类似的产品去抄。看下这个教程
我的斑点猫插座也没,然后自己改的配置:
const fz = require('zigbee-herdsman-converters/converters/fromZigbee');
const tz = require('zigbee-herdsman-converters/converters/toZigbee');
const exposes = require('zigbee-herdsman-converters/lib/exposes');
const reporting = require('zigbee-herdsman-converters/lib/reporting');
const extend = require('zigbee-herdsman-converters/lib/extend');
const e = exposes.presets;
const ea = exposes.access;
const definition = {
zigbeeModel: ['1719SP-WS-01'],
model: 'SP-WS-01',
vendor: 'Spotmau',
description: 'Power plug',
fromZigbee: [fz.on_off],
toZigbee: [tz.on_off],
exposes: [e.switch()],
};
module.exports = definition;
|