zigbee-herdsman-converters 15.0.89 → 15.0.90
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/automaton.js +1 -19
- package/devices/iluminize.js +13 -0
- package/devices/lonsonho.js +1 -1
- package/devices/tuya.js +11 -12
- package/lib/tuya.js +8 -0
- package/package.json +1 -1
package/devices/automaton.js
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
const fz = require('../converters/fromZigbee');
|
|
2
|
-
const tz = require('../converters/toZigbee');
|
|
3
|
-
const exposes = require('../lib/exposes');
|
|
4
1
|
const reporting = require('../lib/reporting');
|
|
5
2
|
const tuya = require('../lib/tuya');
|
|
6
|
-
const e = exposes.presets;
|
|
7
3
|
|
|
8
4
|
module.exports = [
|
|
9
5
|
{
|
|
@@ -11,21 +7,7 @@ module.exports = [
|
|
|
11
7
|
model: 'AUT000069',
|
|
12
8
|
vendor: 'AutomatOn',
|
|
13
9
|
description: 'Underfloor heating controller - 5 zones',
|
|
14
|
-
|
|
15
|
-
toZigbee: [tz.on_off, tuya.tz.power_on_behavior_2, tuya.tz.child_lock],
|
|
16
|
-
exposes: [
|
|
17
|
-
e.child_lock(),
|
|
18
|
-
e.switch().withEndpoint('l1'),
|
|
19
|
-
e.switch().withEndpoint('l2'),
|
|
20
|
-
e.switch().withEndpoint('l3'),
|
|
21
|
-
e.switch().withEndpoint('l4'),
|
|
22
|
-
e.switch().withEndpoint('l5'),
|
|
23
|
-
e.power_on_behavior().withEndpoint('l1'),
|
|
24
|
-
e.power_on_behavior().withEndpoint('l2'),
|
|
25
|
-
e.power_on_behavior().withEndpoint('l3'),
|
|
26
|
-
e.power_on_behavior().withEndpoint('l4'),
|
|
27
|
-
e.power_on_behavior().withEndpoint('l5'),
|
|
28
|
-
],
|
|
10
|
+
extend: tuya.extend.switch({powerOnBehavior2: true, childLock: true, endpoints: ['l1', 'l2', 'l3', 'l4', 'l5']}),
|
|
29
11
|
endpoint: (device) => {
|
|
30
12
|
return {'l1': 1, 'l2': 2, 'l3': 3, 'l4': 4, 'l5': 5};
|
|
31
13
|
},
|
package/devices/iluminize.js
CHANGED
|
@@ -74,6 +74,19 @@ module.exports = [
|
|
|
74
74
|
await reporting.onOff(endpoint);
|
|
75
75
|
},
|
|
76
76
|
},
|
|
77
|
+
{
|
|
78
|
+
zigbeeModel: ['5123.1110'],
|
|
79
|
+
model: '5123.1110',
|
|
80
|
+
vendor: 'Iluminize',
|
|
81
|
+
description: 'Zigbee 3.0 controller with adjustable current 250-1500mA, max. 50W / 48V SELV',
|
|
82
|
+
extend: extend.light_onoff_brightness({noConfigure: true}),
|
|
83
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
84
|
+
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
|
|
85
|
+
const endpoint = device.getEndpoint(1);
|
|
86
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl']);
|
|
87
|
+
await reporting.onOff(endpoint);
|
|
88
|
+
},
|
|
89
|
+
},
|
|
77
90
|
{
|
|
78
91
|
zigbeeModel: ['511.010'],
|
|
79
92
|
model: '511.010',
|
package/devices/lonsonho.js
CHANGED
|
@@ -101,7 +101,7 @@ module.exports = [
|
|
|
101
101
|
},
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
|
-
fingerprint: [{modelID: 'TS110F', manufacturerName: '_TZ3000_ktuoyvt5'}
|
|
104
|
+
fingerprint: [{modelID: 'TS110F', manufacturerName: '_TZ3000_ktuoyvt5'}],
|
|
105
105
|
model: 'QS-Zigbee-D02-TRIAC-L',
|
|
106
106
|
vendor: 'Lonsonho',
|
|
107
107
|
description: '1 gang smart dimmer switch module without neutral',
|
package/devices/tuya.js
CHANGED
|
@@ -3270,11 +3270,7 @@ module.exports = [
|
|
|
3270
3270
|
model: 'TS0004',
|
|
3271
3271
|
vendor: 'TuYa',
|
|
3272
3272
|
description: 'Smart light switch - 4 gang with neutral wire',
|
|
3273
|
-
|
|
3274
|
-
toZigbee: [tz.on_off, tuya.tz.power_on_behavior_2],
|
|
3275
|
-
exposes: [e.switch().withEndpoint('l1'), e.power_on_behavior().withEndpoint('l1'), e.switch().withEndpoint('l2'),
|
|
3276
|
-
e.power_on_behavior().withEndpoint('l2'), e.switch().withEndpoint('l3'), e.power_on_behavior().withEndpoint('l3'),
|
|
3277
|
-
e.switch().withEndpoint('l4'), e.power_on_behavior().withEndpoint('l4')],
|
|
3273
|
+
extend: tuya.extend.switch({powerOnBehavior2: true, endpoints: ['l1', 'l2', 'l3', 'l4']}),
|
|
3278
3274
|
endpoint: (device) => {
|
|
3279
3275
|
return {'l1': 1, 'l2': 2, 'l3': 3, 'l4': 4};
|
|
3280
3276
|
},
|
|
@@ -3292,11 +3288,7 @@ module.exports = [
|
|
|
3292
3288
|
model: 'TS0726',
|
|
3293
3289
|
vendor: 'TuYa',
|
|
3294
3290
|
description: '4 gang switch with neutral wire',
|
|
3295
|
-
|
|
3296
|
-
toZigbee: [tz.on_off, tuya.tz.power_on_behavior_2],
|
|
3297
|
-
exposes: [e.switch().withEndpoint('l1'), e.power_on_behavior().withEndpoint('l1'), e.switch().withEndpoint('l2'),
|
|
3298
|
-
e.power_on_behavior().withEndpoint('l2'), e.switch().withEndpoint('l3'), e.power_on_behavior().withEndpoint('l3'),
|
|
3299
|
-
e.switch().withEndpoint('l4'), e.power_on_behavior().withEndpoint('l4')],
|
|
3291
|
+
extend: tuya.extend.switch({powerOnBehavior2: true, endpoints: ['l1', 'l2', 'l3', 'l4']}),
|
|
3300
3292
|
endpoint: (device) => {
|
|
3301
3293
|
return {'l1': 1, 'l2': 2, 'l3': 3, 'l4': 4};
|
|
3302
3294
|
},
|
|
@@ -4077,7 +4069,7 @@ module.exports = [
|
|
|
4077
4069
|
},
|
|
4078
4070
|
},
|
|
4079
4071
|
{
|
|
4080
|
-
fingerprint: tuya.fingerprint('TS110E', ['_TZ3210_zxbtub8r', '_TZ3210_k1msuvg6']),
|
|
4072
|
+
fingerprint: tuya.fingerprint('TS110E', ['_TZ3210_zxbtub8r', '_TZ3210_k1msuvg6', '_TZ3210_weaqkhab']),
|
|
4081
4073
|
model: 'TS110E_1gang_1',
|
|
4082
4074
|
vendor: 'TuYa',
|
|
4083
4075
|
description: '1 channel dimmer',
|
|
@@ -4089,7 +4081,14 @@ module.exports = [
|
|
|
4089
4081
|
[tz.light_onoff_brightness],
|
|
4090
4082
|
[tzLocal.TS110E_light_onoff_brightness],
|
|
4091
4083
|
),
|
|
4092
|
-
exposes:
|
|
4084
|
+
exposes: (device, options) => {
|
|
4085
|
+
const exps = [e.light_brightness().withMinBrightness().withMaxBrightness(), e.linkquality()];
|
|
4086
|
+
if (!device || !device.manufacturerName === '_TZ3210_weaqkhab') {
|
|
4087
|
+
// _TZ3210_weaqkhab doesn't support power_on_behavior and switch_type
|
|
4088
|
+
exps.push(e.power_on_behavior(), tuya.exposes.switchType());
|
|
4089
|
+
}
|
|
4090
|
+
return exps;
|
|
4091
|
+
},
|
|
4093
4092
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
4094
4093
|
await tuya.configureMagicPacket(device, coordinatorEndpoint, logger);
|
|
4095
4094
|
await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
|
package/lib/tuya.js
CHANGED
|
@@ -1867,6 +1867,14 @@ const tuyaExtend = {
|
|
|
1867
1867
|
fromZigbee.push(tuyaFz.power_outage_memory);
|
|
1868
1868
|
toZigbee.push(tuyaTz.power_on_behavior_1);
|
|
1869
1869
|
exposes.push(tuyaExposes.powerOutageMemory());
|
|
1870
|
+
} else if (options.powerOnBehavior2) {
|
|
1871
|
+
fromZigbee.push(tuyaFz.power_on_behavior_2);
|
|
1872
|
+
toZigbee.push(tuyaTz.power_on_behavior_2);
|
|
1873
|
+
if (options.endpoints) {
|
|
1874
|
+
exposes.push(...options.endpoints.map((ee) => e.power_on_behavior().withEndpoint(ee)));
|
|
1875
|
+
} else {
|
|
1876
|
+
exposes.push(e.power_on_behavior());
|
|
1877
|
+
}
|
|
1870
1878
|
} else {
|
|
1871
1879
|
fromZigbee.push(tuyaFz.power_on_behavior_1);
|
|
1872
1880
|
toZigbee.push(tuyaTz.power_on_behavior_1);
|