zigbee-herdsman-converters 19.12.1 → 19.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/converters/fromZigbee.d.ts.map +1 -1
- package/converters/fromZigbee.js +17 -16
- package/converters/fromZigbee.js.map +1 -1
- package/converters/toZigbee.d.ts.map +1 -1
- package/converters/toZigbee.js +24 -23
- package/converters/toZigbee.js.map +1 -1
- package/devices/bosch.d.ts.map +1 -1
- package/devices/bosch.js +3 -2
- package/devices/bosch.js.map +1 -1
- package/devices/develco.d.ts.map +1 -1
- package/devices/develco.js +2 -1
- package/devices/develco.js.map +1 -1
- package/devices/easyiot.d.ts.map +1 -1
- package/devices/easyiot.js +9 -8
- package/devices/easyiot.js.map +1 -1
- package/devices/ewelink.d.ts.map +1 -1
- package/devices/ewelink.js +2 -1
- package/devices/ewelink.js.map +1 -1
- package/devices/gledopto.d.ts.map +1 -1
- package/devices/gledopto.js +2 -1
- package/devices/gledopto.js.map +1 -1
- package/devices/kwikset.d.ts.map +1 -1
- package/devices/kwikset.js +0 -4
- package/devices/kwikset.js.map +1 -1
- package/devices/led_trading.d.ts.map +1 -1
- package/devices/led_trading.js +2 -1
- package/devices/led_trading.js.map +1 -1
- package/devices/lixee.d.ts.map +1 -1
- package/devices/lixee.js +11 -9
- package/devices/lixee.js.map +1 -1
- package/devices/lumi.d.ts.map +1 -1
- package/devices/lumi.js +5 -4
- package/devices/lumi.js.map +1 -1
- package/devices/profalux.d.ts.map +1 -1
- package/devices/profalux.js +3 -2
- package/devices/profalux.js.map +1 -1
- package/devices/sonoff.d.ts.map +1 -1
- package/devices/sonoff.js +27 -26
- package/devices/sonoff.js.map +1 -1
- package/devices/sunricher.d.ts.map +1 -1
- package/devices/sunricher.js +3 -2
- package/devices/sunricher.js.map +1 -1
- package/devices/tuya.d.ts.map +1 -1
- package/devices/tuya.js +4 -3
- package/devices/tuya.js.map +1 -1
- package/devices/ubisys.d.ts.map +1 -1
- package/devices/ubisys.js +6 -5
- package/devices/ubisys.js.map +1 -1
- package/devices/yale.d.ts.map +1 -1
- package/devices/yale.js +2 -1
- package/devices/yale.js.map +1 -1
- package/index.d.ts +2 -2
- package/index.d.ts.map +1 -1
- package/index.js +5 -4
- package/index.js.map +1 -1
- package/lib/generateDefinition.d.ts.map +1 -1
- package/lib/generateDefinition.js +3 -2
- package/lib/generateDefinition.js.map +1 -1
- package/lib/legacy.d.ts +3 -3
- package/lib/legacy.d.ts.map +1 -1
- package/lib/legacy.js +94 -115
- package/lib/legacy.js.map +1 -1
- package/lib/legrand.d.ts.map +1 -1
- package/lib/legrand.js +2 -1
- package/lib/legrand.js.map +1 -1
- package/lib/light.d.ts.map +1 -1
- package/lib/light.js +4 -3
- package/lib/light.js.map +1 -1
- package/lib/logger.d.ts.map +1 -1
- package/lib/logger.js +4 -4
- package/lib/logger.js.map +1 -1
- package/lib/lumi.d.ts.map +1 -1
- package/lib/lumi.js +36 -39
- package/lib/lumi.js.map +1 -1
- package/lib/modernExtend.d.ts.map +1 -1
- package/lib/modernExtend.js +9 -9
- package/lib/modernExtend.js.map +1 -1
- package/lib/ota/common.d.ts.map +1 -1
- package/lib/ota/common.js +35 -36
- package/lib/ota/common.js.map +1 -1
- package/lib/ota/inovelli.d.ts.map +1 -1
- package/lib/ota/inovelli.js +3 -2
- package/lib/ota/inovelli.js.map +1 -1
- package/lib/ota/jethome.d.ts.map +1 -1
- package/lib/ota/jethome.js +5 -4
- package/lib/ota/jethome.js.map +1 -1
- package/lib/ota/ledvance.d.ts.map +1 -1
- package/lib/ota/ledvance.js +2 -1
- package/lib/ota/ledvance.js.map +1 -1
- package/lib/ota/lixee.d.ts.map +1 -1
- package/lib/ota/lixee.js +3 -2
- package/lib/ota/lixee.js.map +1 -1
- package/lib/ota/salus.d.ts.map +1 -1
- package/lib/ota/salus.js +2 -1
- package/lib/ota/salus.js.map +1 -1
- package/lib/ota/tradfri.d.ts.map +1 -1
- package/lib/ota/tradfri.js +2 -1
- package/lib/ota/tradfri.js.map +1 -1
- package/lib/ota/ubisys.d.ts.map +1 -1
- package/lib/ota/ubisys.js +4 -3
- package/lib/ota/ubisys.js.map +1 -1
- package/lib/ota/zigbeeOTA.d.ts.map +1 -1
- package/lib/ota/zigbeeOTA.js +6 -5
- package/lib/ota/zigbeeOTA.js.map +1 -1
- package/lib/philips.d.ts.map +1 -1
- package/lib/philips.js +2 -1
- package/lib/philips.js.map +1 -1
- package/lib/tuya.d.ts.map +1 -1
- package/lib/tuya.js +3 -3
- package/lib/tuya.js.map +1 -1
- package/lib/types.d.ts +4 -4
- package/lib/types.d.ts.map +1 -1
- package/lib/ubisys.d.ts.map +1 -1
- package/lib/ubisys.js +2 -1
- package/lib/ubisys.js.map +1 -1
- package/lib/utils.d.ts +1 -2
- package/lib/utils.d.ts.map +1 -1
- package/lib/utils.js +4 -10
- package/lib/utils.js.map +1 -1
- package/lib/zosung.d.ts.map +1 -1
- package/lib/zosung.js +21 -20
- package/lib/zosung.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [19.13.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.12.1...v19.13.0) (2024-04-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Improve logging ([#7289](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7289)) ([5fa8327](https://github.com/Koenkk/zigbee-herdsman-converters/commit/5fa8327da80fc9eb85d284f67cef970c30939079))
|
|
9
|
+
|
|
3
10
|
## [19.12.1](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.12.0...v19.12.1) (2024-04-02)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fromZigbee.d.ts","sourceRoot":"","sources":["../src/converters/fromZigbee.ts"],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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4wBpB,CAAC;AAEpD,eAAe,UAAU,CAAC"}
|
package/converters/fromZigbee.js
CHANGED
|
@@ -29,6 +29,7 @@ const constants = __importStar(require("../lib/constants"));
|
|
|
29
29
|
const libColor = __importStar(require("../lib/color"));
|
|
30
30
|
const utils = __importStar(require("../lib/utils"));
|
|
31
31
|
const exposes = __importStar(require("../lib/exposes"));
|
|
32
|
+
const NS = 'zhc:fz';
|
|
32
33
|
const defaultSimulatedBrightness = 255;
|
|
33
34
|
const e = exposes.presets;
|
|
34
35
|
const ea = exposes.access;
|
|
@@ -2320,8 +2321,8 @@ const converters1 = {
|
|
|
2320
2321
|
return null;
|
|
2321
2322
|
default:
|
|
2322
2323
|
// Unknown dps
|
|
2323
|
-
meta.logger.debug(`
|
|
2324
|
-
${msg.data.toString('hex')}
|
|
2324
|
+
meta.logger.debug(`Unhandled DP ${dp} for ${meta.device.manufacturerName}: \
|
|
2325
|
+
${msg.data.toString('hex')}`, NS);
|
|
2325
2326
|
}
|
|
2326
2327
|
}
|
|
2327
2328
|
},
|
|
@@ -2369,7 +2370,7 @@ const converters1 = {
|
|
|
2369
2370
|
return { action: value };
|
|
2370
2371
|
}
|
|
2371
2372
|
else {
|
|
2372
|
-
meta.logger.
|
|
2373
|
+
meta.logger.warning('Unknown lock status with source ' + msg.data[3] + ' and event code ' + msg.data[4], NS);
|
|
2373
2374
|
}
|
|
2374
2375
|
},
|
|
2375
2376
|
},
|
|
@@ -2437,7 +2438,7 @@ const converters1 = {
|
|
|
2437
2438
|
}*/
|
|
2438
2439
|
if (msg.data.includes(Buffer.from([19, 5, 0]), 13)) {
|
|
2439
2440
|
if (meta.logger)
|
|
2440
|
-
meta.logger.debug('Detected Livolo Curtain Switch');
|
|
2441
|
+
meta.logger.debug('Detected Livolo Curtain Switch', NS);
|
|
2441
2442
|
// curtain switch, hack
|
|
2442
2443
|
meta.device.modelID = 'TI0001-curtain-switch';
|
|
2443
2444
|
meta.device.save();
|
|
@@ -2453,7 +2454,7 @@ const converters1 = {
|
|
|
2453
2454
|
}
|
|
2454
2455
|
if (msg.data.includes(Buffer.from([19, 13, 0]), 13)) {
|
|
2455
2456
|
if (meta.logger)
|
|
2456
|
-
meta.logger.debug('Detected Livolo Pir Sensor');
|
|
2457
|
+
meta.logger.debug('Detected Livolo Pir Sensor', NS);
|
|
2457
2458
|
meta.device.modelID = 'TI0001-pir';
|
|
2458
2459
|
meta.device.save();
|
|
2459
2460
|
}
|
|
@@ -3109,7 +3110,7 @@ const converters1 = {
|
|
|
3109
3110
|
0x50: 'lock', 0x51: 'unlock', 0x52: 'half_open', 0x53: 'tilt',
|
|
3110
3111
|
};
|
|
3111
3112
|
if (!lookup.hasOwnProperty(commandID)) {
|
|
3112
|
-
meta.logger.error(`PTM 215ZE: missing command '${commandID}'
|
|
3113
|
+
meta.logger.error(`PTM 215ZE: missing command '${commandID}'`, NS);
|
|
3113
3114
|
}
|
|
3114
3115
|
else {
|
|
3115
3116
|
return { action: lookup[commandID] };
|
|
@@ -3138,7 +3139,7 @@ const converters1 = {
|
|
|
3138
3139
|
};
|
|
3139
3140
|
const ID = `${commandID}_${msg.data.commandFrame.raw?.slice(0, 1).join('_') ?? ''}`;
|
|
3140
3141
|
if (!lookup.hasOwnProperty(ID)) {
|
|
3141
|
-
meta.logger.error(`PTM 216Z: missing command '${ID}'
|
|
3142
|
+
meta.logger.error(`PTM 216Z: missing command '${ID}'`, NS);
|
|
3142
3143
|
}
|
|
3143
3144
|
else {
|
|
3144
3145
|
return { action: lookup[ID] };
|
|
@@ -3348,7 +3349,7 @@ const converters1 = {
|
|
|
3348
3349
|
else if (mode === 0x05)
|
|
3349
3350
|
payload.pilot_wire_mode = 'off';
|
|
3350
3351
|
else {
|
|
3351
|
-
meta.logger.
|
|
3352
|
+
meta.logger.warning(`Bad mode : ${mode}`, NS);
|
|
3352
3353
|
payload.pilot_wire_mode = 'unknown';
|
|
3353
3354
|
}
|
|
3354
3355
|
return payload;
|
|
@@ -3393,7 +3394,7 @@ const converters1 = {
|
|
|
3393
3394
|
0x34: 'stop', 0x35: 'up', 0x36: 'down', // 600087l
|
|
3394
3395
|
};
|
|
3395
3396
|
if (!lookup.hasOwnProperty(commandID)) {
|
|
3396
|
-
meta.logger.error(`Legrand GreenPower: missing command '${commandID}'
|
|
3397
|
+
meta.logger.error(`Legrand GreenPower: missing command '${commandID}'`, NS);
|
|
3397
3398
|
}
|
|
3398
3399
|
else {
|
|
3399
3400
|
return { action: lookup[commandID] };
|
|
@@ -3601,7 +3602,7 @@ const converters1 = {
|
|
|
3601
3602
|
if (msg.data.hasOwnProperty('currentPositionLiftPercentage') && msg.data['currentPositionLiftPercentage'] == 50) {
|
|
3602
3603
|
if ((entry.CurrentPosition == -1 && entry.lastPreviousAction == -1) ||
|
|
3603
3604
|
entry.lastPreviousAction == 50) {
|
|
3604
|
-
meta.logger.
|
|
3605
|
+
meta.logger.warning(`ZMCSW032D ignore action`, NS);
|
|
3605
3606
|
return;
|
|
3606
3607
|
}
|
|
3607
3608
|
}
|
|
@@ -4156,7 +4157,7 @@ const converters1 = {
|
|
|
4156
4157
|
0x62: 'press_3_and_4', 0x63: 'release_3_and_4', 0x64: 'press_1_and_2', 0x65: 'release_1_and_2',
|
|
4157
4158
|
};
|
|
4158
4159
|
if (!lookup.hasOwnProperty(commandID)) {
|
|
4159
|
-
meta.logger.error(`Hue Tap: missing command '${commandID}'
|
|
4160
|
+
meta.logger.error(`Hue Tap: missing command '${commandID}'`, NS);
|
|
4160
4161
|
}
|
|
4161
4162
|
else {
|
|
4162
4163
|
return { action: lookup[commandID] };
|
|
@@ -4344,7 +4345,7 @@ const converters1 = {
|
|
|
4344
4345
|
attribute['occupiedHeatingSetpoint'] = msg.data['setpoint'];
|
|
4345
4346
|
msg.endpoint.saveClusterAttributeKeyValue('hvacThermostat', attribute);
|
|
4346
4347
|
result['occupied_heating_setpoint'] = parseFloat(msg.data['setpoint']) / 100.0;
|
|
4347
|
-
meta.logger.debug(`received wiser setpoint command with value: '${msg.data['setpoint']}'
|
|
4348
|
+
meta.logger.debug(`received wiser setpoint command with value: '${msg.data['setpoint']}'`, NS);
|
|
4348
4349
|
return result;
|
|
4349
4350
|
},
|
|
4350
4351
|
},
|
|
@@ -4441,7 +4442,7 @@ const converters1 = {
|
|
|
4441
4442
|
return;
|
|
4442
4443
|
const lookup = { 0x21: 'press_on', 0x20: 'press_off', 0x34: 'release', 0x35: 'hold_on', 0x36: 'hold_off' };
|
|
4443
4444
|
if (!lookup.hasOwnProperty(commandID)) {
|
|
4444
|
-
meta.logger.error(`Sunricher: missing command '${commandID}'
|
|
4445
|
+
meta.logger.error(`Sunricher: missing command '${commandID}'`, NS);
|
|
4445
4446
|
}
|
|
4446
4447
|
else {
|
|
4447
4448
|
return { action: lookup[commandID] };
|
|
@@ -4467,7 +4468,7 @@ const converters1 = {
|
|
|
4467
4468
|
0x34: 'release',
|
|
4468
4469
|
};
|
|
4469
4470
|
if (!lookup.hasOwnProperty(commandID)) {
|
|
4470
|
-
meta.logger.error(`Sunricher: missing command '${commandID}'
|
|
4471
|
+
meta.logger.error(`Sunricher: missing command '${commandID}'`, NS);
|
|
4471
4472
|
}
|
|
4472
4473
|
else {
|
|
4473
4474
|
return { action: lookup[commandID] };
|
|
@@ -5077,7 +5078,7 @@ const converters2 = {
|
|
|
5077
5078
|
};
|
|
5078
5079
|
await msg.endpoint.command('hvacThermostat', 'wiserSmartSetSetpoint', payload, { srcEndpoint: 11, disableDefaultResponse: true });
|
|
5079
5080
|
meta.logger.debug(`syncing vact setpoint was: '${result.occupied_heating_setpoint}'` +
|
|
5080
|
-
` now: '${meta.state.occupied_heating_setpoint}'
|
|
5081
|
+
` now: '${meta.state.occupied_heating_setpoint}'`, NS);
|
|
5081
5082
|
}
|
|
5082
5083
|
}
|
|
5083
5084
|
else {
|
|
@@ -5105,7 +5106,7 @@ const converters2 = {
|
|
|
5105
5106
|
else if (mode === 0x05)
|
|
5106
5107
|
payload.pilot_wire_mode = 'comfort_-2';
|
|
5107
5108
|
else {
|
|
5108
|
-
meta.logger.
|
|
5109
|
+
meta.logger.warning(`wrong mode : ${mode}`, NS);
|
|
5109
5110
|
payload.pilot_wire_mode = 'unknown';
|
|
5110
5111
|
}
|
|
5111
5112
|
return payload;
|