zigbee-herdsman-converters 14.0.257 → 14.0.258
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 +29 -0
- package/devices/ikea.js +1 -1
- package/devices/tuya.js +22 -0
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/converters/fromZigbee.js
CHANGED
|
@@ -1681,6 +1681,35 @@ const converters = {
|
|
|
1681
1681
|
}
|
|
1682
1682
|
},
|
|
1683
1683
|
},
|
|
1684
|
+
ts0201_temperature_humidity_alarm: {
|
|
1685
|
+
cluster: 'manuSpecificTuya_2',
|
|
1686
|
+
type: ['attributeReport', 'readResponse'],
|
|
1687
|
+
convert: (model, msg, publish, options, meta) => {
|
|
1688
|
+
const result = {};
|
|
1689
|
+
if (msg.data.hasOwnProperty('alarm_temperature_max')) {
|
|
1690
|
+
result.alarm_temperature_max = msg.data['alarm_temperature_max'];
|
|
1691
|
+
}
|
|
1692
|
+
if (msg.data.hasOwnProperty('alarm_temperature_min')) {
|
|
1693
|
+
result.alarm_temperature_min = msg.data['alarm_temperature_min'];
|
|
1694
|
+
}
|
|
1695
|
+
if (msg.data.hasOwnProperty('alarm_humidity_max')) {
|
|
1696
|
+
result.alarm_humidity_max = msg.data['alarm_humidity_max'];
|
|
1697
|
+
}
|
|
1698
|
+
if (msg.data.hasOwnProperty('alarm_humidity_min')) {
|
|
1699
|
+
result.alarm_humidity_min = msg.data['alarm_humidity_min'];
|
|
1700
|
+
}
|
|
1701
|
+
if (msg.data.hasOwnProperty('alarm_humidity')) {
|
|
1702
|
+
const sensorAlarmLookup = {'0': 'below_min_humdity', '1': 'over_humidity', '2': 'off'};
|
|
1703
|
+
result.alarm_humidity = sensorAlarmLookup[msg.data['alarm_humidity']];
|
|
1704
|
+
}
|
|
1705
|
+
if (msg.data.hasOwnProperty('alarm_temperature')) {
|
|
1706
|
+
const sensorAlarmLookup = {'0': 'below_min_temperature', '1': 'over_temperature', '2': 'off'};
|
|
1707
|
+
result.alarm_temperature = sensorAlarmLookup[msg.data['alarm_temperature']];
|
|
1708
|
+
}
|
|
1709
|
+
return result;
|
|
1710
|
+
},
|
|
1711
|
+
|
|
1712
|
+
},
|
|
1684
1713
|
tuya_thermostat_weekly_schedule: {
|
|
1685
1714
|
cluster: 'manuSpecificTuya',
|
|
1686
1715
|
type: ['commandGetData', 'commandSetDataResponse'],
|
package/devices/ikea.js
CHANGED
|
@@ -614,7 +614,7 @@ module.exports = [
|
|
|
614
614
|
extend: tradfriExtend.light_onoff_brightness(),
|
|
615
615
|
},
|
|
616
616
|
{
|
|
617
|
-
zigbeeModel: ['TRADFRIbulbGU10WS345lm'],
|
|
617
|
+
zigbeeModel: ['TRADFRIbulbGU10WS345lm', 'TRADFRI bulb GU10 WW 345lm'],
|
|
618
618
|
model: 'LED2005R5',
|
|
619
619
|
vendor: 'IKEA',
|
|
620
620
|
description: 'TRADFRI LED bulb GU10 345 lumen, dimmable, white spectrum',
|
package/devices/tuya.js
CHANGED
|
@@ -1180,4 +1180,26 @@ module.exports = [
|
|
|
1180
1180
|
e.energy(), exposes.enum('power_outage_memory', ea.STATE_SET, ['on', 'off', 'restore'])
|
|
1181
1181
|
.withDescription('Recover state after power outage')],
|
|
1182
1182
|
},
|
|
1183
|
+
{
|
|
1184
|
+
fingerprint: [{modelID: 'TS0201', manufacturerName: '_TZ3000_qaaysllp'}],
|
|
1185
|
+
model: 'LCZ030',
|
|
1186
|
+
vendor: 'TuYa',
|
|
1187
|
+
description: 'Temperature & humidity & illuminance sensor with display',
|
|
1188
|
+
fromZigbee: [fz.battery, fz.illuminance, fz.temperature, fz.humidity, fz.ts0201_temperature_humidity_alarm],
|
|
1189
|
+
toZigbee: [],
|
|
1190
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
1191
|
+
const endpoint = device.getEndpoint(1);
|
|
1192
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genBasic', 'genPowerCfg']);
|
|
1193
|
+
},
|
|
1194
|
+
exposes: [e.temperature(), e.humidity(), e.battery(), e.illuminance(), e.illuminance_lux(),
|
|
1195
|
+
exposes.numeric('alarm_temperature_max', ea.STATE).withUnit('°C').withDescription('Alarm temperature max'),
|
|
1196
|
+
exposes.numeric('alarm_temperature_min', ea.STATE).withUnit('°C').withDescription('Alarm temperature min'),
|
|
1197
|
+
exposes.numeric('alarm_humidity_max', ea.STATE).withUnit('%').withDescription('Alarm huminity max'),
|
|
1198
|
+
exposes.numeric('alarm_humidity_min', ea.STATE).withUnit('%').withDescription('Alarm huminity min'),
|
|
1199
|
+
exposes.enum('alarm_humidity', ea.STATE, ['below_min_humdity', 'over_humidity', 'off'])
|
|
1200
|
+
.withDescription('Alarm humidity status'),
|
|
1201
|
+
exposes.enum('alarm_temperature', ea.STATE, ['below_min_temperature', 'over_temperature', 'off'])
|
|
1202
|
+
.withDescription('Alarm temperature status'),
|
|
1203
|
+
],
|
|
1204
|
+
},
|
|
1183
1205
|
];
|
package/npm-shrinkwrap.json
CHANGED