zigbee-herdsman-converters 14.0.597 → 14.0.600
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/feibit.js +14 -7
- package/devices/heiman.js +1 -1
- package/devices/namron.js +20 -5
- package/devices/osram.js +4 -4
- package/devices/philips.js +7 -0
- package/devices/schneider_electric.js +1 -1
- package/lib/extend.js +8 -6
- package/package.json +2 -2
package/devices/feibit.js
CHANGED
|
@@ -22,6 +22,13 @@ module.exports = [
|
|
|
22
22
|
await reporting.bind(device.getEndpoint(17), coordinatorEndpoint, ['genOnOff']);
|
|
23
23
|
},
|
|
24
24
|
},
|
|
25
|
+
{
|
|
26
|
+
zigbeeModel: ['FB56+ZSW1GKJ2.3'],
|
|
27
|
+
model: 'SKY01-TS1-101',
|
|
28
|
+
vendor: 'Feibit',
|
|
29
|
+
description: 'Smart light switch - 1 gang',
|
|
30
|
+
extend: extend.switch(),
|
|
31
|
+
},
|
|
25
32
|
{
|
|
26
33
|
zigbeeModel: ['FNB56-SOS03FB1.5'],
|
|
27
34
|
model: 'SEB01ZB',
|
|
@@ -32,7 +39,7 @@ module.exports = [
|
|
|
32
39
|
exposes: [e.sos(), e.battery_low(), e.tamper(), e.battery()],
|
|
33
40
|
},
|
|
34
41
|
{
|
|
35
|
-
zigbeeModel: ['FNB56-BOT06FB2.3', 'FNB56-BOT06FB2.8', 'FB56-BOT02HM1.2'],
|
|
42
|
+
zigbeeModel: ['FNB56-BOT06FB2.3', 'FNB56-BOT06FB2.8', 'FB56-BOT02HM1.2', 'FNB56-BOT06FB2.8'],
|
|
36
43
|
model: 'SBM01ZB',
|
|
37
44
|
vendor: 'Feibit',
|
|
38
45
|
description: 'Human body movement sensor',
|
|
@@ -47,7 +54,7 @@ module.exports = [
|
|
|
47
54
|
exposes: [e.occupancy(), e.battery_low(), e.tamper(), e.battery()],
|
|
48
55
|
},
|
|
49
56
|
{
|
|
50
|
-
zigbeeModel: ['FNB56-THM14FB2.4', 'FNB54-THM17ML1.1', 'FB56-THM12HM1.2'],
|
|
57
|
+
zigbeeModel: ['FNB56-THM14FB2.4', 'FNB54-THM17ML1.1', 'FB56-THM12HM1.2', 'FNB56-THM14FB2.5'],
|
|
51
58
|
model: 'STH01ZB',
|
|
52
59
|
vendor: 'Feibit',
|
|
53
60
|
description: 'Smart temperature & humidity Sensor',
|
|
@@ -57,7 +64,7 @@ module.exports = [
|
|
|
57
64
|
exposes: [e.temperature(), e.humidity(), e.battery()],
|
|
58
65
|
},
|
|
59
66
|
{
|
|
60
|
-
zigbeeModel: ['FNB56-SMF06FB1.6'],
|
|
67
|
+
zigbeeModel: ['FNB56-SMF06FB1.6', 'FNB56-SMF06FB2.0'],
|
|
61
68
|
model: 'SSA01ZB',
|
|
62
69
|
vendor: 'Feibit',
|
|
63
70
|
description: 'Smoke detector',
|
|
@@ -72,7 +79,7 @@ module.exports = [
|
|
|
72
79
|
exposes: [e.smoke(), e.battery_low(), e.tamper(), e.battery()],
|
|
73
80
|
},
|
|
74
81
|
{
|
|
75
|
-
zigbeeModel: ['FNB56-COS06FB1.7'],
|
|
82
|
+
zigbeeModel: ['FNB56-COS06FB1.7', 'FNB56-COS06FB2.1'],
|
|
76
83
|
model: 'SCA01ZB',
|
|
77
84
|
vendor: 'Feibit',
|
|
78
85
|
description: 'Smart carbon monoxide sensor',
|
|
@@ -87,7 +94,7 @@ module.exports = [
|
|
|
87
94
|
exposes: [e.carbon_monoxide(), e.battery_low(), e.tamper(), e.battery()],
|
|
88
95
|
},
|
|
89
96
|
{
|
|
90
|
-
zigbeeModel: ['FNB56-GAS05FB1.4'],
|
|
97
|
+
zigbeeModel: ['FNB56-GAS05FB1.4', 'FNB56-GAS05FB1.8'],
|
|
91
98
|
model: 'SGA01ZB',
|
|
92
99
|
vendor: 'Feibit',
|
|
93
100
|
description: 'Combustible gas sensor',
|
|
@@ -96,7 +103,7 @@ module.exports = [
|
|
|
96
103
|
exposes: [e.gas()],
|
|
97
104
|
},
|
|
98
105
|
{
|
|
99
|
-
zigbeeModel: ['FNB56-WTS05FB2.0'],
|
|
106
|
+
zigbeeModel: ['FNB56-WTS05FB2.0', 'FNB56-WTS05FB2.4'],
|
|
100
107
|
model: 'SWA01ZB',
|
|
101
108
|
vendor: 'Feibit',
|
|
102
109
|
description: 'Water leakage sensor',
|
|
@@ -114,7 +121,7 @@ module.exports = [
|
|
|
114
121
|
exposes: [e.contact(), e.battery_low(), e.tamper(), e.battery()],
|
|
115
122
|
},
|
|
116
123
|
{
|
|
117
|
-
zigbeeModel: ['FB56+SKT14AL2.1'],
|
|
124
|
+
zigbeeModel: ['FB56+SKT14AL2.1', 'FTB56+SKT1BCW1.0'],
|
|
118
125
|
model: 'SFS01ZB',
|
|
119
126
|
vendor: 'Feibit',
|
|
120
127
|
description: 'Power plug',
|
package/devices/heiman.js
CHANGED
|
@@ -211,7 +211,7 @@ module.exports = [
|
|
|
211
211
|
description: 'Smart remote controller',
|
|
212
212
|
fromZigbee: [fz.battery, fz.command_arm, fz.command_emergency],
|
|
213
213
|
toZigbee: [],
|
|
214
|
-
exposes: [e.battery(), e.action(['emergency', 'disarm', '
|
|
214
|
+
exposes: [e.battery(), e.action(['emergency', 'disarm', 'arm_day_zones', 'arm_all_zones'])],
|
|
215
215
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
216
216
|
const endpoint = device.getEndpoint(1);
|
|
217
217
|
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
|
package/devices/namron.js
CHANGED
|
@@ -3,6 +3,7 @@ const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/lega
|
|
|
3
3
|
const tz = require('../converters/toZigbee');
|
|
4
4
|
const constants = require('../lib/constants');
|
|
5
5
|
const reporting = require('../lib/reporting');
|
|
6
|
+
const globalStore = require('../lib/store');
|
|
6
7
|
const extend = require('../lib/extend');
|
|
7
8
|
const ea = exposes.access;
|
|
8
9
|
const e = exposes.presets;
|
|
@@ -340,6 +341,25 @@ module.exports = [
|
|
|
340
341
|
.withValueMin(20).withValueMax(60)
|
|
341
342
|
.withDescription('Room temperature alarm threshold, between 20 and 60 in °C. 0 means disabled. Default: 45.'),
|
|
342
343
|
],
|
|
344
|
+
onEvent: async (type, data, device, options) => {
|
|
345
|
+
const endpoint = device.getEndpoint(1);
|
|
346
|
+
if (type === 'stop') {
|
|
347
|
+
clearInterval(globalStore.getValue(device, 'time'));
|
|
348
|
+
globalStore.clearValue(device, 'time');
|
|
349
|
+
} else if (!globalStore.hasValue(device, 'time')) {
|
|
350
|
+
const hours24 = 1000 * 60 * 60 * 24;
|
|
351
|
+
const interval = setInterval(async () => {
|
|
352
|
+
try {
|
|
353
|
+
// Device does not asks for the time with binding, therefore we write the time every 24 hours
|
|
354
|
+
const time = Math.round(((new Date()).getTime() - constants.OneJanuary2000) / 1000 + ((new Date())
|
|
355
|
+
.getTimezoneOffset() * -1) * 60);
|
|
356
|
+
const values = {time: time};
|
|
357
|
+
endpoint.write('genTime', values);
|
|
358
|
+
} catch (error) {/* Do nothing*/}
|
|
359
|
+
}, hours24);
|
|
360
|
+
globalStore.putValue(device, 'time', interval);
|
|
361
|
+
}
|
|
362
|
+
},
|
|
343
363
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
344
364
|
const endpoint = device.getEndpoint(1);
|
|
345
365
|
const binds = [
|
|
@@ -474,11 +494,6 @@ module.exports = [
|
|
|
474
494
|
reportableChange: null}],
|
|
475
495
|
options);
|
|
476
496
|
|
|
477
|
-
// Device does not asks for the time with binding, we need to write time during configure
|
|
478
|
-
const time = Math.round(((new Date()).getTime() - constants.OneJanuary2000) / 1000);
|
|
479
|
-
const values = {time: time};
|
|
480
|
-
endpoint.write('genTime', values);
|
|
481
|
-
|
|
482
497
|
// Trigger initial read
|
|
483
498
|
await endpoint.read('hvacThermostat', ['systemMode', 'runningState', 'occupiedHeatingSetpoint']);
|
|
484
499
|
await endpoint.read('hvacThermostat', [0x1000, 0x1001, 0x1002, 0x1003], options);
|
package/devices/osram.js
CHANGED
|
@@ -107,7 +107,7 @@ module.exports = [
|
|
|
107
107
|
model: 'AC03647',
|
|
108
108
|
vendor: 'OSRAM',
|
|
109
109
|
description: 'SMART+ LED CLASSIC E27 RGBW',
|
|
110
|
-
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [153, 526]
|
|
110
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [153, 526]}),
|
|
111
111
|
ota: ota.ledvance,
|
|
112
112
|
exposes: [e.light_brightness_colortemp_colorhs([153, 526]).removeFeature('color_temp_startup'), e.effect()],
|
|
113
113
|
},
|
|
@@ -227,7 +227,7 @@ module.exports = [
|
|
|
227
227
|
model: '4052899926110',
|
|
228
228
|
vendor: 'OSRAM',
|
|
229
229
|
description: 'Flex RGBW',
|
|
230
|
-
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [125, 666]}),
|
|
230
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [125, 666], supportsHS: true, preferHS: true}),
|
|
231
231
|
ota: ota.ledvance,
|
|
232
232
|
},
|
|
233
233
|
{
|
|
@@ -260,7 +260,7 @@ module.exports = [
|
|
|
260
260
|
model: 'AC0363900NJ',
|
|
261
261
|
vendor: 'OSRAM',
|
|
262
262
|
description: 'Smart+ mini gardenpole RGBW',
|
|
263
|
-
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [153, 370]
|
|
263
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [153, 370]}),
|
|
264
264
|
exposes: [e.light_brightness_colortemp_colorhs([153, 370]).removeFeature('color_temp_startup'), e.effect()],
|
|
265
265
|
ota: ota.ledvance,
|
|
266
266
|
},
|
|
@@ -285,7 +285,7 @@ module.exports = [
|
|
|
285
285
|
model: 'AC08559',
|
|
286
286
|
vendor: 'OSRAM',
|
|
287
287
|
description: 'SMART+ Spot GU10 Multicolor',
|
|
288
|
-
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [153, 526]
|
|
288
|
+
extend: extend.ledvance.light_onoff_brightness_colortemp_color({colorTempRange: [153, 526]}),
|
|
289
289
|
exposes: [e.light_brightness_colortemp_colorhs([153, 526]).removeFeature('color_temp_startup'), e.effect()],
|
|
290
290
|
ota: ota.ledvance,
|
|
291
291
|
},
|
package/devices/philips.js
CHANGED
|
@@ -966,6 +966,13 @@ module.exports = [
|
|
|
966
966
|
description: 'Hue Outdoor Econic wall lantern',
|
|
967
967
|
extend: hueExtend.light_onoff_brightness_colortemp_color(),
|
|
968
968
|
},
|
|
969
|
+
{
|
|
970
|
+
zigbeeModel: ['929003053001'],
|
|
971
|
+
model: '929003053001',
|
|
972
|
+
vendor: 'Philips',
|
|
973
|
+
description: 'Hue Sana wall light',
|
|
974
|
+
extend: hueExtend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
|
|
975
|
+
},
|
|
969
976
|
{
|
|
970
977
|
zigbeeModel: ['LCE001'],
|
|
971
978
|
model: '929002294101',
|
|
@@ -213,7 +213,7 @@ module.exports = [
|
|
|
213
213
|
fz.legacy.wiser_thermostat, fz.legacy.wiser_itrv_battery, fz.hvac_user_interface, fz.wiser_device_info],
|
|
214
214
|
toZigbee: [tz.thermostat_occupied_heating_setpoint, tz.thermostat_keypad_lockout],
|
|
215
215
|
exposes: [exposes.climate().withSetpoint('occupied_heating_setpoint', 7, 30, 1).withLocalTemperature(ea.STATE)
|
|
216
|
-
.
|
|
216
|
+
.withRunningState(['idle', 'heat'], ea.STATE).withPiHeatingDemand()],
|
|
217
217
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
218
218
|
const endpoint = device.getEndpoint(1);
|
|
219
219
|
const binds = ['genBasic', 'genPowerCfg', 'hvacThermostat', 'haDiagnostic'];
|
package/lib/extend.js
CHANGED
|
@@ -125,17 +125,19 @@ const extend = {
|
|
|
125
125
|
...extend.light_onoff_brightness(options),
|
|
126
126
|
toZigbee: extend.light_onoff_brightness(options).toZigbee.concat([tz.ledvance_commands]),
|
|
127
127
|
}),
|
|
128
|
-
light_onoff_brightness_colortemp: (options={
|
|
129
|
-
...extend.light_onoff_brightness_colortemp(options),
|
|
130
|
-
toZigbee: extend.light_onoff_brightness_colortemp(options)
|
|
128
|
+
light_onoff_brightness_colortemp: (options={}) => ({
|
|
129
|
+
...extend.light_onoff_brightness_colortemp({disableColorTempStartup: true, ...options}),
|
|
130
|
+
toZigbee: extend.light_onoff_brightness_colortemp({disableColorTempStartup: true, ...options})
|
|
131
|
+
.toZigbee.concat([tz.ledvance_commands]),
|
|
131
132
|
}),
|
|
132
133
|
light_onoff_brightness_color: (options={}) => ({
|
|
133
134
|
...extend.light_onoff_brightness_color({supportsHS: true, ...options}),
|
|
134
135
|
toZigbee: extend.light_onoff_brightness_color({supportsHS: true, ...options}).toZigbee.concat([tz.ledvance_commands]),
|
|
135
136
|
}),
|
|
136
|
-
light_onoff_brightness_colortemp_color: (options={
|
|
137
|
-
...extend.light_onoff_brightness_colortemp_color({supportsHS: true, ...options}),
|
|
138
|
-
toZigbee: extend.light_onoff_brightness_colortemp_color({supportsHS: true, ...options})
|
|
137
|
+
light_onoff_brightness_colortemp_color: (options={}) => ({
|
|
138
|
+
...extend.light_onoff_brightness_colortemp_color({supportsHS: true, disableColorTempStartup: true, ...options}),
|
|
139
|
+
toZigbee: extend.light_onoff_brightness_colortemp_color({supportsHS: true, disableColorTempStartup: true, ...options})
|
|
140
|
+
.toZigbee.concat([tz.ledvance_commands]),
|
|
139
141
|
}),
|
|
140
142
|
};
|
|
141
143
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zigbee-herdsman-converters",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.600",
|
|
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.48"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"eslint": "*",
|