本帖最后由 zxyny1989 于 2024-3-8 22:44 编辑
<div class="blockcode"><blockquote>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;
我的插座目前用的配置 |