zigbee-herdsman-converters 14.0.586 → 14.0.587
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 +8 -8
- package/devices/adeo.js +30 -0
- package/devices/m/303/274ller_licht.js +2 -1
- package/devices/tuya.js +8 -2
- package/lib/reporting.js +1 -1
- package/package.json +1 -1
package/converters/toZigbee.js
CHANGED
|
@@ -2562,15 +2562,15 @@ const converters = {
|
|
|
2562
2562
|
},
|
|
2563
2563
|
lidl_watering_timer: {
|
|
2564
2564
|
key: ['timer'],
|
|
2565
|
-
convertSet: (entity, key, value, meta) => {
|
|
2566
|
-
tuya.sendDataPointRaw(entity, tuya.dataPoints.lidlTimer, tuya.convertDecimalValueTo4ByteHexArray(value));
|
|
2565
|
+
convertSet: async (entity, key, value, meta) => {
|
|
2566
|
+
await tuya.sendDataPointRaw(entity, tuya.dataPoints.lidlTimer, tuya.convertDecimalValueTo4ByteHexArray(value));
|
|
2567
2567
|
},
|
|
2568
2568
|
},
|
|
2569
2569
|
matsee_garage_door_opener: {
|
|
2570
2570
|
key: ['trigger'],
|
|
2571
|
-
convertSet: (entity, key, value, meta) => {
|
|
2571
|
+
convertSet: async (entity, key, value, meta) => {
|
|
2572
2572
|
const state = meta.message.hasOwnProperty('trigger') ? meta.message.trigger : true;
|
|
2573
|
-
tuya.sendDataPointBool(entity, tuya.dataPoints.garageDoorTrigger, state);
|
|
2573
|
+
await tuya.sendDataPointBool(entity, tuya.dataPoints.garageDoorTrigger, state);
|
|
2574
2574
|
return {state: {trigger: state}};
|
|
2575
2575
|
},
|
|
2576
2576
|
},
|
|
@@ -4927,7 +4927,7 @@ const converters = {
|
|
|
4927
4927
|
payload[i * 3 + 2] = value[prob][i].temperature;
|
|
4928
4928
|
}
|
|
4929
4929
|
}
|
|
4930
|
-
tuya.sendDataPointRaw(entity, dpId, payload);
|
|
4930
|
+
await tuya.sendDataPointRaw(entity, dpId, payload);
|
|
4931
4931
|
}
|
|
4932
4932
|
},
|
|
4933
4933
|
},
|
|
@@ -4956,7 +4956,7 @@ const converters = {
|
|
|
4956
4956
|
payload[i*3+1] = minute;
|
|
4957
4957
|
payload[i*3+2] = temperature;
|
|
4958
4958
|
}
|
|
4959
|
-
tuya.sendDataPointRaw(entity, dpId, payload);
|
|
4959
|
+
await tuya.sendDataPointRaw(entity, dpId, payload);
|
|
4960
4960
|
},
|
|
4961
4961
|
},
|
|
4962
4962
|
tuya_thermostat_week: {
|
|
@@ -6613,7 +6613,7 @@ const converters = {
|
|
|
6613
6613
|
},
|
|
6614
6614
|
wiser_sed_thermostat_local_temperature_calibration: {
|
|
6615
6615
|
key: ['local_temperature_calibration'],
|
|
6616
|
-
convertSet: (entity, key, value, meta) => {
|
|
6616
|
+
convertSet: async (entity, key, value, meta) => {
|
|
6617
6617
|
entity.write('hvacThermostat', {localTemperatureCalibration: Math.round(value * 10)},
|
|
6618
6618
|
{srcEndpoint: 11, disableDefaultResponse: true, sendWhen: 'active'});
|
|
6619
6619
|
return {state: {local_temperature_calibration: value}};
|
|
@@ -6762,7 +6762,7 @@ const converters = {
|
|
|
6762
6762
|
await tuya.sendDataPointRaw(entity, 102, [value]);
|
|
6763
6763
|
break;
|
|
6764
6764
|
} else {
|
|
6765
|
-
tuya.sendDataPointRaw(entity, 105, [value]);
|
|
6765
|
+
await tuya.sendDataPointRaw(entity, 105, [value]);
|
|
6766
6766
|
break;
|
|
6767
6767
|
}
|
|
6768
6768
|
case 'led_enable':// OK (value true/false or 1/0)
|
package/devices/adeo.js
CHANGED
|
@@ -5,7 +5,37 @@ const extend = require('../lib/extend');
|
|
|
5
5
|
const tz = require('../converters/toZigbee');
|
|
6
6
|
const e = exposes.presets;
|
|
7
7
|
|
|
8
|
+
const fzLocal = {
|
|
9
|
+
LDSENK08: {
|
|
10
|
+
cluster: 'ssIasZone',
|
|
11
|
+
type: 'commandStatusChangeNotification',
|
|
12
|
+
convert: (model, msg, publish, options, meta) => {
|
|
13
|
+
const zoneStatus = msg.data.zonestatus;
|
|
14
|
+
return {
|
|
15
|
+
contact: !((zoneStatus & 1) > 0),
|
|
16
|
+
vibration: (zoneStatus & 1<<1) > 0,
|
|
17
|
+
tamper: (zoneStatus & 1<<2) > 0,
|
|
18
|
+
battery_low: (zoneStatus & 1<<3) > 0,
|
|
19
|
+
};
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
8
24
|
module.exports = [
|
|
25
|
+
{
|
|
26
|
+
zigbeeModel: ['LDSENK08'],
|
|
27
|
+
model: 'LDSENK08',
|
|
28
|
+
vendor: 'ADEO',
|
|
29
|
+
description: 'ENKI LEXMAN wireless smart door window sensor with vibration',
|
|
30
|
+
fromZigbee: [fzLocal.LDSENK08, fz.battery],
|
|
31
|
+
toZigbee: [],
|
|
32
|
+
exposes: [e.battery_low(), e.contact(), e.vibration(), e.tamper(), e.battery()],
|
|
33
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
34
|
+
const endpoint = device.getEndpoint(1);
|
|
35
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
|
|
36
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
37
|
+
},
|
|
38
|
+
},
|
|
9
39
|
{
|
|
10
40
|
zigbeeModel: ['LDSENK09'],
|
|
11
41
|
model: 'LDSENK09',
|
|
@@ -100,7 +100,8 @@ module.exports = [
|
|
|
100
100
|
toZigbee: extend.light_onoff_brightness_colortemp_color().toZigbee.concat([tz.tint_scene]),
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3210_mntza0sw'}
|
|
103
|
+
fingerprint: [{modelID: 'TS0505B', manufacturerName: '_TZ3210_mntza0sw'},
|
|
104
|
+
{modelID: 'TS0505B', manufacturerName: '_TZ3210_r0vzq1oj'}],
|
|
104
105
|
model: '404062',
|
|
105
106
|
vendor: 'Müller Licht',
|
|
106
107
|
description: 'Kea RGB+CCT',
|
package/devices/tuya.js
CHANGED
|
@@ -795,7 +795,8 @@ module.exports = [
|
|
|
795
795
|
{modelID: 'TS0503B', manufacturerName: '_TZ3000_g5xawfcq'},
|
|
796
796
|
{modelID: 'TS0503B', manufacturerName: '_TZ3210_trm3l2aw'},
|
|
797
797
|
{modelID: 'TS0503B', manufacturerName: '_TZ3210_95txyzbx'},
|
|
798
|
-
{modelID: 'TS0503B', manufacturerName: '_TZ3210_odlghna1'}
|
|
798
|
+
{modelID: 'TS0503B', manufacturerName: '_TZ3210_odlghna1'},
|
|
799
|
+
{modelID: 'TS0503B', manufacturerName: '_TZ3220_wp1k8xws'}],
|
|
799
800
|
model: 'TS0503B',
|
|
800
801
|
vendor: 'TuYa',
|
|
801
802
|
description: 'Zigbee RGB light',
|
|
@@ -1162,6 +1163,7 @@ module.exports = [
|
|
|
1162
1163
|
},
|
|
1163
1164
|
{
|
|
1164
1165
|
fingerprint: [{modelID: 'TS0215A', manufacturerName: '_TZ3000_p6ju8myv'},
|
|
1166
|
+
{modelID: 'TS0215A', manufacturerName: '_TZ3000_0zrccfgx'},
|
|
1165
1167
|
{modelID: 'TS0215A', manufacturerName: '_TZ3000_fsiepnrh'}],
|
|
1166
1168
|
model: 'TS0215A_remote',
|
|
1167
1169
|
vendor: 'TuYa',
|
|
@@ -1478,7 +1480,11 @@ module.exports = [
|
|
|
1478
1480
|
meta: {multiEndpoint: true},
|
|
1479
1481
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
1480
1482
|
const ep1 = device.getEndpoint(1);
|
|
1481
|
-
|
|
1483
|
+
try {
|
|
1484
|
+
await ep1.read('genBasic', ['manufacturerName', 'zclVersion', 'appVersion', 'modelId', 'powerSource', 0xfffe]);
|
|
1485
|
+
} catch (e) {
|
|
1486
|
+
// Fails for some: https://github.com/Koenkk/zigbee2mqtt/discussions/13368
|
|
1487
|
+
}
|
|
1482
1488
|
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
1483
1489
|
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
1484
1490
|
},
|
package/lib/reporting.js
CHANGED
|
@@ -171,7 +171,7 @@ module.exports = {
|
|
|
171
171
|
await endpoint.configureReporting('hvacThermostat', p);
|
|
172
172
|
},
|
|
173
173
|
thermostatRunningMode: async (endpoint, overrides) => {
|
|
174
|
-
const p = payload('runningMode',
|
|
174
|
+
const p = payload('runningMode', 10, repInterval.HOUR, null, overrides);
|
|
175
175
|
await endpoint.configureReporting('hvacThermostat', p);
|
|
176
176
|
},
|
|
177
177
|
thermostatOcupancy: async (endpoint, overrides) => {
|