zigbee-herdsman-converters 14.0.481 → 14.0.482
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/devices/ikea.js +19 -0
- package/devices/lidl.js +8 -0
- package/devices/schneider_electric.js +1 -1
- package/devices/sunricher.js +10 -0
- package/devices/tuya.js +2 -1
- package/lib/xiaomi.js +5 -1
- package/package.json +1 -1
package/devices/ikea.js
CHANGED
|
@@ -590,6 +590,8 @@ module.exports = [
|
|
|
590
590
|
model: 'E1842',
|
|
591
591
|
description: 'KNYCKLAN receiver electronic water valve shut-off',
|
|
592
592
|
vendor: 'IKEA',
|
|
593
|
+
fromZigbee: extend.switch().fromZigbee.concat([fz.ias_water_leak_alarm_1]),
|
|
594
|
+
exposes: extend.switch().exposes.concat([e.water_leak()]),
|
|
593
595
|
extend: extend.switch(),
|
|
594
596
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
595
597
|
const endpoint = device.getEndpoint(1);
|
|
@@ -704,6 +706,23 @@ module.exports = [
|
|
|
704
706
|
},
|
|
705
707
|
exposes: [e.cover_position(), e.battery()],
|
|
706
708
|
},
|
|
709
|
+
{
|
|
710
|
+
zigbeeModel: ['TREDANSEN cellular blind'],
|
|
711
|
+
model: 'E2103',
|
|
712
|
+
vendor: 'IKEA',
|
|
713
|
+
description: 'TREDANSEN cellular blind',
|
|
714
|
+
fromZigbee: [fz.cover_position_tilt, fz.battery],
|
|
715
|
+
toZigbee: [tz.cover_state, tz.cover_position_tilt],
|
|
716
|
+
meta: {battery: {dontDividePercentage: true}},
|
|
717
|
+
ota: ota.tradfri,
|
|
718
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
719
|
+
const endpoint = device.getEndpoint(1);
|
|
720
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'closuresWindowCovering']);
|
|
721
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
722
|
+
await reporting.currentPositionLiftPercentage(endpoint);
|
|
723
|
+
},
|
|
724
|
+
exposes: [e.cover_position(), e.battery()],
|
|
725
|
+
},
|
|
707
726
|
{
|
|
708
727
|
zigbeeModel: ['TRADFRI open/close remote'],
|
|
709
728
|
model: 'E1766',
|
package/devices/lidl.js
CHANGED
|
@@ -731,6 +731,14 @@ module.exports = [
|
|
|
731
731
|
await reporting.onOff(endpoint);
|
|
732
732
|
},
|
|
733
733
|
},
|
|
734
|
+
{
|
|
735
|
+
fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3000_lxw3zcdk'}],
|
|
736
|
+
model: 'HG08633',
|
|
737
|
+
vendor: 'Lidl',
|
|
738
|
+
description: 'Livarno gardenspot RGB',
|
|
739
|
+
extend: extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, colorTempRange: [153, 500]}),
|
|
740
|
+
meta: {applyRedFix: true, enhancedHue: false},
|
|
741
|
+
},
|
|
734
742
|
{
|
|
735
743
|
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_chyvmhay'}],
|
|
736
744
|
model: '368308_2010',
|
|
@@ -54,7 +54,7 @@ const fzLocal = {
|
|
|
54
54
|
|
|
55
55
|
if (rxAfterTx) {
|
|
56
56
|
// Send Schneider specific ACK to make PowerTag happy
|
|
57
|
-
const networkParameters = await msg.device.zh.getNetworkParameters();
|
|
57
|
+
const networkParameters = await msg.device.zh.constructor.adapter.getNetworkParameters();
|
|
58
58
|
const payload = {
|
|
59
59
|
options: 0b000,
|
|
60
60
|
tempMaster: msg.data.gppNwkAddr,
|
package/devices/sunricher.js
CHANGED
|
@@ -29,6 +29,16 @@ module.exports = [
|
|
|
29
29
|
description: '50W Zigbee CCT LED driver (constant current)',
|
|
30
30
|
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [160, 450]}),
|
|
31
31
|
},
|
|
32
|
+
{
|
|
33
|
+
zigbeeModel: ['ZGRC-KEY-004'],
|
|
34
|
+
model: 'SR-ZG9001K2-DIM',
|
|
35
|
+
vendor: 'Sunricher',
|
|
36
|
+
description: 'Zigbee wall remote control for single color, 1 zone',
|
|
37
|
+
fromZigbee: [fz.command_on, fz.command_off, fz.command_move, fz.command_stop, fz.battery],
|
|
38
|
+
toZigbee: [],
|
|
39
|
+
exposes: [e.battery(), e.action(['on', 'off',
|
|
40
|
+
'brightness_move_up', 'brightness_move_down', 'brightness_move_stop'])],
|
|
41
|
+
},
|
|
32
42
|
{
|
|
33
43
|
zigbeeModel: ['ZGRC-KEY-007'],
|
|
34
44
|
model: 'SR-ZG9001K2-DIM2',
|
package/devices/tuya.js
CHANGED
|
@@ -210,7 +210,8 @@ module.exports = [
|
|
|
210
210
|
{manufacturerName: '_TZ3000_q6a3tepg'}, {modelID: 'TS000F', manufacturerName: '_TZ3000_m9af2l6g'},
|
|
211
211
|
{modelID: 'TS0001', manufacturerName: '_TZ3000_npzfdcof'},
|
|
212
212
|
{modelID: 'TS0001', manufacturerName: '_TZ3000_5ng23zjs'},
|
|
213
|
-
{modelID: 'TS0001', manufacturerName: '_TZ3000_v7gnj3ad'}
|
|
213
|
+
{modelID: 'TS0001', manufacturerName: '_TZ3000_v7gnj3ad'},
|
|
214
|
+
{modelID: 'TS0001', manufacturerName: '_TZ3000_mx3vgyea'}],
|
|
214
215
|
model: 'WHD02',
|
|
215
216
|
vendor: 'TuYa',
|
|
216
217
|
description: 'Wall switch module',
|
package/lib/xiaomi.js
CHANGED
|
@@ -212,7 +212,8 @@ const numericAttributes2Payload = (msg, meta, model, options, dataObject) => {
|
|
|
212
212
|
} else if (['MCCGQ11LM'].includes(model.model)) {
|
|
213
213
|
payload.contact = value === 0;
|
|
214
214
|
} else if (['SJCGQ11LM'].includes(model.model)) {
|
|
215
|
-
|
|
215
|
+
// Ignore the message. It seems not reliable. See discussion here https://github.com/Koenkk/zigbee2mqtt/issues/12018
|
|
216
|
+
// payload.water_leak = value === 1;
|
|
216
217
|
} else if (['JTYJ-GD-01LM/BW'].includes(model.model)) {
|
|
217
218
|
payload.smoke_density = value;
|
|
218
219
|
} else {
|
|
@@ -514,6 +515,9 @@ const numericAttributes2Payload = (msg, meta, model, options, dataObject) => {
|
|
|
514
515
|
case 'mode':
|
|
515
516
|
payload.operation_mode = ['command', 'event'][value];
|
|
516
517
|
break;
|
|
518
|
+
case 'modelId':
|
|
519
|
+
// We ignore it, but we add it here to not shown an unknown key in the log
|
|
520
|
+
break;
|
|
517
521
|
default:
|
|
518
522
|
if (meta.logger) meta.logger.debug(`${model.zigbeeModel}: unknown key ${key} with value ${value}`);
|
|
519
523
|
}
|