zigbee-herdsman-converters 14.0.618 → 14.0.621
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/ikea.js +7 -0
- package/devices/owon.js +15 -10
- package/devices/sengled.js +8 -2
- package/devices/siglis.js +2 -2
- package/devices/tuya.js +14 -4
- package/devices/woolley.js +1 -1
- package/devices/ynoa.js +17 -1
- package/devices/zemismart.js +1 -1
- package/lib/exposes.js +4 -9
- package/package.json +2 -2
package/devices/ikea.js
CHANGED
|
@@ -871,6 +871,13 @@ module.exports = [
|
|
|
871
871
|
description: 'TRADFRI LED bulb E12/E14 WW clear 250 lumen, dimmable',
|
|
872
872
|
extend: tradfriExtend.light_onoff_brightness(),
|
|
873
873
|
},
|
|
874
|
+
{
|
|
875
|
+
zigbeeModel: ['TRADFRIbulbE12WWcandleclear250lm'],
|
|
876
|
+
model: 'LED2009C3',
|
|
877
|
+
vendor: 'IKEA',
|
|
878
|
+
description: 'TRADFRI LED bulb E12 WW candle clear 250 lumen, dimmable',
|
|
879
|
+
extend: tradfriExtend.light_onoff_brightness(),
|
|
880
|
+
},
|
|
874
881
|
{
|
|
875
882
|
zigbeeModel: ['TRADFRIbulbGU10WS345lm', 'TRADFRI bulb GU10 WW 345lm', 'TRADFRIbulbGU10WS380lm'],
|
|
876
883
|
model: 'LED2005R5',
|
package/devices/owon.js
CHANGED
|
@@ -233,19 +233,22 @@ module.exports = [
|
|
|
233
233
|
vendor: 'OWON',
|
|
234
234
|
description: 'HVAC fan coil',
|
|
235
235
|
fromZigbee: [fz.fan, fz.thermostat, fz.humidity, fz.occupancy, fz.legacy.hvac_user_interface],
|
|
236
|
-
toZigbee: [tz.fan_mode,
|
|
236
|
+
toZigbee: [tz.fan_mode,
|
|
237
237
|
tz.thermostat_occupied_heating_setpoint, tz.thermostat_unoccupied_heating_setpoint,
|
|
238
238
|
tz.thermostat_occupied_cooling_setpoint, tz.thermostat_unoccupied_cooling_setpoint,
|
|
239
239
|
tz.thermostat_min_heat_setpoint_limit, tz.thermostat_max_heat_setpoint_limit,
|
|
240
240
|
tz.thermostat_min_cool_setpoint_limit, tz.thermostat_max_cool_setpoint_limit,
|
|
241
|
-
tz.thermostat_local_temperature,
|
|
242
|
-
tz.thermostat_keypad_lockout
|
|
241
|
+
tz.thermostat_local_temperature,
|
|
242
|
+
tz.thermostat_keypad_lockout,
|
|
243
|
+
tz.thermostat_system_mode, tz.thermostat_running_mode, tz.thermostat_running_state, tz.thermostat_programming_operation_mode],
|
|
243
244
|
exposes: [e.humidity(), e.occupancy(),
|
|
244
|
-
exposes.climate().withSystemMode(['off', 'heat', 'cool', 'fan_only'
|
|
245
|
+
exposes.climate().withSystemMode(['off', 'heat', 'cool', 'fan_only', 'sleep']).withLocalTemperature()
|
|
246
|
+
.withRunningMode(['off', 'heat', 'cool'])
|
|
247
|
+
.withRunningState(['idle', 'heat', 'cool', 'fan_only'])
|
|
245
248
|
.withSetpoint('occupied_heating_setpoint', 5, 30, 0.5).withSetpoint('unoccupied_heating_setpoint', 5, 30, 0.5)
|
|
246
|
-
.withSetpoint('occupied_cooling_setpoint', 7, 35, 0.5).withSetpoint('unoccupied_cooling_setpoint', 7, 35, 0.5)
|
|
247
|
-
|
|
248
|
-
e.
|
|
249
|
+
.withSetpoint('occupied_cooling_setpoint', 7, 35, 0.5).withSetpoint('unoccupied_cooling_setpoint', 7, 35, 0.5),
|
|
250
|
+
e.fan().withModes(['low', 'medium', 'high', 'on', 'auto']),
|
|
251
|
+
e.programming_operation_mode(['setpoint', 'eco']), e.keypad_lockout(),
|
|
249
252
|
e.max_heat_setpoint_limit(5, 30, 0.5), e.min_heat_setpoint_limit(5, 30, 0.5),
|
|
250
253
|
e.max_cool_setpoint_limit(7, 35, 0.5), e.min_cool_setpoint_limit(7, 35, 0.5)],
|
|
251
254
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
@@ -261,12 +264,14 @@ module.exports = [
|
|
|
261
264
|
await reporting.thermostatUnoccupiedCoolingSetpoint(endpoint);
|
|
262
265
|
await reporting.thermostatTemperature(endpoint, {min: 60, max: 600, change: 0.1});
|
|
263
266
|
await reporting.thermostatSystemMode(endpoint);
|
|
267
|
+
await reporting.thermostatRunningMode(endpoint);
|
|
268
|
+
await reporting.thermostatRunningState(endpoint);
|
|
264
269
|
await reporting.humidity(endpoint, {min: 60, max: 600, change: 1});
|
|
265
270
|
await reporting.thermostatKeypadLockMode(endpoint);
|
|
266
271
|
|
|
267
|
-
await endpoint.read('hvacThermostat', ['systemMode', '
|
|
268
|
-
'
|
|
269
|
-
|
|
272
|
+
await endpoint.read('hvacThermostat', ['systemMode', 'runningMode', 'runningState',
|
|
273
|
+
'occupiedHeatingSetpoint', 'unoccupiedHeatingSetpoint',
|
|
274
|
+
'occupiedCoolingSetpoint', 'unoccupiedCoolingSetpoint', 'localTemp']);
|
|
270
275
|
await endpoint.read('msRelativeHumidity', ['measuredValue']);
|
|
271
276
|
|
|
272
277
|
const endpoint2 = device.getEndpoint(2);
|
package/devices/sengled.js
CHANGED
|
@@ -235,10 +235,16 @@ module.exports = [
|
|
|
235
235
|
model: 'E1D-G73WNA',
|
|
236
236
|
vendor: 'Sengled',
|
|
237
237
|
description: 'Smart window and door sensor',
|
|
238
|
-
fromZigbee: [fz.ias_contact_alarm_1],
|
|
238
|
+
fromZigbee: [fz.ias_contact_alarm_1, fz.battery],
|
|
239
239
|
toZigbee: [],
|
|
240
240
|
ota: ota.zigbeeOTA,
|
|
241
|
-
exposes: [e.contact(), e.battery_low(), e.tamper()],
|
|
241
|
+
exposes: [e.contact(), e.battery_low(), e.battery(), e.battery_voltage(), e.tamper()],
|
|
242
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
243
|
+
const endpoint = device.getEndpoint(1);
|
|
244
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
|
|
245
|
+
await reporting.batteryVoltage(endpoint);
|
|
246
|
+
await reporting.batteryPercentageRemaining(endpoint);
|
|
247
|
+
},
|
|
242
248
|
},
|
|
243
249
|
{
|
|
244
250
|
zigbeeModel: ['E1C-NB6'],
|
package/devices/siglis.js
CHANGED
|
@@ -146,9 +146,9 @@ module.exports = [
|
|
|
146
146
|
e.light_brightness().withEndpoint('l3'),
|
|
147
147
|
e.light_brightness().withEndpoint('l4'),
|
|
148
148
|
e.light_brightness().withEndpoint('l5'),
|
|
149
|
-
exposes.cover().
|
|
149
|
+
exposes.cover().setAccess('state', exposes.access.STATE_SET | exposes.access.STATE_GET)
|
|
150
150
|
.withPosition().withTilt().withEndpoint('l6'),
|
|
151
|
-
exposes.cover().
|
|
151
|
+
exposes.cover().setAccess('state', exposes.access.STATE_SET | exposes.access.STATE_GET)
|
|
152
152
|
.withPosition().withTilt().withEndpoint('l7'),
|
|
153
153
|
e.action([
|
|
154
154
|
'button_1_single', 'button_1_double', 'button_1_hold', 'button_1_release',
|
package/devices/tuya.js
CHANGED
|
@@ -976,7 +976,8 @@ module.exports = [
|
|
|
976
976
|
},
|
|
977
977
|
{
|
|
978
978
|
fingerprint: [{modelID: 'TS0202', manufacturerName: '_TYZB01_jytabjkb'},
|
|
979
|
-
{modelID: 'TS0202', manufacturerName: '_TZ3000_lltemgsf'}
|
|
979
|
+
{modelID: 'TS0202', manufacturerName: '_TZ3000_lltemgsf'},
|
|
980
|
+
{modelID: 'TS0202', manufacturerName: '_TZ3000_mg4dy6z6'}],
|
|
980
981
|
model: 'TS0202_1',
|
|
981
982
|
vendor: 'TuYa',
|
|
982
983
|
description: 'Motion sensor',
|
|
@@ -1370,11 +1371,15 @@ module.exports = [
|
|
|
1370
1371
|
{modelID: 'TS0502B', manufacturerName: '_TZ3210_qamcypen'},
|
|
1371
1372
|
{modelID: 'TS0502B', manufacturerName: '_TZ3210_zdrhqmo0'},
|
|
1372
1373
|
{modelID: 'TS0502B', manufacturerName: '_TZ3210_2cjfbpy0'},
|
|
1374
|
+
{modelID: 'TS0502B', manufacturerName: '_TZ3000_bujv0r9b'},
|
|
1373
1375
|
],
|
|
1374
1376
|
model: 'TS0502B',
|
|
1375
1377
|
vendor: 'TuYa',
|
|
1376
1378
|
description: 'Light controller',
|
|
1377
|
-
whiteLabel: [
|
|
1379
|
+
whiteLabel: [
|
|
1380
|
+
{vendor: 'Mercator Ikuü', model: 'SMI7040', description: 'Ford Batten Light'},
|
|
1381
|
+
{vendor: 'Mercator Ikuü', model: 'SMD9300', description: 'Donovan Panel Light'},
|
|
1382
|
+
],
|
|
1378
1383
|
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 500]}),
|
|
1379
1384
|
},
|
|
1380
1385
|
{
|
|
@@ -1674,7 +1679,8 @@ module.exports = [
|
|
|
1674
1679
|
},
|
|
1675
1680
|
},
|
|
1676
1681
|
{
|
|
1677
|
-
fingerprint: [{modelID: 'TS0002', manufacturerName: '_TZ3000_01gpyda5'}, {modelID: 'TS0002', manufacturerName: '_TZ3000_bvrlqyj7'}
|
|
1682
|
+
fingerprint: [{modelID: 'TS0002', manufacturerName: '_TZ3000_01gpyda5'}, {modelID: 'TS0002', manufacturerName: '_TZ3000_bvrlqyj7'},
|
|
1683
|
+
{modelID: 'TS0002', manufacturerName: '_TZ3000_7ed9cqgi'}],
|
|
1678
1684
|
model: 'TS0002_switch_module',
|
|
1679
1685
|
vendor: 'TuYa',
|
|
1680
1686
|
description: '2 gang switch module',
|
|
@@ -1692,6 +1698,8 @@ module.exports = [
|
|
|
1692
1698
|
},
|
|
1693
1699
|
meta: {multiEndpoint: true},
|
|
1694
1700
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
1701
|
+
await device.getEndpoint(1).read('genBasic',
|
|
1702
|
+
['manufacturerName', 'zclVersion', 'appVersion', 'modelId', 'powerSource', 0xfffe]);
|
|
1695
1703
|
await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
|
|
1696
1704
|
await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
|
|
1697
1705
|
},
|
|
@@ -1801,6 +1809,7 @@ module.exports = [
|
|
|
1801
1809
|
{modelID: 'TS0601', manufacturerName: '_TZE200_fctwhugx'},
|
|
1802
1810
|
{modelID: 'TS0601', manufacturerName: '_TZE200_zah67ekd'},
|
|
1803
1811
|
{modelID: 'TS0601', manufacturerName: '_TZE200_hsgrhjpf'},
|
|
1812
|
+
{modelID: 'TS0601', manufacturerName: '_TZE200_pw7mji0l'},
|
|
1804
1813
|
// Window pushers:
|
|
1805
1814
|
{modelID: 'TS0601', manufacturerName: '_TZE200_g5wdnuow'},
|
|
1806
1815
|
// Tubular motors:
|
|
@@ -1817,6 +1826,7 @@ module.exports = [
|
|
|
1817
1826
|
{vendor: 'Binthen', model: 'BCM100D'},
|
|
1818
1827
|
{vendor: 'Binthen', model: 'CV01A'},
|
|
1819
1828
|
{vendor: 'Zemismart', model: 'M515EGB'},
|
|
1829
|
+
{vendor: 'OZ Smart Things', model: 'ZM85EL-1Z'},
|
|
1820
1830
|
{vendor: 'TuYa', model: 'M515EGZT'},
|
|
1821
1831
|
{vendor: 'TuYa', model: 'DT82LEMA-1.2N'},
|
|
1822
1832
|
{vendor: 'TuYa', model: 'ZD82TN', description: 'Curtain motor'},
|
|
@@ -2182,7 +2192,7 @@ module.exports = [
|
|
|
2182
2192
|
exposes: [e.smoke(), e.battery()],
|
|
2183
2193
|
},
|
|
2184
2194
|
{
|
|
2185
|
-
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_5d3vhjro'}],
|
|
2195
|
+
fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_5d3vhjro'}, {modelID: 'TS0601', manufacturerName: '_TZE200_ntcy3xu1'}],
|
|
2186
2196
|
model: 'SA12IZL',
|
|
2187
2197
|
vendor: 'TuYa',
|
|
2188
2198
|
description: 'Smart smoke alarm',
|
package/devices/woolley.js
CHANGED
package/devices/ynoa.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const exposes = require('../lib/exposes');
|
|
2
|
-
const fz =
|
|
2
|
+
const fz = require('../converters/fromZigbee');
|
|
3
|
+
const tz = require('../converters/toZigbee');
|
|
3
4
|
const reporting = require('../lib/reporting');
|
|
4
5
|
const e = exposes.presets;
|
|
5
6
|
const extend = require('..//lib/extend');
|
|
@@ -42,4 +43,19 @@ module.exports = [
|
|
|
42
43
|
await reporting.batteryPercentageRemaining(endpoint);
|
|
43
44
|
},
|
|
44
45
|
},
|
|
46
|
+
{
|
|
47
|
+
zigbeeModel: ['ZBT-ONOFFPlug-D0009'],
|
|
48
|
+
model: 'LA-PLUG-10Amp',
|
|
49
|
+
vendor: 'Ynoa',
|
|
50
|
+
description: 'Smart plug Zigbee 3.0',
|
|
51
|
+
fromZigbee: [fz.on_off, fz.electrical_measurement, fz.metering],
|
|
52
|
+
toZigbee: [tz.on_off],
|
|
53
|
+
exposes: [e.switch(), e.power()],
|
|
54
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
55
|
+
const endpoint = device.getEndpoint(1);
|
|
56
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'haElectricalMeasurement', 'seMetering']);
|
|
57
|
+
await reporting.onOff(endpoint);
|
|
58
|
+
await reporting.activePower(endpoint);
|
|
59
|
+
},
|
|
60
|
+
},
|
|
45
61
|
];
|
package/devices/zemismart.js
CHANGED
|
@@ -207,7 +207,7 @@ module.exports = [
|
|
|
207
207
|
vendor: 'Zemismart',
|
|
208
208
|
description: 'Tubular motor',
|
|
209
209
|
fromZigbee: [fz.tuya_cover, fz.ignore_basic_report],
|
|
210
|
-
toZigbee: [tz.tuya_cover_control, tz.tuya_cover_options
|
|
210
|
+
toZigbee: [tz.tuya_cover_control, tz.tuya_cover_options],
|
|
211
211
|
exposes: [e.cover_position().setAccess('position', ea.STATE_SET)],
|
|
212
212
|
},
|
|
213
213
|
{
|
package/lib/exposes.js
CHANGED
|
@@ -327,6 +327,7 @@ class Cover extends Base {
|
|
|
327
327
|
super();
|
|
328
328
|
this.type = 'cover';
|
|
329
329
|
this.features = [];
|
|
330
|
+
this.features.push(new Enum('state', a.STATE_SET, ['OPEN', 'CLOSE', 'STOP']));
|
|
330
331
|
}
|
|
331
332
|
|
|
332
333
|
withPosition() {
|
|
@@ -340,12 +341,6 @@ class Cover extends Base {
|
|
|
340
341
|
this.features.push(new Numeric('tilt', access.ALL).withValueMin(0).withValueMax(100).withDescription('Tilt of this cover'));
|
|
341
342
|
return this;
|
|
342
343
|
}
|
|
343
|
-
|
|
344
|
-
withState(property='state', access=a.STATE_SET, values=['OPEN', 'CLOSE', 'STOP']) {
|
|
345
|
-
assert(!this.endpoint, 'Cannot add feature after adding endpoint');
|
|
346
|
-
this.features.push(new Enum(property, access, values));
|
|
347
|
-
return this;
|
|
348
|
-
}
|
|
349
344
|
}
|
|
350
345
|
|
|
351
346
|
class Fan extends Base {
|
|
@@ -545,9 +540,9 @@ module.exports = {
|
|
|
545
540
|
comfort_temperature: () => new Numeric('comfort_temperature', access.STATE_SET).withUnit('°C').withDescription('Comfort temperature').withValueMin(0).withValueMax(30),
|
|
546
541
|
consumer_connected: () => new Binary('consumer_connected', access.STATE, true, false).withDescription('Indicates whether a plug is physically attached. Device does not have to pull power or even be connected electrically (state of this binary switch can be ON even if main power switch is OFF)'),
|
|
547
542
|
contact: () => new Binary('contact', access.STATE, false, true).withDescription('Indicates if the contact is closed (= true) or open (= false)'),
|
|
548
|
-
cover_position: () => new Cover().
|
|
549
|
-
cover_position_tilt: () => new Cover().
|
|
550
|
-
cover_tilt: () => new Cover().
|
|
543
|
+
cover_position: () => new Cover().withPosition(),
|
|
544
|
+
cover_position_tilt: () => new Cover().withPosition().withTilt(),
|
|
545
|
+
cover_tilt: () => new Cover().withTilt(),
|
|
551
546
|
cpu_temperature: () => new Numeric('cpu_temperature', access.STATE).withUnit('°C').withDescription('Temperature of the CPU'),
|
|
552
547
|
cube_side: (name) => new Numeric(name, access.STATE).withDescription('Side of the cube').withValueMin(0).withValueMax(6).withValueStep(1),
|
|
553
548
|
current: () => new Numeric('current', access.STATE).withUnit('A').withDescription('Instantaneous measured electrical current'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zigbee-herdsman-converters",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.621",
|
|
4
4
|
"description": "Collection of device converters to be used with zigbee-herdsman",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"buffer-crc32": "^0.2.13",
|
|
39
39
|
"https-proxy-agent": "^5.0.1",
|
|
40
40
|
"tar-stream": "^2.2.0",
|
|
41
|
-
"zigbee-herdsman": "^0.14.
|
|
41
|
+
"zigbee-herdsman": "^0.14.54"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"eslint": "*",
|