zigbee-herdsman-converters 14.0.368 → 14.0.369
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/nue_3a.js +12 -1
- package/lib/tuya.js +16 -10
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/devices/nue_3a.js
CHANGED
|
@@ -157,6 +157,12 @@ module.exports = [
|
|
|
157
157
|
},
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
|
+
fingerprint: [
|
|
161
|
+
{type: 'Router', manufacturerName: '3A Smart Home DE', modelID: 'LXN-2S27LX1.0', endpoints: [
|
|
162
|
+
{ID: 11, profileID: 49246, deviceID: 0, inputClusters: [0, 4, 3, 6, 5, 4096, 8], outputClusters: [25]},
|
|
163
|
+
{ID: 12, profileID: 49246, deviceID: 0, inputClusters: [0, 4, 3, 6, 5, 8], outputClusters: [25]},
|
|
164
|
+
]},
|
|
165
|
+
],
|
|
160
166
|
zigbeeModel: ['FNB56-ZSW02LX2.0'],
|
|
161
167
|
model: 'HGZB-42',
|
|
162
168
|
vendor: 'Nue / 3A',
|
|
@@ -283,7 +289,12 @@ module.exports = [
|
|
|
283
289
|
extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 370]}),
|
|
284
290
|
},
|
|
285
291
|
{
|
|
286
|
-
|
|
292
|
+
fingerprint: [
|
|
293
|
+
{type: 'Router', manufacturerName: '3A Smart Home DE', modelID: 'LXN-2S27LX1.0', endpoints: [
|
|
294
|
+
{ID: 1, profileID: 49246, deviceID: 0, inputClusters: [0, 4, 3, 6, 5, 4096, 8], outputClusters: [0]},
|
|
295
|
+
{ID: 2, profileID: 49246, deviceID: 0, inputClusters: [0, 4, 3, 6, 5, 4096, 8], outputClusters: [0]},
|
|
296
|
+
]},
|
|
297
|
+
],
|
|
287
298
|
model: 'NUE-AUWZO2',
|
|
288
299
|
vendor: 'Nue / 3A',
|
|
289
300
|
description: 'Smart Zigbee double power point',
|
package/lib/tuya.js
CHANGED
|
@@ -101,11 +101,14 @@ async function onEventSetTime(type, data, device) {
|
|
|
101
101
|
const localTime = utcTime - (new Date()).getTimezoneOffset() * 60;
|
|
102
102
|
const endpoint = device.getEndpoint(1);
|
|
103
103
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
104
|
+
const payload = {
|
|
105
|
+
payloadSize: 8,
|
|
106
|
+
payload: [
|
|
107
|
+
...convertDecimalValueTo4ByteHexArray(utcTime),
|
|
108
|
+
...convertDecimalValueTo4ByteHexArray(localTime),
|
|
109
|
+
],
|
|
110
|
+
};
|
|
111
|
+
await endpoint.command('manuSpecificTuya', 'mcuSyncTime', payload, {});
|
|
109
112
|
} catch (error) {
|
|
110
113
|
// endpoint.command can throw an error which needs to
|
|
111
114
|
// be caught or the zigbee-herdsman may crash
|
|
@@ -134,11 +137,14 @@ async function onEventSetLocalTime(type, data, device) {
|
|
|
134
137
|
const localTime = utcTime - (new Date()).getTimezoneOffset() * 60;
|
|
135
138
|
const endpoint = device.getEndpoint(1);
|
|
136
139
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
140
|
+
const payload = {
|
|
141
|
+
payloadSize: 8,
|
|
142
|
+
payload: [
|
|
143
|
+
...convertDecimalValueTo4ByteHexArray(utcTime),
|
|
144
|
+
...convertDecimalValueTo4ByteHexArray(localTime),
|
|
145
|
+
],
|
|
146
|
+
};
|
|
147
|
+
await endpoint.command('manuSpecificTuya', 'mcuSyncTime', payload, {});
|
|
142
148
|
} catch (error) {
|
|
143
149
|
// endpoint.command can throw an error which needs to
|
|
144
150
|
// be caught or the zigbee-herdsman may crash
|
package/npm-shrinkwrap.json
CHANGED