本帖最后由 newspaper 于 2025-3-11 14:42 编辑
大家好,我有一个zigbee施耐德4键情景面板(不带继电器)。认出型号认不出制造商。
看官网按照下面信息
Next generate the external definition by navigating to the Dev console tab of the device and press Generate external definition.
生成如下代码
const m = require('zigbee-herdsman-converters/lib/modernExtend');
const definition = {
zigbeeModel: ['A3N34RWMZB_xx_C1'],
model: 'A3N34RWMZB_xx_C1',
vendor: 'Schneider Electric',
description: 'Automatically generated definition',
extend: [m.deviceEndpoints({"endpoints":{"10":10,"11":11,"12":12,"13":13}}), m.commandsOnOff({"endpointNames":["10","11","12","13"]}), m.commandsWindowCovering({"endpointNames":["10","11","12","13"]})],
meta: {"multiEndpoint":true},
};
module.exports = definition;
通过file editor 或samba 放到如下路径
homeassistant/zigbee2mqtt/external_converters/my-first-converter.js
现在是制造商认出来了。但还是不能正常工作,就是事件或实体里还是空的。
附件是从官网下的施耐德.ts文件供大家参考。
|