zigbee-herdsman-converters 14.0.449 → 14.0.450
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 +14 -5
- package/devices/iluminize.js +10 -0
- package/devices/philips.js +11 -2
- package/devices/third_reality.js +3 -2
- package/devices/tuya.js +3 -2
- package/lib/tuya.js +3 -1
- package/npm-shrinkwrap.json +13019 -439
- package/package.json +2 -2
package/converters/fromZigbee.js
CHANGED
|
@@ -4176,15 +4176,24 @@ const converters = {
|
|
|
4176
4176
|
return {temperature: calibrateAndPrecisionRoundOptions(value / 10, options, 'temperature')};
|
|
4177
4177
|
case tuya.dataPoints.tuyaSabHumidity:
|
|
4178
4178
|
return {humidity: calibrateAndPrecisionRoundOptions(value / 10, options, 'humidity')};
|
|
4179
|
+
// DP22: Smart Air Box: Formaldehyd, Smart Air Housekeeper: co2
|
|
4180
|
+
case tuya.dataPoints.tuyaSabFormaldehyd:
|
|
4181
|
+
if (meta.device.manufacturerName === '_TZE200_dwcarsat') {
|
|
4182
|
+
return {co2: calibrateAndPrecisionRoundOptions(value, options, 'co2')};
|
|
4183
|
+
} else {
|
|
4184
|
+
return {formaldehyd: calibrateAndPrecisionRoundOptions(value, options, 'formaldehyd')};
|
|
4185
|
+
}
|
|
4186
|
+
// DP2: Smart Air Box: co2, Smart Air Housekeeper: MP25
|
|
4179
4187
|
case tuya.dataPoints.tuyaSabCO2:
|
|
4180
|
-
|
|
4188
|
+
if (meta.device.manufacturerName === '_TZE200_dwcarsat') {
|
|
4189
|
+
return {pm25: calibrateAndPrecisionRoundOptions(value, options, 'pm25')};
|
|
4190
|
+
} else {
|
|
4191
|
+
return {co2: calibrateAndPrecisionRoundOptions(value, options, 'co2')};
|
|
4192
|
+
}
|
|
4181
4193
|
case tuya.dataPoints.tuyaSabVOC:
|
|
4182
4194
|
return {voc: calibrateAndPrecisionRoundOptions(value, options, 'voc')};
|
|
4183
|
-
case tuya.dataPoints.
|
|
4184
|
-
// Not sure which unit this is, supposedly mg/m³, but the value seems way too high.
|
|
4195
|
+
case tuya.dataPoints.tuyaSahkCH2O:
|
|
4185
4196
|
return {formaldehyd: calibrateAndPrecisionRoundOptions(value, options, 'formaldehyd')};
|
|
4186
|
-
case tuya.dataPoints.tuyaSahkMP25:
|
|
4187
|
-
return {pm25: calibrateAndPrecisionRoundOptions(value, options, 'pm25')};
|
|
4188
4197
|
default:
|
|
4189
4198
|
meta.logger.warn(`zigbee-herdsman-converters:TuyaSmartAirBox: Unrecognized DP #${
|
|
4190
4199
|
dp} with data ${JSON.stringify(dpValue)}`);
|
package/devices/iluminize.js
CHANGED
|
@@ -185,4 +185,14 @@ module.exports = [
|
|
|
185
185
|
description: 'Zigbee 3.0 LED-controller 1x 8A',
|
|
186
186
|
extend: extend.light_onoff_brightness(),
|
|
187
187
|
},
|
|
188
|
+
{
|
|
189
|
+
zigbeeModel: ['ZGRC-TEUR-001'],
|
|
190
|
+
model: '511.544',
|
|
191
|
+
vendor: 'Iluminize',
|
|
192
|
+
description: 'Zigbee 3.0 wall dimmer RGBW 4 zone',
|
|
193
|
+
fromZigbee: [fz.command_move_to_color, fz.command_move_hue, fz.command_on, fz.command_off, fz.command_move],
|
|
194
|
+
toZigbee: [],
|
|
195
|
+
exposes: [e.action(['recall_*', 'on', 'off', 'color_move', 'color_temperature_move',
|
|
196
|
+
'hue_move', 'brightness_step_down', 'brightness_step_up', 'brightness_move_down', 'brightness_move_up', 'brightness_stop'])],
|
|
197
|
+
},
|
|
188
198
|
];
|
package/devices/philips.js
CHANGED
|
@@ -2508,7 +2508,7 @@ module.exports = [
|
|
|
2508
2508
|
ota: ota.zigbeeOTA,
|
|
2509
2509
|
},
|
|
2510
2510
|
{
|
|
2511
|
-
zigbeeModel: ['5309331P6', '5309330P6', '929003046301_03'],
|
|
2511
|
+
zigbeeModel: ['5309331P6', '5309330P6', '929003046301_03', '929003046301_02'],
|
|
2512
2512
|
model: '5309331P6',
|
|
2513
2513
|
vendor: 'Philips',
|
|
2514
2514
|
description: 'Hue White ambiance Runner triple spotlight',
|
|
@@ -2776,7 +2776,7 @@ module.exports = [
|
|
|
2776
2776
|
ota: ota.zigbeeOTA,
|
|
2777
2777
|
},
|
|
2778
2778
|
{
|
|
2779
|
-
zigbeeModel: ['915005997501'],
|
|
2779
|
+
zigbeeModel: ['915005997501', '915005997401'],
|
|
2780
2780
|
model: '915005997501',
|
|
2781
2781
|
vendor: 'Philips',
|
|
2782
2782
|
description: 'Hue Bluetooth white & color ambiance ceiling lamp Infuse large',
|
|
@@ -2810,4 +2810,13 @@ module.exports = [
|
|
|
2810
2810
|
extend: hueExtend.light_onoff_brightness(),
|
|
2811
2811
|
ota: ota.zigbeeOTA,
|
|
2812
2812
|
},
|
|
2813
|
+
{
|
|
2814
|
+
zigbeeModel: ['LTO005', '929002980901'],
|
|
2815
|
+
model: '929002980901',
|
|
2816
|
+
vendor: 'Philips',
|
|
2817
|
+
description: 'Hue white ambiance G40 E26 filament globe with Bluetooth',
|
|
2818
|
+
meta: {turnsOffAtBrightness1: true},
|
|
2819
|
+
extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [222, 454]}),
|
|
2820
|
+
ota: ota.zigbeeOTA,
|
|
2821
|
+
},
|
|
2813
2822
|
];
|
package/devices/third_reality.js
CHANGED
|
@@ -20,9 +20,10 @@ module.exports = [
|
|
|
20
20
|
model: '3RSS008Z',
|
|
21
21
|
vendor: 'Third Reality',
|
|
22
22
|
description: 'RealitySwitch Plus',
|
|
23
|
-
fromZigbee: [fz.on_off],
|
|
23
|
+
fromZigbee: [fz.on_off, fz.battery],
|
|
24
24
|
toZigbee: [tz.on_off, tz.ignore_transition],
|
|
25
|
-
|
|
25
|
+
meta: {battery: {voltageToPercentage: '3V_2100'}},
|
|
26
|
+
exposes: [e.switch(), e.battery(), e.battery_voltage()],
|
|
26
27
|
},
|
|
27
28
|
{
|
|
28
29
|
zigbeeModel: ['3RSS007Z'],
|
package/devices/tuya.js
CHANGED
|
@@ -143,7 +143,7 @@ module.exports = [
|
|
|
143
143
|
description: 'Smart air house keeper',
|
|
144
144
|
fromZigbee: [fz.tuya_air_quality],
|
|
145
145
|
toZigbee: [],
|
|
146
|
-
exposes: [e.temperature(), e.humidity(), e.co2(), e.voc(), e.formaldehyd(), e.pm25()],
|
|
146
|
+
exposes: [e.temperature(), e.humidity(), e.co2(), e.voc(), e.formaldehyd().withUnit('ppm'), e.pm25()],
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_7bztmfm1'}],
|
|
@@ -235,7 +235,8 @@ module.exports = [
|
|
|
235
235
|
{modelID: 'TS0505B', manufacturerName: '_TZ3210_k1pe6ibm'},
|
|
236
236
|
{modelID: 'TS0505B', manufacturerName: '_TZ3210_bfwvfyx1'},
|
|
237
237
|
{modelID: 'TS0505B', manufacturerName: '_TZ3210_leyz4rju'},
|
|
238
|
-
{modelID: 'TS0505B', manufacturerName: '_TZ3210_jd3z4yig'}
|
|
238
|
+
{modelID: 'TS0505B', manufacturerName: '_TZ3210_jd3z4yig'},
|
|
239
|
+
{modelID: 'TS0505B', manufacturerName: '_TZ3210_dgdjiw1c'}],
|
|
239
240
|
model: 'TS0505B',
|
|
240
241
|
vendor: 'TuYa',
|
|
241
242
|
description: 'Zigbee RGB+CCT light',
|
package/lib/tuya.js
CHANGED
|
@@ -420,7 +420,9 @@ const dataPoints = {
|
|
|
420
420
|
tuyaSabFormaldehyd: 22,
|
|
421
421
|
// tuya Smart Air House Keeper, Multifunctionale air quality detector.
|
|
422
422
|
// CO2, Temp, Humidity, VOC and Formaldehyd same as Smart Air Box
|
|
423
|
-
tuyaSahkMP25:
|
|
423
|
+
tuyaSahkMP25: 2,
|
|
424
|
+
tuyaSahkCO2: 22,
|
|
425
|
+
tuyaSahkFormaldehyd: 20,
|
|
424
426
|
// Tuya CO (carbon monoxide) smart air box
|
|
425
427
|
tuyaSabCOalarm: 1,
|
|
426
428
|
tuyaSabCO: 2,
|