zigbee-herdsman-converters 14.0.649 → 14.0.650
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/fromZigbee.js +2 -2
- package/devices/osram.js +19 -11
- package/devices/tuya.js +1 -1
- package/package.json +1 -1
package/converters/fromZigbee.js
CHANGED
|
@@ -1961,10 +1961,10 @@ const converters = {
|
|
|
1961
1961
|
result.min_humidity = calibrateAndPrecisionRoundOptions(value, options, 'humidity');
|
|
1962
1962
|
break;
|
|
1963
1963
|
case tuya.dataPoints.nousTempAlarm:
|
|
1964
|
-
result.temperature_alarm = {0x00: '
|
|
1964
|
+
result.temperature_alarm = {0x00: 'lower_alarm', 0x01: 'upper_alarm', 0x02: 'canceled'}[value];
|
|
1965
1965
|
break;
|
|
1966
1966
|
case tuya.dataPoints.nousHumiAlarm:
|
|
1967
|
-
result.humidity_alarm = {0x00: '
|
|
1967
|
+
result.humidity_alarm = {0x00: 'lower_alarm', 0x01: 'upper_alarm', 0x02: 'canceled'}[value];
|
|
1968
1968
|
break;
|
|
1969
1969
|
case tuya.dataPoints.nousTempSensitivity:
|
|
1970
1970
|
result.temperature_sensitivity = calibrateAndPrecisionRoundOptions(value / 10, options, 'temperature');
|
package/devices/osram.js
CHANGED
|
@@ -395,6 +395,7 @@ module.exports = [
|
|
|
395
395
|
vendor: 'OSRAM',
|
|
396
396
|
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (only one device)',
|
|
397
397
|
extend: extend.ledvance.light_onoff_brightness(),
|
|
398
|
+
ota: ota.zigbeeOTA,
|
|
398
399
|
},
|
|
399
400
|
{
|
|
400
401
|
fingerprint: [{modelID: 'Zigbee 3.0 DALI CONV LI', endpoints: [{ID: 10}, {ID: 25}, {ID: 242}]},
|
|
@@ -402,7 +403,16 @@ module.exports = [
|
|
|
402
403
|
model: '4062172044776_2',
|
|
403
404
|
vendor: 'OSRAM',
|
|
404
405
|
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (one device and pushbutton)',
|
|
405
|
-
|
|
406
|
+
fromZigbee: [...extend.ledvance.light_onoff_brightness({noConfigure: true}).fromZigbee,
|
|
407
|
+
fz.command_toggle, fz.command_move, fz.command_stop],
|
|
408
|
+
extend: extend.ledvance.light_onoff_brightness({noConfigure: true}),
|
|
409
|
+
exposes: [e.action(['toggle', 'brightness_move_up', 'brightness_move_down', 'brightness_stop']),
|
|
410
|
+
...extend.ledvance.light_onoff_brightness({noConfigure: true}).exposes],
|
|
411
|
+
ota: ota.zigbeeOTA,
|
|
412
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
413
|
+
await reporting.bind(device.getEndpoint(10), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
414
|
+
await reporting.bind(device.getEndpoint(25), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
415
|
+
},
|
|
406
416
|
onEvent: async (type, data, device) => {
|
|
407
417
|
if (type === 'deviceInterview') {
|
|
408
418
|
device.getEndpoint(25).addBinding('genOnOff', device.getEndpoint(10));
|
|
@@ -418,6 +428,7 @@ module.exports = [
|
|
|
418
428
|
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (with two devices)',
|
|
419
429
|
extend: extend.ledvance.light_onoff_brightness({noConfigure: true}),
|
|
420
430
|
exposes: [e.light_brightness().withEndpoint('l1'), e.light_brightness().withEndpoint('l2')],
|
|
431
|
+
ota: ota.zigbeeOTA,
|
|
421
432
|
endpoint: (device) => {
|
|
422
433
|
return {'l1': 10, 'l2': 11};
|
|
423
434
|
},
|
|
@@ -425,10 +436,6 @@ module.exports = [
|
|
|
425
436
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
426
437
|
await reporting.bind(device.getEndpoint(10), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
427
438
|
await reporting.bind(device.getEndpoint(11), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
428
|
-
await reporting.onOff(device.getEndpoint(10));
|
|
429
|
-
await reporting.brightness(device.getEndpoint(10));
|
|
430
|
-
await reporting.onOff(device.getEndpoint(11));
|
|
431
|
-
await reporting.brightness(device.getEndpoint(11));
|
|
432
439
|
},
|
|
433
440
|
},
|
|
434
441
|
{
|
|
@@ -437,19 +444,20 @@ module.exports = [
|
|
|
437
444
|
model: '4062172044776_4',
|
|
438
445
|
vendor: 'OSRAM',
|
|
439
446
|
description: 'Zigbee 3.0 DALI CONV LI dimmer for DALI-based luminaires (with two devices and pushbutton)',
|
|
447
|
+
fromZigbee: [...extend.ledvance.light_onoff_brightness({noConfigure: true}).fromZigbee,
|
|
448
|
+
fz.command_toggle, fz.command_move, fz.command_stop],
|
|
440
449
|
extend: extend.ledvance.light_onoff_brightness({noConfigure: true}),
|
|
441
|
-
exposes: [e.
|
|
450
|
+
exposes: [e.action(['toggle_s1', 'brightness_move_up_s1', 'brightness_move_down_s1', 'brightness_stop_s1']),
|
|
451
|
+
e.light_brightness().withEndpoint('l1'), e.light_brightness().withEndpoint('l2')],
|
|
452
|
+
ota: ota.zigbeeOTA,
|
|
442
453
|
endpoint: (device) => {
|
|
443
|
-
return {'l1': 10, 'l2': 11};
|
|
454
|
+
return {'l1': 10, 'l2': 11, 's1': 25};
|
|
444
455
|
},
|
|
445
456
|
meta: {multiEndpoint: true},
|
|
446
457
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
447
458
|
await reporting.bind(device.getEndpoint(10), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
448
459
|
await reporting.bind(device.getEndpoint(11), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
449
|
-
await reporting.
|
|
450
|
-
await reporting.brightness(device.getEndpoint(10));
|
|
451
|
-
await reporting.onOff(device.getEndpoint(11));
|
|
452
|
-
await reporting.brightness(device.getEndpoint(11));
|
|
460
|
+
await reporting.bind(device.getEndpoint(25), coordinatorEndpoint, ['genLevelCtrl', 'genOnOff']);
|
|
453
461
|
},
|
|
454
462
|
onEvent: async (type, data, device) => {
|
|
455
463
|
if (type === 'deviceInterview') {
|
package/devices/tuya.js
CHANGED
|
@@ -2084,7 +2084,7 @@ module.exports = [
|
|
|
2084
2084
|
onEvent: tuya.onEventSetLocalTime,
|
|
2085
2085
|
configure: tuya.configureMagicPacket,
|
|
2086
2086
|
exposes: [
|
|
2087
|
-
e.
|
|
2087
|
+
e.battery_low(), e.child_lock(), e.open_window(), e.open_window_temperature().withValueMin(5).withValueMax(30),
|
|
2088
2088
|
e.comfort_temperature().withValueMin(5).withValueMax(30), e.eco_temperature().withValueMin(5).withValueMax(30),
|
|
2089
2089
|
exposes.climate().withSystemMode(['off', 'heat'], ea.STATE_SET, 'When switched to the "off" mode, the device will display ' +
|
|
2090
2090
|
'"HS" and the valve will be fully closed. Press the pair button to cancel or switch back to "heat" mode. Battery life ' +
|