zigbee-herdsman-converters 14.0.487 → 14.0.490
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/lellki.js +1 -1
- package/devices/lidl.js +11 -0
- package/devices/philips.js +10 -1
- package/devices/sonoff.js +5 -0
- package/lib/xiaomi.js +3 -1
- package/package.json +1 -1
package/devices/lellki.js
CHANGED
|
@@ -99,7 +99,7 @@ module.exports = [
|
|
|
99
99
|
device.save();
|
|
100
100
|
},
|
|
101
101
|
options: [exposes.options.measurement_poll_interval()],
|
|
102
|
-
exposes: [e.switch()
|
|
102
|
+
exposes: [e.switch(), e.power(), e.current(), e.voltage().withAccess(ea.STATE),
|
|
103
103
|
e.energy(), exposes.enum('power_outage_memory', ea.STATE_SET, ['on', 'off', 'restore'])
|
|
104
104
|
.withDescription('Recover state after power outage')],
|
|
105
105
|
onEvent: tuya.onEventMeasurementPoll,
|
package/devices/lidl.js
CHANGED
|
@@ -528,6 +528,17 @@ module.exports = [
|
|
|
528
528
|
device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
|
|
529
529
|
},
|
|
530
530
|
},
|
|
531
|
+
{
|
|
532
|
+
fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3210_p9ao60da'}],
|
|
533
|
+
model: 'HG08008',
|
|
534
|
+
vendor: 'Lidl',
|
|
535
|
+
description: 'Livarno Home LED ceiling light',
|
|
536
|
+
...extend.light_onoff_brightness_colortemp_color({disableColorTempStartup: true, colorTempRange: [153, 500]}),
|
|
537
|
+
meta: {applyRedFix: true, enhancedHue: false},
|
|
538
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
539
|
+
device.getEndpoint(1).saveClusterAttributeKeyValue('lightingColorCtrl', {colorCapabilities: 29});
|
|
540
|
+
},
|
|
541
|
+
},
|
|
531
542
|
{
|
|
532
543
|
fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3210_z1vlyufu'}],
|
|
533
544
|
model: '14158704L',
|
package/devices/philips.js
CHANGED
|
@@ -1787,11 +1787,20 @@ module.exports = [
|
|
|
1787
1787
|
zigbeeModel: ['5061031P7_01', '5061031P7_02', '5061031P7_03'],
|
|
1788
1788
|
model: '5061031P7',
|
|
1789
1789
|
vendor: 'Philips',
|
|
1790
|
-
description: 'Hue White & Color ambience Centris ceiling light (2 spots)',
|
|
1790
|
+
description: 'Hue White & Color ambience Centris ceiling light (2 spots) (white)',
|
|
1791
1791
|
meta: {turnsOffAtBrightness1: true},
|
|
1792
1792
|
extend: hueExtend.light_onoff_brightness_colortemp_color(),
|
|
1793
1793
|
ota: ota.zigbeeOTA,
|
|
1794
1794
|
},
|
|
1795
|
+
{
|
|
1796
|
+
zigbeeModel: ['5061030P7_01', '5061030P7_02', '5061030P7_03'],
|
|
1797
|
+
model: '5061030P7',
|
|
1798
|
+
vendor: 'Philips',
|
|
1799
|
+
description: 'Hue White & Color ambience Centris ceiling light (2 spots) (black)',
|
|
1800
|
+
meta: {turnsOffAtBrightness1: true},
|
|
1801
|
+
extend: hueExtend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
|
|
1802
|
+
ota: ota.zigbeeOTA,
|
|
1803
|
+
},
|
|
1795
1804
|
{
|
|
1796
1805
|
zigbeeModel: ['5062131P7'],
|
|
1797
1806
|
model: '5062131P7',
|
package/devices/sonoff.js
CHANGED
|
@@ -25,6 +25,11 @@ module.exports = [
|
|
|
25
25
|
fromZigbee: extend.switch().fromZigbee.concat([fz.power_on_behavior]),
|
|
26
26
|
exposes: extend.switch().exposes.concat([e.power_on_behavior()]),
|
|
27
27
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
28
|
+
// Unbind genPollCtrl to prevent device from sending checkin message.
|
|
29
|
+
// Zigbee-herdsmans responds to the checkin message which causes the device
|
|
30
|
+
// to poll slower.
|
|
31
|
+
// https://github.com/Koenkk/zigbee2mqtt/issues/11676
|
|
32
|
+
await device.getEndpoint(1).unbind('genPollCtrl', coordinatorEndpoint);
|
|
28
33
|
device.powerSource = 'Mains (single phase)';
|
|
29
34
|
device.save();
|
|
30
35
|
},
|
package/lib/xiaomi.js
CHANGED
|
@@ -293,7 +293,9 @@ const numericAttributes2Payload = (msg, meta, model, options, dataObject) => {
|
|
|
293
293
|
payload.consumption = payload.energy;
|
|
294
294
|
break;
|
|
295
295
|
case '150':
|
|
296
|
-
|
|
296
|
+
if (!['JTYJ-GD-01LM/BW'].includes(model.model)) {
|
|
297
|
+
payload.voltage = precisionRound(value * 0.1, 1); // 0x96
|
|
298
|
+
}
|
|
297
299
|
break;
|
|
298
300
|
case '151':
|
|
299
301
|
if (['LLKZMK11LM'].includes(model.model)) {
|