zigbee-herdsman-converters 14.0.367 → 14.0.368
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/fromZigbee.js +1 -1
- package/converters/toZigbee.js +11 -0
- package/devices/namron.js +21 -0
- package/devices/xiaomi.js +7 -9
- package/lib/exposes.js +1 -1
- package/npm-shrinkwrap.json +1 -1
- package/package.json +1 -1
package/converters/fromZigbee.js
CHANGED
|
@@ -1073,7 +1073,6 @@ const converters = {
|
|
|
1073
1073
|
cluster: 'ssIasAce',
|
|
1074
1074
|
type: 'commandArm',
|
|
1075
1075
|
convert: (model, msg, publish, options, meta) => {
|
|
1076
|
-
if (hasAlreadyProcessedMessage(msg)) return;
|
|
1077
1076
|
const payload = converters.command_arm.convert(model, msg, publish, options, meta);
|
|
1078
1077
|
if (!payload) return;
|
|
1079
1078
|
payload.action_transaction = msg.meta.zclTransactionSequenceNumber;
|
|
@@ -5129,6 +5128,7 @@ const converters = {
|
|
|
5129
5128
|
if (msg.data.hasOwnProperty('0')) payload.detection_period = msg.data['0'];
|
|
5130
5129
|
if (msg.data.hasOwnProperty('4')) payload.mode_switch = {4: 'anti_flicker_mode', 1: 'quick_mode'}[msg.data['4']];
|
|
5131
5130
|
if (msg.data.hasOwnProperty('10')) payload.switch_type = {1: 'toggle', 2: 'momentary'}[msg.data['10']];
|
|
5131
|
+
if (msg.data.hasOwnProperty('258')) payload.detection_interval = msg.data['258'];
|
|
5132
5132
|
if (msg.data.hasOwnProperty('268')) payload.motion_sensitivity = {1: 'low', 2: 'medium', 3: 'high'}[msg.data['268']];
|
|
5133
5133
|
if (msg.data.hasOwnProperty('512')) {
|
|
5134
5134
|
if (['ZNCZ15LM', 'QBCZ14LM', 'QBCZ15LM'].includes(model.model)) {
|
package/converters/toZigbee.js
CHANGED
|
@@ -2076,6 +2076,17 @@ const converters = {
|
|
|
2076
2076
|
await entity.read('aqaraOpple', [0x0000], manufacturerOptions.xiaomi);
|
|
2077
2077
|
},
|
|
2078
2078
|
},
|
|
2079
|
+
RTCGQ13LM_detection_interval: {
|
|
2080
|
+
key: ['detection_interval'],
|
|
2081
|
+
convertSet: async (entity, key, value, meta) => {
|
|
2082
|
+
value *= 1;
|
|
2083
|
+
await entity.write('aqaraOpple', {0x0102: {value: [value], type: 0x20}}, manufacturerOptions.xiaomi);
|
|
2084
|
+
return {state: {detection_interval: value}};
|
|
2085
|
+
},
|
|
2086
|
+
convertGet: async (entity, key, meta) => {
|
|
2087
|
+
await entity.read('aqaraOpple', [0x0102], manufacturerOptions.xiaomi);
|
|
2088
|
+
},
|
|
2089
|
+
},
|
|
2079
2090
|
xiaomi_overload_protection: {
|
|
2080
2091
|
key: ['overload_protection'],
|
|
2081
2092
|
convertSet: async (entity, key, value, meta) => {
|
package/devices/namron.js
CHANGED
|
@@ -184,6 +184,13 @@ module.exports = [
|
|
|
184
184
|
return {l1: 1, l2: 2, l3: 3, l4: 4};
|
|
185
185
|
},
|
|
186
186
|
},
|
|
187
|
+
{
|
|
188
|
+
zigbeeModel: ['3802960'],
|
|
189
|
+
model: '3802960',
|
|
190
|
+
vendor: 'Namron',
|
|
191
|
+
description: 'LED 9W DIM E27',
|
|
192
|
+
extend: extend.light_onoff_brightness(),
|
|
193
|
+
},
|
|
187
194
|
{
|
|
188
195
|
zigbeeModel: ['3802961'],
|
|
189
196
|
model: '3802961',
|
|
@@ -199,6 +206,13 @@ module.exports = [
|
|
|
199
206
|
meta: {turnsOffAtBrightness1: true},
|
|
200
207
|
extend: extend.light_onoff_brightness_colortemp_color(),
|
|
201
208
|
},
|
|
209
|
+
{
|
|
210
|
+
zigbeeModel: ['3802963'],
|
|
211
|
+
model: '3802963',
|
|
212
|
+
vendor: 'Namron',
|
|
213
|
+
description: 'LED 5,3W DIM E14',
|
|
214
|
+
extend: extend.light_onoff_brightness(),
|
|
215
|
+
},
|
|
202
216
|
{
|
|
203
217
|
zigbeeModel: ['3802964'],
|
|
204
218
|
model: '3802964',
|
|
@@ -206,6 +220,13 @@ module.exports = [
|
|
|
206
220
|
description: 'LED 5,3W CCT E14',
|
|
207
221
|
extend: extend.light_onoff_brightness_colortemp(),
|
|
208
222
|
},
|
|
223
|
+
{
|
|
224
|
+
zigbeeModel: ['3802966'],
|
|
225
|
+
model: '3802966',
|
|
226
|
+
vendor: 'Namron',
|
|
227
|
+
description: 'LED 4.8W CCT GU10',
|
|
228
|
+
extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
|
|
229
|
+
},
|
|
209
230
|
{
|
|
210
231
|
zigbeeModel: ['89665'],
|
|
211
232
|
model: '89665',
|
package/devices/xiaomi.js
CHANGED
|
@@ -872,18 +872,16 @@ module.exports = [
|
|
|
872
872
|
model: 'RTCGQ13LM',
|
|
873
873
|
vendor: 'Xiaomi',
|
|
874
874
|
description: 'Aqara high precision motion sensor',
|
|
875
|
-
fromZigbee: [fz.
|
|
876
|
-
toZigbee: [tz.
|
|
877
|
-
exposes: [e.occupancy(),
|
|
878
|
-
exposes.
|
|
879
|
-
|
|
875
|
+
fromZigbee: [fz.occupancy_with_timeout, fz.aqara_opple, fz.battery],
|
|
876
|
+
toZigbee: [tz.RTCGQ13LM_detection_interval, tz.RTCGQ13LM_motion_sensitivity],
|
|
877
|
+
exposes: [e.occupancy(), e.battery(),
|
|
878
|
+
exposes.enum('motion_sensitivity', exposes.access.ALL, ['low', 'medium', 'high']),
|
|
879
|
+
exposes.numeric('detection_interval', exposes.access.ALL).withValueMin(2).withValueMax(180).withUnit('s')
|
|
880
|
+
.withDescription('Time interval for detecting actions')],
|
|
880
881
|
meta: {battery: {voltageToPercentage: '3V_2100'}},
|
|
881
882
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
882
883
|
const endpoint = device.getEndpoint(1);
|
|
883
|
-
await
|
|
884
|
-
await reporting.occupancy(endpoint);
|
|
885
|
-
await reporting.batteryVoltage(endpoint);
|
|
886
|
-
await endpoint.read('msOccupancySensing', ['pirOToUDelay']);
|
|
884
|
+
await endpoint.read('aqaraOpple', [0x0102], {manufacturerCode: 0x115f});
|
|
887
885
|
await endpoint.read('aqaraOpple', [0x010c], {manufacturerCode: 0x115f});
|
|
888
886
|
},
|
|
889
887
|
},
|
package/lib/exposes.js
CHANGED
|
@@ -527,7 +527,7 @@ module.exports = {
|
|
|
527
527
|
current: () => new Numeric('current', access.STATE).withUnit('A').withDescription('Instantaneous measured electrical current'),
|
|
528
528
|
current_phase_b: () => new Numeric('current_phase_b', access.STATE).withUnit('A').withDescription('Instantaneous measured electrical current on phase B'),
|
|
529
529
|
current_phase_c: () => new Numeric('current_phase_c', access.STATE).withUnit('A').withDescription('Instantaneous measured electrical current on phase C'),
|
|
530
|
-
deadzone_temperature: () => new Numeric('deadzone_temperature', access.STATE_SET).withUnit('°C').withDescription('The delta between local_temperature and current_heating_setpoint to trigger Heat').withValueMin(1).withValueMax(5),
|
|
530
|
+
deadzone_temperature: () => new Numeric('deadzone_temperature', access.STATE_SET).withUnit('°C').withDescription('The delta between local_temperature and current_heating_setpoint to trigger Heat').withValueMin(0.1).withValueMax(5),
|
|
531
531
|
device_temperature: () => new Numeric('device_temperature', access.STATE).withUnit('°C').withDescription('Temperature of the device'),
|
|
532
532
|
eco2: () => new Numeric('eco2', access.STATE).withUnit('ppm').withDescription('Measured eCO2 value'),
|
|
533
533
|
eco_mode: () => new Binary('eco_mode', access.STATE_SET, 'ON', 'OFF').withDescription('ECO mode (energy saving mode)'),
|
package/npm-shrinkwrap.json
CHANGED