zigbee-herdsman-converters 15.0.67 → 15.0.69
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/converters/toZigbee.js +10 -3
- package/devices/bosch.js +19 -3
- package/devices/centralite.js +1 -1
- package/devices/ikea.js +7 -0
- package/devices/ledvance.js +2 -2
- package/devices/osram.js +3 -3
- package/devices/philips.js +8 -1
- package/devices/siterwell.js +1 -1
- package/devices/smartwings.js +2 -2
- package/devices/xiaomi.js +14 -21
- package/lib/exposes.js +2 -0
- package/lib/extend.js +30 -18
- package/lib/xiaomi.js +1 -1
- package/package.json +2 -2
package/converters/toZigbee.js
CHANGED
|
@@ -2271,7 +2271,7 @@ const converters = {
|
|
|
2271
2271
|
xiaomi_auto_off: {
|
|
2272
2272
|
key: ['auto_off'],
|
|
2273
2273
|
convertSet: async (entity, key, value, meta) => {
|
|
2274
|
-
if (['ZNCZ04LM', 'ZNCZ12LM'].includes(meta.mapped.model)) {
|
|
2274
|
+
if (['ZNCZ04LM', 'ZNCZ12LM', 'SP-EUC01'].includes(meta.mapped.model)) {
|
|
2275
2275
|
await entity.write('aqaraOpple', {0x0202: {value: value ? 1 : 0, type: 0x10}}, manufacturerOptions.xiaomi);
|
|
2276
2276
|
} else if (['ZNCZ11LM'].includes(meta.mapped.model)) {
|
|
2277
2277
|
const payload = value ?
|
|
@@ -2284,6 +2284,13 @@ const converters = {
|
|
|
2284
2284
|
}
|
|
2285
2285
|
return {state: {auto_off: value}};
|
|
2286
2286
|
},
|
|
2287
|
+
convertGet: async (entity, key, meta) => {
|
|
2288
|
+
if (['ZNCZ04LM', 'ZNCZ12LM', 'SP-EUC01'].includes(meta.mapped.model)) {
|
|
2289
|
+
await entity.read('aqaraOpple', [0x0202], manufacturerOptions.xiaomi);
|
|
2290
|
+
} else {
|
|
2291
|
+
throw new Error('Not supported');
|
|
2292
|
+
}
|
|
2293
|
+
},
|
|
2287
2294
|
},
|
|
2288
2295
|
GZCGQ11LM_detection_period: {
|
|
2289
2296
|
key: ['detection_period'],
|
|
@@ -2356,7 +2363,7 @@ const converters = {
|
|
|
2356
2363
|
convertSet: async (entity, key, value, meta) => {
|
|
2357
2364
|
if (['ZNCZ04LM', 'ZNCZ12LM', 'ZNCZ15LM', 'QBCZ14LM', 'QBCZ15LM', 'QBKG19LM', 'QBKG20LM', 'QBKG25LM', 'QBKG26LM',
|
|
2358
2365
|
'QBKG28LM', 'QBKG31LM', 'QBKG34LM', 'DLKZMK11LM', 'SSM-U01', 'WS-EUK01', 'WS-EUK02',
|
|
2359
|
-
'WS-EUK03', 'WS-EUK04'].includes(meta.mapped.model)) {
|
|
2366
|
+
'WS-EUK03', 'WS-EUK04', 'SP-EUC01'].includes(meta.mapped.model)) {
|
|
2360
2367
|
await entity.write('aqaraOpple', {0x0203: {value: value ? 1 : 0, type: 0x10}}, manufacturerOptions.xiaomi);
|
|
2361
2368
|
} else if (['ZNCZ11LM'].includes(meta.mapped.model)) {
|
|
2362
2369
|
const payload = value ?
|
|
@@ -2372,7 +2379,7 @@ const converters = {
|
|
|
2372
2379
|
convertGet: async (entity, key, meta) => {
|
|
2373
2380
|
if (['ZNCZ04LM', 'ZNCZ12LM', 'ZNCZ15LM', 'QBCZ15LM', 'QBCZ14LM', 'QBKG19LM', 'QBKG20LM', 'QBKG25LM', 'QBKG26LM',
|
|
2374
2381
|
'QBKG28LM', 'QBKG31LM', 'QBKG34LM', 'DLKZMK11LM', 'SSM-U01', 'WS-EUK01', 'WS-EUK02',
|
|
2375
|
-
'WS-EUK03', 'WS-EUK04'].includes(meta.mapped.model)) {
|
|
2382
|
+
'WS-EUK03', 'WS-EUK04', 'SP-EUC01'].includes(meta.mapped.model)) {
|
|
2376
2383
|
await entity.read('aqaraOpple', [0x0203], manufacturerOptions.xiaomi);
|
|
2377
2384
|
} else {
|
|
2378
2385
|
throw new Error('Not supported');
|
package/devices/bosch.js
CHANGED
|
@@ -49,7 +49,7 @@ const displayOrientation = {
|
|
|
49
49
|
// Radiator Thermostat II
|
|
50
50
|
const tzLocal = {
|
|
51
51
|
bosch_thermostat: {
|
|
52
|
-
key: ['window_open', 'boost', 'system_mode'],
|
|
52
|
+
key: ['window_open', 'boost', 'system_mode', 'pi_heating_demand'],
|
|
53
53
|
convertSet: async (entity, key, value, meta) => {
|
|
54
54
|
if (key === 'window_open') {
|
|
55
55
|
value = value.toUpperCase();
|
|
@@ -66,7 +66,7 @@ const tzLocal = {
|
|
|
66
66
|
return {state: {boost: value}};
|
|
67
67
|
}
|
|
68
68
|
if (key === 'system_mode') {
|
|
69
|
-
// Map system_mode (Off/Auto/Heat) to
|
|
69
|
+
// Map system_mode (Off/Auto/Heat) to Bosch operating mode
|
|
70
70
|
value = value.toLowerCase();
|
|
71
71
|
|
|
72
72
|
let opMode = operatingModes.manual; // OperatingMode 1 = Manual (Default)
|
|
@@ -79,6 +79,12 @@ const tzLocal = {
|
|
|
79
79
|
await entity.write('hvacThermostat', {0x4007: {value: opMode, type: herdsman.Zcl.DataType.enum8}}, boschManufacturer);
|
|
80
80
|
return {state: {system_mode: value}};
|
|
81
81
|
}
|
|
82
|
+
if (key === 'pi_heating_demand') {
|
|
83
|
+
await entity.write('hvacThermostat',
|
|
84
|
+
{0x4020: {value: value, type: herdsman.Zcl.DataType.enum8}},
|
|
85
|
+
boschManufacturer);
|
|
86
|
+
return {state: {pi_heating_demand: value}};
|
|
87
|
+
}
|
|
82
88
|
},
|
|
83
89
|
convertGet: async (entity, key, meta) => {
|
|
84
90
|
switch (key) {
|
|
@@ -91,6 +97,9 @@ const tzLocal = {
|
|
|
91
97
|
case 'system_mode':
|
|
92
98
|
await entity.read('hvacThermostat', [0x4007], boschManufacturer);
|
|
93
99
|
break;
|
|
100
|
+
case 'pi_heating_demand':
|
|
101
|
+
await entity.read('hvacThermostat', [0x4020], boschManufacturer);
|
|
102
|
+
break;
|
|
94
103
|
|
|
95
104
|
default: // Unknown key
|
|
96
105
|
throw new Error(`Unhandled key toZigbee.bosch_thermostat.convertGet ${key}`);
|
|
@@ -426,7 +435,7 @@ const definition = [
|
|
|
426
435
|
.withSetpoint('occupied_heating_setpoint', 5, 30, 0.5)
|
|
427
436
|
.withLocalTemperatureCalibration(-5, 5, 0.1)
|
|
428
437
|
.withSystemMode(['off', 'heat', 'auto'])
|
|
429
|
-
.withPiHeatingDemand(ea.
|
|
438
|
+
.withPiHeatingDemand(ea.ALL),
|
|
430
439
|
exposes.binary('boost', ea.ALL, 'ON', 'OFF')
|
|
431
440
|
.withDescription('Activate Boost heating'),
|
|
432
441
|
exposes.binary('window_open', ea.ALL, 'ON', 'OFF')
|
|
@@ -473,6 +482,13 @@ const definition = [
|
|
|
473
482
|
maximumReportInterval: constants.repInterval.HOUR,
|
|
474
483
|
reportableChange: 1,
|
|
475
484
|
}], boschManufacturer);
|
|
485
|
+
// report boost as it's disabled by thermostat after some time
|
|
486
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
487
|
+
attribute: {ID: 0x4043, type: herdsman.Zcl.DataType.enum8},
|
|
488
|
+
minimumReportInterval: 0,
|
|
489
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
490
|
+
reportableChange: 1,
|
|
491
|
+
}], boschManufacturer);
|
|
476
492
|
|
|
477
493
|
await endpoint.read('hvacThermostat', ['localTemperatureCalibration']);
|
|
478
494
|
await endpoint.read('hvacThermostat', [0x4007, 0x4020, 0x4042, 0x4043], boschManufacturer);
|
package/devices/centralite.js
CHANGED
|
@@ -270,7 +270,7 @@ module.exports = [
|
|
|
270
270
|
model: '4200-C',
|
|
271
271
|
vendor: 'Centralite',
|
|
272
272
|
description: 'Smart outlet',
|
|
273
|
-
extend: extend.switch(),
|
|
273
|
+
extend: extend.switch({disablePowerOnBehavior: true}),
|
|
274
274
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
275
275
|
const endpoint = device.getEndpoint(1);
|
|
276
276
|
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
package/devices/ikea.js
CHANGED
|
@@ -365,6 +365,13 @@ module.exports = [
|
|
|
365
365
|
description: 'TRADFRI LED bulb E26 250 lumen, wireless dimmable warm white/globe clear',
|
|
366
366
|
extend: tradfriExtend.light_onoff_brightness(),
|
|
367
367
|
},
|
|
368
|
+
{
|
|
369
|
+
zigbeeModel: ['TRADFRI bulb E27 WW G95 CL 470lm'],
|
|
370
|
+
model: 'LED2102G3',
|
|
371
|
+
vendor: 'IKEA',
|
|
372
|
+
description: 'TRADFRI bulb E27 WW 470 lumen, wireless dimmable warm white/globe clear',
|
|
373
|
+
extend: tradfriExtend.light_onoff_brightness(),
|
|
374
|
+
},
|
|
368
375
|
{
|
|
369
376
|
zigbeeModel: ['TRADFRIbulbG125E27WSopal470lm', 'TRADFRIbulbG125E26WSopal450lm'],
|
|
370
377
|
model: 'LED1936G5',
|
package/devices/ledvance.js
CHANGED
|
@@ -8,7 +8,7 @@ module.exports = [
|
|
|
8
8
|
model: '4058075208384',
|
|
9
9
|
vendor: 'LEDVANCE',
|
|
10
10
|
description: 'SMART+ Classic A60 E27 Tunable white',
|
|
11
|
-
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 370]
|
|
11
|
+
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
|
|
12
12
|
ota: ota.ledvance,
|
|
13
13
|
},
|
|
14
14
|
{
|
|
@@ -55,7 +55,7 @@ module.exports = [
|
|
|
55
55
|
model: 'AC25697',
|
|
56
56
|
vendor: 'LEDVANCE',
|
|
57
57
|
description: 'SMART+ CLASSIC MULTICOLOUR 60 10W E27',
|
|
58
|
-
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]
|
|
58
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
|
|
59
59
|
ota: ota.ledvance,
|
|
60
60
|
},
|
|
61
61
|
{
|
package/devices/osram.js
CHANGED
|
@@ -335,7 +335,7 @@ module.exports = [
|
|
|
335
335
|
model: 'AC03648',
|
|
336
336
|
vendor: 'OSRAM',
|
|
337
337
|
description: 'SMART+ spot GU5.3 tunable white',
|
|
338
|
-
extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]
|
|
338
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
|
|
339
339
|
ota: ota.ledvance,
|
|
340
340
|
},
|
|
341
341
|
{
|
|
@@ -412,7 +412,7 @@ module.exports = [
|
|
|
412
412
|
model: '4062172044776_1',
|
|
413
413
|
vendor: 'OSRAM',
|
|
414
414
|
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (only one device)',
|
|
415
|
-
extend: extend.ledvance.light_onoff_brightness(
|
|
415
|
+
extend: extend.ledvance.light_onoff_brightness(),
|
|
416
416
|
ota: ota.zigbeeOTA,
|
|
417
417
|
},
|
|
418
418
|
{
|
|
@@ -425,7 +425,7 @@ module.exports = [
|
|
|
425
425
|
fz.command_toggle, fz.command_move, fz.command_stop],
|
|
426
426
|
extend: extend.ledvance.light_onoff_brightness({noConfigure: true}),
|
|
427
427
|
exposes: [e.action(['toggle', 'brightness_move_up', 'brightness_move_down', 'brightness_stop']),
|
|
428
|
-
...extend.ledvance.light_onoff_brightness({noConfigure: true
|
|
428
|
+
...extend.ledvance.light_onoff_brightness({noConfigure: true}).exposes],
|
|
429
429
|
ota: ota.zigbeeOTA,
|
|
430
430
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
431
431
|
await reporting.bind(device.getEndpoint(10), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
package/devices/philips.js
CHANGED
|
@@ -10,6 +10,13 @@ const ea = exposes.access;
|
|
|
10
10
|
const extend = {switch: require('../lib/extend').switch};
|
|
11
11
|
|
|
12
12
|
module.exports = [
|
|
13
|
+
{
|
|
14
|
+
zigbeeModel: ['LWO007'],
|
|
15
|
+
model: '9290030521',
|
|
16
|
+
vendor: 'Philips',
|
|
17
|
+
description: 'Hue white G125 B22 LED bulb filament giant globe',
|
|
18
|
+
extend: philips.extend.light_onoff_brightness(),
|
|
19
|
+
},
|
|
13
20
|
{
|
|
14
21
|
zigbeeModel: ['929003055801'],
|
|
15
22
|
model: '929003055801',
|
|
@@ -2806,7 +2813,7 @@ module.exports = [
|
|
|
2806
2813
|
extend: philips.extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
|
|
2807
2814
|
},
|
|
2808
2815
|
{
|
|
2809
|
-
zigbeeModel: ['915005997501', '915005997401'],
|
|
2816
|
+
zigbeeModel: ['915005997501', '915005997401', '929003542401'],
|
|
2810
2817
|
model: '915005997501',
|
|
2811
2818
|
vendor: 'Philips',
|
|
2812
2819
|
description: 'Hue Bluetooth white & color ambiance ceiling lamp Infuse large',
|
package/devices/siterwell.js
CHANGED
|
@@ -7,7 +7,7 @@ const ea = exposes.access;
|
|
|
7
7
|
|
|
8
8
|
module.exports = [
|
|
9
9
|
{
|
|
10
|
-
zigbeeModel: ['ivfvd7h', 'eaxp72v\u0000', 'kfvq6avy\u0000', 'fvq6avy\u0000', 'fvq6avy', 'zk78ptr\u0000'],
|
|
10
|
+
zigbeeModel: ['ivfvd7h', 'eaxp72v\u0000', 'kfvq6avy\u0000', 'fvq6avy\u0000', 'fvq6avy', 'zk78ptr\u0000', '4yfvweb\u0000'],
|
|
11
11
|
fingerprint: [
|
|
12
12
|
{modelID: 'TS0601', manufacturerName: '_TZE200_zivfvd7h'},
|
|
13
13
|
{modelId: 'TS0601', manufacturerName: '_TZE200_kfvq6avy'},
|
package/devices/smartwings.js
CHANGED
|
@@ -16,8 +16,8 @@ module.exports = [
|
|
|
16
16
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
17
17
|
const endpoint = device.getEndpoint(1);
|
|
18
18
|
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'closuresWindowCovering']);
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
device.powerSource = 'Mains (single phase)';
|
|
20
|
+
device.save();
|
|
21
21
|
},
|
|
22
22
|
exposes: [e.cover_position(), e.battery()],
|
|
23
23
|
},
|
package/devices/xiaomi.js
CHANGED
|
@@ -1927,10 +1927,8 @@ module.exports = [
|
|
|
1927
1927
|
exposes: [
|
|
1928
1928
|
e.switch(), e.power().withAccess(ea.STATE_GET), e.energy(), e.device_temperature().withAccess(ea.STATE),
|
|
1929
1929
|
e.voltage(), e.current(), e.consumer_connected(), e.led_disabled_night(),
|
|
1930
|
-
e.power_outage_memory(),
|
|
1931
|
-
|
|
1932
|
-
exposes.numeric('overload_protection', exposes.access.ALL).withValueMin(100).withValueMax(2300).withUnit('W')
|
|
1933
|
-
.withDescription('Maximum allowed load, turns off if exceeded')],
|
|
1930
|
+
e.power_outage_memory(), e.auto_off(20),
|
|
1931
|
+
e.overload_protection(100, 2300)],
|
|
1934
1932
|
ota: ota.zigbeeOTA,
|
|
1935
1933
|
},
|
|
1936
1934
|
{
|
|
@@ -1944,10 +1942,8 @@ module.exports = [
|
|
|
1944
1942
|
exposes: [
|
|
1945
1943
|
e.switch(), e.power().withAccess(ea.STATE_GET), e.energy(), e.device_temperature().withAccess(ea.STATE),
|
|
1946
1944
|
e.voltage(), e.current(), e.consumer_connected(), e.led_disabled_night(),
|
|
1947
|
-
e.power_outage_memory(),
|
|
1948
|
-
|
|
1949
|
-
exposes.numeric('overload_protection', exposes.access.ALL).withValueMin(100).withValueMax(2300).withUnit('W')
|
|
1950
|
-
.withDescription('Maximum allowed load, turns off if exceeded')],
|
|
1945
|
+
e.power_outage_memory(), e.auto_off(20),
|
|
1946
|
+
e.overload_protection(100, 2300)],
|
|
1951
1947
|
ota: ota.zigbeeOTA,
|
|
1952
1948
|
},
|
|
1953
1949
|
{
|
|
@@ -1957,7 +1953,8 @@ module.exports = [
|
|
|
1957
1953
|
vendor: 'Xiaomi',
|
|
1958
1954
|
fromZigbee: [fz.on_off, fz.xiaomi_basic, fz.electrical_measurement, fz.metering,
|
|
1959
1955
|
fz.aqara_opple, fz.xiaomi_power, fz.device_temperature],
|
|
1960
|
-
toZigbee: [tz.on_off, tz.xiaomi_switch_power_outage_memory
|
|
1956
|
+
toZigbee: [tz.on_off, tz.xiaomi_switch_power_outage_memory, tz.xiaomi_led_disabled_night,
|
|
1957
|
+
tz.xiaomi_overload_protection, tz.xiaomi_auto_off, tz.xiaomi_socket_button_lock],
|
|
1961
1958
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
1962
1959
|
const endpoint = device.getEndpoint(1);
|
|
1963
1960
|
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
|
|
@@ -2006,9 +2003,10 @@ module.exports = [
|
|
|
2006
2003
|
globalStore.putValue(device, 'interval', interval);
|
|
2007
2004
|
}
|
|
2008
2005
|
},
|
|
2009
|
-
exposes: [e.switch(), e.power(), e.energy(), e.power_outage_memory(),
|
|
2010
|
-
e.
|
|
2011
|
-
e.
|
|
2006
|
+
exposes: [e.switch(), e.power(), e.energy(), e.power_outage_memory(), e.voltage(), e.current(),
|
|
2007
|
+
e.device_temperature().withDescription('Device temperature (polled every 30 min)'),
|
|
2008
|
+
e.consumer_connected(), e.led_disabled_night(), e.overload_protection(100, 2300),
|
|
2009
|
+
e.auto_off(20), e.button_lock()],
|
|
2012
2010
|
ota: ota.zigbeeOTA,
|
|
2013
2011
|
},
|
|
2014
2012
|
{
|
|
@@ -2021,9 +2019,7 @@ module.exports = [
|
|
|
2021
2019
|
tz.xiaomi_switch_power_outage_memory, tz.xiaomi_auto_off],
|
|
2022
2020
|
exposes: [e.switch(), e.power().withAccess(ea.STATE_GET), e.energy(), e.device_temperature(), e.voltage(),
|
|
2023
2021
|
e.power_outage_memory(), e.led_disabled_night(),
|
|
2024
|
-
|
|
2025
|
-
.withDescription('If the power is constantly lower than 2W within half an hour, ' +
|
|
2026
|
-
'the plug will be automatically turned off')],
|
|
2022
|
+
e.auto_off(30)],
|
|
2027
2023
|
onEvent: async (type, data, device) => {
|
|
2028
2024
|
device.skipTimeResponse = true;
|
|
2029
2025
|
// According to the Zigbee the genTime.time should be the seconds since 1 January 2020 UTC
|
|
@@ -2829,8 +2825,7 @@ module.exports = [
|
|
|
2829
2825
|
exposes: [e.switch(), e.power().withAccess(ea.STATE), e.energy(), e.device_temperature().withAccess(ea.STATE),
|
|
2830
2826
|
e.voltage(), e.current(), e.consumer_connected().withAccess(ea.STATE),
|
|
2831
2827
|
e.power_outage_memory(), e.led_disabled_night(), e.button_lock(),
|
|
2832
|
-
|
|
2833
|
-
.withDescription('Maximum allowed load, turns off if exceeded')],
|
|
2828
|
+
e.overload_protection(100, 2500)],
|
|
2834
2829
|
ota: ota.zigbeeOTA,
|
|
2835
2830
|
},
|
|
2836
2831
|
{
|
|
@@ -2900,8 +2895,7 @@ module.exports = [
|
|
|
2900
2895
|
e.current(), e.power_outage_memory(), e.led_disabled_night(), e.button_lock(),
|
|
2901
2896
|
exposes.enum('button_switch_mode', exposes.access.ALL, ['relay', 'relay_and_usb'])
|
|
2902
2897
|
.withDescription('Control both relay and usb or only the relay with the physical switch button'),
|
|
2903
|
-
|
|
2904
|
-
.withDescription('Maximum allowed load, turns off if exceeded')],
|
|
2898
|
+
e.overload_protection(100, 2500)],
|
|
2905
2899
|
ota: ota.zigbeeOTA,
|
|
2906
2900
|
},
|
|
2907
2901
|
{
|
|
@@ -2927,8 +2921,7 @@ module.exports = [
|
|
|
2927
2921
|
e.switch(), e.power().withAccess(ea.STATE), e.energy(),
|
|
2928
2922
|
e.device_temperature().withAccess(ea.STATE), e.voltage(),
|
|
2929
2923
|
e.current(), e.power_outage_memory(), e.led_disabled_night(), e.button_lock(),
|
|
2930
|
-
|
|
2931
|
-
.withDescription('Maximum allowed load, turns off if exceeded')],
|
|
2924
|
+
e.overload_protection(100, 2500)],
|
|
2932
2925
|
ota: ota.zigbeeOTA,
|
|
2933
2926
|
},
|
|
2934
2927
|
{
|
package/lib/exposes.js
CHANGED
|
@@ -541,6 +541,7 @@ module.exports = {
|
|
|
541
541
|
angle_axis: (name) => new Numeric(name, access.STATE).withValueMin(-90).withValueMax(90).withUnit('°'),
|
|
542
542
|
aqi: () => new Numeric('aqi', access.STATE).withDescription('Air quality index'),
|
|
543
543
|
auto_lock: () => new Switch().withState('auto_lock', false, 'Enable/disable auto lock', access.STATE_SET, 'AUTO', 'MANUAL'),
|
|
544
|
+
auto_off: (offTime) => new Binary('auto_off', access.ALL, true, false).withDescription(`Turn the device automatically off when attached device consumes less than 2W for ${offTime} minutes`),
|
|
544
545
|
auto_relock_time: () => new Numeric('auto_relock_time', access.ALL).withValueMin(0).withUnit('s').withDescription('The number of seconds to wait after unlocking a lock before it automatically locks again. 0=disabled'),
|
|
545
546
|
away_mode: () => new Switch().withState('away_mode', false, 'Enable/disable away mode', access.STATE_SET),
|
|
546
547
|
away_preset_days: () => new Numeric('away_preset_days', access.STATE_SET).withDescription('Away preset days').withValueMin(0).withValueMax(100),
|
|
@@ -615,6 +616,7 @@ module.exports = {
|
|
|
615
616
|
occupancy_level: () => new Numeric('occupancy_level', access.STATE).withDescription('The measured occupancy value'),
|
|
616
617
|
open_window: () => new Binary('open_window', access.STATE_SET, 'ON', 'OFF').withDescription('Enables/disables the status on the device'),
|
|
617
618
|
open_window_temperature: () => new Numeric('open_window_temperature', access.STATE_SET).withUnit('°C').withDescription('Open window temperature').withValueMin(0).withValueMax(35),
|
|
619
|
+
overload_protection: (min, max) => new Numeric('overload_protection', access.ALL).withUnit('W').withValueMin(min).withValueMax(max).withDescription('Maximum allowed load, turns off if exceeded'),
|
|
618
620
|
pm10: () => new Numeric('pm10', access.STATE).withUnit('µg/m³').withDescription('Measured PM10 (particulate matter) concentration'),
|
|
619
621
|
pm25: () => new Numeric('pm25', access.STATE).withUnit('µg/m³').withDescription('Measured PM2.5 (particulate matter) concentration'),
|
|
620
622
|
position: () => new Numeric('position', access.STATE).withUnit('%').withDescription('Position'),
|
package/lib/extend.js
CHANGED
|
@@ -144,24 +144,36 @@ const extend = {
|
|
|
144
144
|
};
|
|
145
145
|
{
|
|
146
146
|
extend.ledvance = {
|
|
147
|
-
light_onoff_brightness: (options={}) =>
|
|
148
|
-
...
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
147
|
+
light_onoff_brightness: (options={}) => {
|
|
148
|
+
options = {disablePowerOnBehavior: true, ...options};
|
|
149
|
+
return {
|
|
150
|
+
...extend.light_onoff_brightness(options),
|
|
151
|
+
toZigbee: extend.light_onoff_brightness(options).toZigbee.concat([tz.ledvance_commands]),
|
|
152
|
+
};
|
|
153
|
+
},
|
|
154
|
+
light_onoff_brightness_colortemp: (options={}) => {
|
|
155
|
+
options = {disablePowerOnBehavior: true, ...options};
|
|
156
|
+
return {
|
|
157
|
+
...extend.light_onoff_brightness_colortemp({disableColorTempStartup: true, ...options}),
|
|
158
|
+
toZigbee: extend.light_onoff_brightness_colortemp({disableColorTempStartup: true, ...options})
|
|
159
|
+
.toZigbee.concat([tz.ledvance_commands]),
|
|
160
|
+
};
|
|
161
|
+
},
|
|
162
|
+
light_onoff_brightness_color: (options={}) => {
|
|
163
|
+
options = {disablePowerOnBehavior: true, ...options};
|
|
164
|
+
return {
|
|
165
|
+
...extend.light_onoff_brightness_color({supportsHS: true, ...options}),
|
|
166
|
+
toZigbee: extend.light_onoff_brightness_color({supportsHS: true, ...options}).toZigbee.concat([tz.ledvance_commands]),
|
|
167
|
+
};
|
|
168
|
+
},
|
|
169
|
+
light_onoff_brightness_colortemp_color: (options={}) => {
|
|
170
|
+
options = {disablePowerOnBehavior: true, ...options};
|
|
171
|
+
return {
|
|
172
|
+
...extend.light_onoff_brightness_colortemp_color({supportsHS: true, disableColorTempStartup: true, ...options}),
|
|
173
|
+
toZigbee: extend.light_onoff_brightness_colortemp_color({supportsHS: true, disableColorTempStartup: true, ...options})
|
|
174
|
+
.toZigbee.concat([tz.ledvance_commands]),
|
|
175
|
+
};
|
|
176
|
+
},
|
|
165
177
|
};
|
|
166
178
|
}
|
|
167
179
|
|
package/lib/xiaomi.js
CHANGED
|
@@ -552,7 +552,7 @@ const numericAttributes2Payload = async (msg, meta, model, options, dataObject)
|
|
|
552
552
|
}
|
|
553
553
|
break;
|
|
554
554
|
case '512':
|
|
555
|
-
if (['ZNCZ15LM', 'QBCZ14LM', 'QBCZ15LM'].includes(model.model)) {
|
|
555
|
+
if (['ZNCZ15LM', 'QBCZ14LM', 'QBCZ15LM', 'SP-EUC01'].includes(model.model)) {
|
|
556
556
|
payload.button_lock = value === 1 ? 'OFF' : 'ON';
|
|
557
557
|
} else {
|
|
558
558
|
const mode = {0x01: 'control_relay', 0x00: 'decoupled'}[value];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zigbee-herdsman-converters",
|
|
3
|
-
"version": "15.0.
|
|
3
|
+
"version": "15.0.69",
|
|
4
4
|
"description": "Collection of device converters to be used with zigbee-herdsman",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"buffer-crc32": "^0.2.13",
|
|
39
39
|
"https-proxy-agent": "^5.0.1",
|
|
40
40
|
"tar-stream": "^3.0.0",
|
|
41
|
-
"zigbee-herdsman": "^0.14.
|
|
41
|
+
"zigbee-herdsman": "^0.14.98"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"eslint": "*",
|