zigbee-herdsman-converters 14.0.576 → 14.0.577
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/robb.js +1 -1
- package/devices/sunricher.js +188 -0
- package/devices/tuya.js +6 -2
- package/devices/xiaomi.js +1 -1
- package/lib/exposes.js +1 -1
- package/lib/xiaomi.js +2 -1
- package/package.json +1 -1
package/devices/robb.js
CHANGED
|
@@ -195,7 +195,7 @@ module.exports = [
|
|
|
195
195
|
whiteLabel: [{vendor: 'Sunricher', model: 'SR-ZG2835'}],
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
|
-
zigbeeModel: ['ROB_200-017-0'],
|
|
198
|
+
zigbeeModel: ['ROB_200-017-0', 'HK-PLUG-A'],
|
|
199
199
|
model: 'ROB_200-017-0',
|
|
200
200
|
vendor: 'ROBB',
|
|
201
201
|
description: 'Zigbee smart plug',
|
package/devices/sunricher.js
CHANGED
|
@@ -2,9 +2,11 @@ const exposes = require('../lib/exposes');
|
|
|
2
2
|
const fz = {...require('../converters/fromZigbee'), legacy: require('../lib/legacy').fromZigbee};
|
|
3
3
|
const tz = require('../converters/toZigbee');
|
|
4
4
|
const reporting = require('../lib/reporting');
|
|
5
|
+
const constants = require('../lib/constants');
|
|
5
6
|
const extend = require('../lib/extend');
|
|
6
7
|
const utils = require('../lib/utils');
|
|
7
8
|
const e = exposes.presets;
|
|
9
|
+
const ea = exposes.access;
|
|
8
10
|
|
|
9
11
|
const fzLocal = {
|
|
10
12
|
sunricher_SRZGP2801K45C: {
|
|
@@ -344,4 +346,190 @@ module.exports = [
|
|
|
344
346
|
exposes: [e.action(['press_on', 'press_off', 'press_high', 'press_low', 'hold_high', 'hold_low', 'high_low_release',
|
|
345
347
|
'cw_ww_release', 'cw_dec_ww_inc', 'ww_inc_cw_dec', 'r_g_b', 'b_g_r', 'rgb_release'])],
|
|
346
348
|
},
|
|
349
|
+
{
|
|
350
|
+
zigbeeModel: ['ZG9092'],
|
|
351
|
+
model: 'SR-ZG9092A',
|
|
352
|
+
vendor: 'Sunricher',
|
|
353
|
+
description: 'Touch thermostat',
|
|
354
|
+
fromZigbee: [fz.thermostat, fz.namron_thermostat, fz.metering, fz.electrical_measurement],
|
|
355
|
+
toZigbee: [tz.thermostat_occupied_heating_setpoint, tz.thermostat_unoccupied_heating_setpoint, tz.thermostat_occupancy,
|
|
356
|
+
tz.thermostat_local_temperature_calibration, tz.thermostat_local_temperature, tz.thermostat_outdoor_temperature,
|
|
357
|
+
tz.thermostat_system_mode, tz.thermostat_control_sequence_of_operation, tz.thermostat_running_state,
|
|
358
|
+
tz.namron_thermostat],
|
|
359
|
+
exposes: [
|
|
360
|
+
e.local_temperature(),
|
|
361
|
+
exposes.numeric('outdoor_temperature', ea.STATE_GET).withUnit('°C')
|
|
362
|
+
.withDescription('Current temperature measured from the floor sensor'),
|
|
363
|
+
exposes.climate()
|
|
364
|
+
.withSetpoint('occupied_heating_setpoint', 0, 40, 0.1)
|
|
365
|
+
.withSetpoint('unoccupied_heating_setpoint', 0, 40, 0.1)
|
|
366
|
+
.withLocalTemperature()
|
|
367
|
+
.withLocalTemperatureCalibration(-3, 3, 0.1)
|
|
368
|
+
.withSystemMode(['off', 'auto', 'heat'])
|
|
369
|
+
.withRunningState(['idle', 'heat']),
|
|
370
|
+
exposes.binary('away_mode', ea.ALL, 'ON', 'OFF')
|
|
371
|
+
.withDescription('Enable/disable away mode'),
|
|
372
|
+
e.power(), e.current(), e.voltage(), e.energy(),
|
|
373
|
+
exposes.enum('button_vibration_level', ea.ALL, ['off', 'low', 'high'])
|
|
374
|
+
.withDescription('Key beep volume and vibration level. Default: Low.'),
|
|
375
|
+
exposes.enum('floor_sensor_type', ea.ALL, ['10k', '15k', '50k', '100k', '12k'])
|
|
376
|
+
.withDescription('Type of the external floor sensor. Default: NTC 10K/25.'),
|
|
377
|
+
exposes.enum('sensor', ea.ALL, ['air', 'floor', 'both'])
|
|
378
|
+
.withDescription('The sensor used for heat control. Default: Room Sensor.'),
|
|
379
|
+
exposes.enum('powerup_status', ea.ALL, ['default', 'last_status'])
|
|
380
|
+
.withDescription('The mode after a power reset. Default: Previous Mode.'),
|
|
381
|
+
exposes.numeric('floor_sensor_calibration', ea.ALL)
|
|
382
|
+
.withUnit('°C')
|
|
383
|
+
.withValueMin(-3).withValueMax(3).withValueStep(0.1)
|
|
384
|
+
.withDescription('The tempearatue calibration for the exernal floor sensor, between -3 and 3 in 0.1°C. Default: 0.'),
|
|
385
|
+
exposes.numeric('dry_time', ea.ALL)
|
|
386
|
+
.withUnit('min')
|
|
387
|
+
.withValueMin(5).withValueMax(100)
|
|
388
|
+
.withDescription('The duration of Dry Mode, between 5 and 100 minutes. Default: 5.'),
|
|
389
|
+
exposes.enum('mode_after_dry', ea.ALL, ['off', 'manual', 'auto', 'away'])
|
|
390
|
+
.withDescription('The mode after Dry Mode. Default: Auto.'),
|
|
391
|
+
exposes.enum('temperature_display', ea.ALL, ['room', 'floor'])
|
|
392
|
+
.withDescription('The temperature on the display. Default: Room Temperature.'),
|
|
393
|
+
exposes.numeric('window_open_check', ea.ALL)
|
|
394
|
+
.withUnit('°C')
|
|
395
|
+
.withValueMin(0).withValueMax(8).withValueStep(0.5)
|
|
396
|
+
.withDescription('The threshold to detect window open, between 0.0 and 8.0 in 0.5 °C. Default: 0 (disabled).'),
|
|
397
|
+
exposes.numeric('hysterersis', ea.ALL)
|
|
398
|
+
.withUnit('°C')
|
|
399
|
+
.withValueMin(0.5).withValueMax(2).withValueStep(0.1)
|
|
400
|
+
.withDescription('Hysteresis setting, between 0.5 and 2 in 0.1 °C. Default: 0.5.'),
|
|
401
|
+
exposes.numeric('alarm_airtemp_overvalue', ea.ALL)
|
|
402
|
+
.withUnit('°C')
|
|
403
|
+
.withValueMin(20).withValueMax(60)
|
|
404
|
+
.withDescription('Room temperature alarm threshold, between 20 and 60 in °C. 0 means disabled. Default: 45.'),
|
|
405
|
+
],
|
|
406
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
407
|
+
const endpoint = device.getEndpoint(1);
|
|
408
|
+
const binds = [
|
|
409
|
+
'genBasic', 'genIdentify', 'hvacThermostat', 'seMetering', 'haElectricalMeasurement', 'genAlarms',
|
|
410
|
+
'msOccupancySensing', 'genTime', 'hvacUserInterfaceCfg',
|
|
411
|
+
];
|
|
412
|
+
await reporting.bind(endpoint, coordinatorEndpoint, binds);
|
|
413
|
+
|
|
414
|
+
// standard ZCL attributes
|
|
415
|
+
await reporting.thermostatTemperature(endpoint);
|
|
416
|
+
await reporting.thermostatOccupiedHeatingSetpoint(endpoint);
|
|
417
|
+
await reporting.thermostatUnoccupiedHeatingSetpoint(endpoint);
|
|
418
|
+
|
|
419
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
420
|
+
attribute: 'ocupancy',
|
|
421
|
+
minimumReportInterval: 0,
|
|
422
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
423
|
+
reportableChange: null,
|
|
424
|
+
}]);
|
|
425
|
+
|
|
426
|
+
await endpoint.read('haElectricalMeasurement', ['acVoltageMultiplier', 'acVoltageDivisor', 'acCurrentMultiplier']);
|
|
427
|
+
await endpoint.read('haElectricalMeasurement', ['acCurrentDivisor']);
|
|
428
|
+
|
|
429
|
+
await reporting.activePower(endpoint);
|
|
430
|
+
await reporting.rmsCurrent(endpoint, {min: 10, change: 10});
|
|
431
|
+
await reporting.rmsVoltage(endpoint, {min: 10});
|
|
432
|
+
await reporting.currentSummDelivered(endpoint);
|
|
433
|
+
|
|
434
|
+
// Custom attributes
|
|
435
|
+
const options = {manufacturerCode: 0x1224}; // Sunricher Manufacturer Code
|
|
436
|
+
|
|
437
|
+
// OperateDisplayLcdBrightnesss - removed as it has no effect
|
|
438
|
+
// ButtonVibrationLevel
|
|
439
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
440
|
+
attribute: {ID: 0x1001, type: 0x30},
|
|
441
|
+
minimumReportInterval: 0,
|
|
442
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
443
|
+
reportableChange: null}],
|
|
444
|
+
options);
|
|
445
|
+
// FloorSensorType
|
|
446
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
447
|
+
attribute: {ID: 0x1002, type: 0x30},
|
|
448
|
+
minimumReportInterval: 0,
|
|
449
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
450
|
+
reportableChange: null}],
|
|
451
|
+
options);
|
|
452
|
+
// ControlType
|
|
453
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
454
|
+
attribute: {ID: 0x1003, type: 0x30},
|
|
455
|
+
minimumReportInterval: 0,
|
|
456
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
457
|
+
reportableChange: null}],
|
|
458
|
+
options);
|
|
459
|
+
// PowerUpStatus
|
|
460
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
461
|
+
attribute: {ID: 0x1004, type: 0x30},
|
|
462
|
+
minimumReportInterval: 0,
|
|
463
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
464
|
+
reportableChange: null}],
|
|
465
|
+
options);
|
|
466
|
+
// FloorSensorCalibration
|
|
467
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
468
|
+
attribute: {ID: 0x1005, type: 0x28},
|
|
469
|
+
minimumReportInterval: 0,
|
|
470
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
471
|
+
reportableChange: 0}],
|
|
472
|
+
options);
|
|
473
|
+
// DryTime
|
|
474
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
475
|
+
attribute: {ID: 0x1006, type: 0x20},
|
|
476
|
+
minimumReportInterval: 0,
|
|
477
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
478
|
+
reportableChange: 0}],
|
|
479
|
+
options);
|
|
480
|
+
// ModeAfterDry
|
|
481
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
482
|
+
attribute: {ID: 0x1007, type: 0x30},
|
|
483
|
+
minimumReportInterval: 0,
|
|
484
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
485
|
+
reportableChange: null}],
|
|
486
|
+
options);
|
|
487
|
+
// TemperatureDisplay
|
|
488
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
489
|
+
attribute: {ID: 0x1008, type: 0x30},
|
|
490
|
+
minimumReportInterval: 0,
|
|
491
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
492
|
+
reportableChange: null}],
|
|
493
|
+
options);
|
|
494
|
+
// WindowOpenCheck
|
|
495
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
496
|
+
attribute: {ID: 0x1009, type: 0x20},
|
|
497
|
+
minimumReportInterval: 0,
|
|
498
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
499
|
+
reportableChange: 0}],
|
|
500
|
+
options);
|
|
501
|
+
|
|
502
|
+
// Hysterersis
|
|
503
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
504
|
+
attribute: {ID: 0x100A, type: 0x20},
|
|
505
|
+
minimumReportInterval: 0,
|
|
506
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
507
|
+
reportableChange: 0}],
|
|
508
|
+
options);
|
|
509
|
+
|
|
510
|
+
// AlarmAirTempOverValue
|
|
511
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
512
|
+
attribute: {ID: 0x2001, type: 0x20},
|
|
513
|
+
minimumReportInterval: 0,
|
|
514
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
515
|
+
reportableChange: 0}],
|
|
516
|
+
options);
|
|
517
|
+
// Away Mode Set
|
|
518
|
+
await endpoint.configureReporting('hvacThermostat', [{
|
|
519
|
+
attribute: {ID: 0x2002, type: 0x30},
|
|
520
|
+
minimumReportInterval: 0,
|
|
521
|
+
maximumReportInterval: constants.repInterval.HOUR,
|
|
522
|
+
reportableChange: null}],
|
|
523
|
+
options);
|
|
524
|
+
|
|
525
|
+
// Device does not asks for the time with binding, we need to write time during configure
|
|
526
|
+
|
|
527
|
+
// Trigger initial read
|
|
528
|
+
await endpoint.read('hvacThermostat', ['systemMode', 'runningState', 'occupiedHeatingSetpoint']);
|
|
529
|
+
await endpoint.read('hvacThermostat', [0x1001, 0x1002, 0x1003], options);
|
|
530
|
+
await endpoint.read('hvacThermostat', [0x1004, 0x1005, 0x1006, 0x1007], options);
|
|
531
|
+
await endpoint.read('hvacThermostat', [0x1008, 0x1009, 0x100A], options);
|
|
532
|
+
await endpoint.read('hvacThermostat', [0x2001, 0x2002], options);
|
|
533
|
+
},
|
|
534
|
+
},
|
|
347
535
|
];
|
package/devices/tuya.js
CHANGED
|
@@ -908,17 +908,21 @@ module.exports = [
|
|
|
908
908
|
},
|
|
909
909
|
{
|
|
910
910
|
fingerprint: [{modelID: 'TS0215A', manufacturerName: '_TZ3000_4fsgukof'},
|
|
911
|
-
{modelID: 'TS0215A', manufacturerName: '_TZ3000_wr2ucaj9'}
|
|
911
|
+
{modelID: 'TS0215A', manufacturerName: '_TZ3000_wr2ucaj9'},
|
|
912
|
+
{modelID: 'TS0215A', manufacturerName: '_TZ3000_tj4pwzzm'}],
|
|
912
913
|
model: 'TS0215A_sos',
|
|
913
914
|
vendor: 'TuYa',
|
|
914
915
|
description: 'SOS button',
|
|
915
916
|
fromZigbee: [fz.command_emergency, fz.battery],
|
|
916
917
|
exposes: [e.battery(), e.action(['emergency'])],
|
|
917
918
|
toZigbee: [],
|
|
919
|
+
configure: async (device, coordinatorEndpoint, logger) => {
|
|
920
|
+
const endpoint = device.getEndpoint(1);
|
|
921
|
+
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg', 'genTime', 'genBasic', 'ssIasAce', 'ssIasZone']);
|
|
922
|
+
},
|
|
918
923
|
},
|
|
919
924
|
{
|
|
920
925
|
fingerprint: [{modelID: 'TS0215A', manufacturerName: '_TZ3000_p6ju8myv'},
|
|
921
|
-
{modelID: 'TS0215A', manufacturerName: '_TZ3000_tj4pwzzm'},
|
|
922
926
|
{modelID: 'TS0215A', manufacturerName: '_TZ3000_fsiepnrh'}],
|
|
923
927
|
model: 'TS0215A_remote',
|
|
924
928
|
vendor: 'TuYa',
|
package/devices/xiaomi.js
CHANGED
|
@@ -1313,7 +1313,7 @@ module.exports = [
|
|
|
1313
1313
|
'the normal monitoring state, the green indicator light flashes every 60 seconds'),
|
|
1314
1314
|
exposes.binary('linkage_alarm', ea.ALL, true, false).withDescription('When this option is enabled and a smoke ' +
|
|
1315
1315
|
'is detected, other detectors with this option enabled will also sound the alarm buzzer'),
|
|
1316
|
-
e.
|
|
1316
|
+
e.battery(), e.battery_voltage(), e.power_outage_count(false)],
|
|
1317
1317
|
meta: {battery: {voltageToPercentage: '3V_2850_3200'}},
|
|
1318
1318
|
configure: async (device, coordinatorEndpoint, logger) => {
|
|
1319
1319
|
const endpoint = device.getEndpoint(1);
|
package/lib/exposes.js
CHANGED
|
@@ -372,7 +372,7 @@ class Climate extends Base {
|
|
|
372
372
|
|
|
373
373
|
withSetpoint(property, min, max, step, access=a.ALL) {
|
|
374
374
|
assert(!this.endpoint, 'Cannot add feature after adding endpoint');
|
|
375
|
-
assert(['occupied_heating_setpoint', 'current_heating_setpoint', 'occupied_cooling_setpoint'].includes(property));
|
|
375
|
+
assert(['occupied_heating_setpoint', 'current_heating_setpoint', 'occupied_cooling_setpoint', 'unoccupied_heating_setpoint', 'unoccupied_cooling_setpoint'].includes(property));
|
|
376
376
|
this.features.push(new Numeric(property, access)
|
|
377
377
|
.withValueMin(min).withValueMax(max).withValueStep(step).withUnit('°C').withDescription('Temperature setpoint'));
|
|
378
378
|
return this;
|
package/lib/xiaomi.js
CHANGED
|
@@ -158,10 +158,11 @@ const numericAttributes2Payload = (msg, meta, model, options, dataObject) => {
|
|
|
158
158
|
}
|
|
159
159
|
break;
|
|
160
160
|
case '3':
|
|
161
|
-
if (['WXCJKG11LM', 'WXCJKG12LM', 'WXCJKG13LM', 'MCCGQ14LM', 'GZCGQ01LM'].includes(model.model)) {
|
|
161
|
+
if (['WXCJKG11LM', 'WXCJKG12LM', 'WXCJKG13LM', 'MCCGQ14LM', 'GZCGQ01LM', 'JY-GZ-01AQ'].includes(model.model)) {
|
|
162
162
|
// The temperature value is constant 25 °C and does not change, so we ignore it
|
|
163
163
|
// https://github.com/Koenkk/zigbee2mqtt/issues/11126
|
|
164
164
|
// https://github.com/Koenkk/zigbee-herdsman-converters/pull/3585
|
|
165
|
+
// https://github.com/Koenkk/zigbee2mqtt/issues/13253
|
|
165
166
|
} else {
|
|
166
167
|
payload.device_temperature = calibrateAndPrecisionRoundOptions(value, options, 'device_temperature'); // 0x03
|
|
167
168
|
}
|