这个帖子之前解决了京鱼座设备的连接问题:
https://bbs.hassbian.com/thread-16673-1-1.html
但是最近 zigbee2mqtt 升级后,无线开关不好用了,重新连接也不行,按钮没有响应。今天仔细研究了一下,jingxuan.js 修改下:
//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 {} = require('zigbee-herdsman-converters/lib/modernExtend');
// Add the lines below
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 ota = require('zigbee-herdsman-converters/lib/ota');
const utils = require('zigbee-herdsman-converters/lib/utils');
const globalStore = require('zigbee-herdsman-converters/lib/store');
const e = exposes.presets;
const ea = exposes.access;
前面注释掉的是原来的,下面的应该是zigbee2mqtt更新的,这里可以看到:
https://www.zigbee2mqtt.io/advan ... rt_new_devices.html
|