『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 785|回复: 1

[求助] Zigbee2mqtt 添加的面板,配对成功后,开关面板打开之后马上....

[复制链接]

200

主题

542

帖子

3821

积分

论坛元老

Rank: 8Rank: 8

积分
3821
金钱
3279
HASS币
0
发表于 2022-7-11 20:42:55 | 显示全部楼层 |阅读模式
本帖最后由 newspaper 于 2022-7-12 12:04 编辑

配对成功后,一点开的动作,马上又关闭了是为什么呀?

玻璃触模开关面板。
没有通过zigbee2mqtt添加前,正常工作。
回复

使用道具 举报

200

主题

542

帖子

3821

积分

论坛元老

Rank: 8Rank: 8

积分
3821
金钱
3279
HASS币
0
 楼主| 发表于 2022-7-13 12:07:29 | 显示全部楼层
本帖最后由 newspaper 于 2022-7-13 12:18 编辑

123.png
报错信息如上

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: ['3AFE242000068612'],
    model: 'konke_s2',
    vendor: 'konke',
    description: 'switch2',
    extend: extend.switch(),
    configure: async (device, coordinatorEndpoint, logger) => {
        const endpoint = device.getEndpoint(10);
        await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
        await reporting.onOff(endpoint)
    },
};
module.exports = definition;
上面是我的配置文件.js
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-25 02:26 , Processed in 0.079310 second(s), 26 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表