zigbee-herdsman-converters 21.11.0 → 21.12.0
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/CHANGELOG.md +20 -0
- package/converters/fromZigbee.js +5 -5
- package/converters/fromZigbee.js.map +1 -1
- package/converters/toZigbee.d.ts.map +1 -1
- package/converters/toZigbee.js +14 -2
- package/converters/toZigbee.js.map +1 -1
- package/devices/datek.d.ts.map +1 -1
- package/devices/datek.js +13 -1
- package/devices/datek.js.map +1 -1
- package/devices/dresden_elektronik.js +1 -1
- package/devices/dresden_elektronik.js.map +1 -1
- package/devices/hzc_electric.d.ts.map +1 -1
- package/devices/hzc_electric.js +11 -0
- package/devices/hzc_electric.js.map +1 -1
- package/devices/index.d.ts.map +1 -1
- package/devices/index.js +2 -0
- package/devices/index.js.map +1 -1
- package/devices/lumi.d.ts.map +1 -1
- package/devices/lumi.js +8 -0
- package/devices/lumi.js.map +1 -1
- package/devices/salus_controls.d.ts.map +1 -1
- package/devices/salus_controls.js +41 -2
- package/devices/salus_controls.js.map +1 -1
- package/devices/tuya.d.ts.map +1 -1
- package/devices/tuya.js +141 -0
- package/devices/tuya.js.map +1 -1
- package/devices/xal.d.ts.map +1 -1
- package/devices/xal.js +9 -2
- package/devices/xal.js.map +1 -1
- package/devices/yokis.d.ts +4 -0
- package/devices/yokis.d.ts.map +1 -0
- package/devices/yokis.js +2454 -0
- package/devices/yokis.js.map +1 -0
- package/lib/modernExtend.d.ts.map +1 -1
- package/lib/modernExtend.js +5 -1
- package/lib/modernExtend.js.map +1 -1
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"salus_controls.d.ts","sourceRoot":"","sources":["../../src/devices/salus_controls.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"salus_controls.d.ts","sourceRoot":"","sources":["../../src/devices/salus_controls.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAIlD,QAAA,MAAM,WAAW,EAAE,oBAAoB,EAgLtC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -36,6 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
const zigbee_herdsman_1 = require("zigbee-herdsman");
|
|
39
40
|
const fromZigbee_1 = __importDefault(require("../converters/fromZigbee"));
|
|
40
41
|
const toZigbee_1 = __importDefault(require("../converters/toZigbee"));
|
|
41
42
|
const exposes = __importStar(require("../lib/exposes"));
|
|
@@ -136,7 +137,45 @@ const definitions = [
|
|
|
136
137
|
model: 'FC600',
|
|
137
138
|
vendor: 'Salus Controls',
|
|
138
139
|
description: 'Fan coil thermostat',
|
|
139
|
-
extend: [
|
|
140
|
+
extend: [
|
|
141
|
+
(0, modernExtend_1.deviceAddCustomCluster)('manuSpecificSalus', {
|
|
142
|
+
ID: 0xfc04,
|
|
143
|
+
manufacturerCode: zigbee_herdsman_1.Zcl.ManufacturerCode.COMPUTIME,
|
|
144
|
+
attributes: {
|
|
145
|
+
frostSetpoint: { ID: 0x0000, type: zigbee_herdsman_1.Zcl.DataType.INT16 },
|
|
146
|
+
minFrostSetpoint: { ID: 0x0001, type: zigbee_herdsman_1.Zcl.DataType.INT16 },
|
|
147
|
+
maxFrostSetpoint: { ID: 0x0002, type: zigbee_herdsman_1.Zcl.DataType.INT16 },
|
|
148
|
+
timeDisplayFormat: { ID: 0x0003, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
|
|
149
|
+
attr4: { ID: 0x0004, type: zigbee_herdsman_1.Zcl.DataType.UINT16 },
|
|
150
|
+
attr5: { ID: 0x0005, type: zigbee_herdsman_1.Zcl.DataType.UINT8 },
|
|
151
|
+
attr6: { ID: 0x0006, type: zigbee_herdsman_1.Zcl.DataType.UINT16 },
|
|
152
|
+
attr7: { ID: 0x0007, type: zigbee_herdsman_1.Zcl.DataType.UINT8 },
|
|
153
|
+
autoCoolingSetpoint: { ID: 0x0008, type: zigbee_herdsman_1.Zcl.DataType.INT16 },
|
|
154
|
+
autoHeatingSetpoint: { ID: 0x0009, type: zigbee_herdsman_1.Zcl.DataType.INT16 },
|
|
155
|
+
holdType: { ID: 0x000a, type: zigbee_herdsman_1.Zcl.DataType.UINT8 },
|
|
156
|
+
shortCycleProtection: { ID: 0x000b, type: zigbee_herdsman_1.Zcl.DataType.UINT16 },
|
|
157
|
+
coolingFanDelay: { ID: 0x000c, type: zigbee_herdsman_1.Zcl.DataType.UINT16 },
|
|
158
|
+
ruleCoolingSetpoint: { ID: 0x000d, type: zigbee_herdsman_1.Zcl.DataType.INT16 },
|
|
159
|
+
ruleHeatingSetpoint: { ID: 0x000e, type: zigbee_herdsman_1.Zcl.DataType.INT16 },
|
|
160
|
+
attr15: { ID: 0x000f, type: zigbee_herdsman_1.Zcl.DataType.BOOLEAN },
|
|
161
|
+
},
|
|
162
|
+
commands: {
|
|
163
|
+
resetDevice: {
|
|
164
|
+
ID: 0x01,
|
|
165
|
+
parameters: [],
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
commandsResponse: {},
|
|
169
|
+
}),
|
|
170
|
+
(0, modernExtend_1.enumLookup)({
|
|
171
|
+
name: 'preset',
|
|
172
|
+
lookup: { schedule: 0, temporary_override: 1, permanent_override: 2, standby: 7, eco: 10 },
|
|
173
|
+
cluster: 'manuSpecificSalus',
|
|
174
|
+
attribute: 'holdType',
|
|
175
|
+
description: 'Operation mode',
|
|
176
|
+
reporting: { min: 0, max: 3600, change: 0 },
|
|
177
|
+
}),
|
|
178
|
+
],
|
|
140
179
|
fromZigbee: [fromZigbee_1.default.thermostat, fromZigbee_1.default.fan],
|
|
141
180
|
toZigbee: [
|
|
142
181
|
toZigbee_1.default.thermostat_local_temperature,
|
|
@@ -169,7 +208,7 @@ const definitions = [
|
|
|
169
208
|
],
|
|
170
209
|
configure: async (device, coordinatorEndpoint) => {
|
|
171
210
|
const endpoint = device.getEndpoint(9);
|
|
172
|
-
const binds = ['genBasic', '
|
|
211
|
+
const binds = ['genBasic', 'genTime', 'hvacThermostat', 'hvacFanCtrl', 'hvacUserInterfaceCfg'];
|
|
173
212
|
await reporting.bind(endpoint, coordinatorEndpoint, binds);
|
|
174
213
|
await reporting.thermostatTemperature(endpoint);
|
|
175
214
|
await reporting.thermostatOccupiedHeatingSetpoint(endpoint);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"salus_controls.js","sourceRoot":"","sources":["../../src/devices/salus_controls.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0EAA0C;AAC1C,sEAAwC;AACxC,wDAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"salus_controls.js","sourceRoot":"","sources":["../../src/devices/salus_controls.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAoC;AAEpC,0EAA0C;AAC1C,sEAAwC;AACxC,wDAA0C;AAC1C,sDAAgG;AAChG,4DAA8C;AAG9C,MAAM,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;AAE1B,MAAM,WAAW,GAA2B;IACxC;QACI,WAAW,EAAE,CAAC,QAAQ,CAAC;QACvB,KAAK,EAAE,QAAQ;QACf,MAAM,EAAE,gBAAgB;QACxB,WAAW,EAAE,wBAAwB;QACrC,MAAM,EAAE,CAAC,IAAA,oBAAK,GAAE,EAAE,IAAA,+BAAgB,EAAC,EAAC,OAAO,EAAE,UAAU,EAAC,CAAC,CAAC;QAC1D,GAAG,EAAE,EAAC,gBAAgB,EAAE,eAAe,EAAC;KAC3C;IACD;QACI,WAAW,EAAE,CAAC,OAAO,CAAC;QACtB,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,gBAAgB;QACxB,WAAW,EAAE,wBAAwB;QACrC,MAAM,EA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;AA6wB3H,QAAA,MAAM,WAAW,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"tuya.d.ts","sourceRoot":"","sources":["../../src/devices/tuya.ts"],"names":[],"mappings":"AA0BA,OAAO,EAAC,oBAAoB,EAA0E,MAAM,cAAc,CAAC;AA6wB3H,QAAA,MAAM,WAAW,EAAE,oBAAoB,EAg4ZtC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/devices/tuya.js
CHANGED
|
@@ -13333,6 +13333,147 @@ const definitions = [
|
|
|
13333
13333
|
],
|
|
13334
13334
|
},
|
|
13335
13335
|
},
|
|
13336
|
+
{
|
|
13337
|
+
fingerprint: tuya.fingerprint('TS0225', ['_TZ321C_fkzihax8', '_TZ321C_4slreunp']),
|
|
13338
|
+
model: 'MTD085-ZB',
|
|
13339
|
+
vendor: 'LeapMMW',
|
|
13340
|
+
description: 'Human presence sensor',
|
|
13341
|
+
extend: [tuyaBase({ dp: true })],
|
|
13342
|
+
fromZigbee: [fromZigbee_1.default.ias_occupancy_alarm_1, fromZigbee_1.default.ias_occupancy_alarm_1_report],
|
|
13343
|
+
exposes: [
|
|
13344
|
+
e.occupancy(),
|
|
13345
|
+
e.illuminance(),
|
|
13346
|
+
e.numeric('target_distance', ea.STATE).withDescription('Distance to target').withUnit('m'),
|
|
13347
|
+
e
|
|
13348
|
+
.numeric('radar_sensitivity', ea.STATE_SET)
|
|
13349
|
+
.withValueMin(10)
|
|
13350
|
+
.withValueMax(100)
|
|
13351
|
+
.withValueStep(10)
|
|
13352
|
+
.withUnit('%')
|
|
13353
|
+
.withDescription('Detection threshold for the strength of object energy'),
|
|
13354
|
+
e
|
|
13355
|
+
.numeric('detection_range', ea.STATE_SET)
|
|
13356
|
+
.withValueMin(0)
|
|
13357
|
+
.withValueMax(8)
|
|
13358
|
+
.withValueStep(0.1)
|
|
13359
|
+
.withUnit('m')
|
|
13360
|
+
.withDescription('Maximum distance detected by the sensor'),
|
|
13361
|
+
e
|
|
13362
|
+
.numeric('shield_range', ea.STATE_SET)
|
|
13363
|
+
.withValueMin(0)
|
|
13364
|
+
.withValueMax(8)
|
|
13365
|
+
.withValueStep(0.1)
|
|
13366
|
+
.withUnit('m')
|
|
13367
|
+
.withDescription('Nearest distance detected by the sensor'),
|
|
13368
|
+
e
|
|
13369
|
+
.numeric('entry_sensitivity', ea.STATE_SET)
|
|
13370
|
+
.withValueMin(10)
|
|
13371
|
+
.withValueMax(100)
|
|
13372
|
+
.withValueStep(10)
|
|
13373
|
+
.withUnit('%')
|
|
13374
|
+
.withDescription('Sensitivity threshold triggered for the first time when the target enters the detection range'),
|
|
13375
|
+
e
|
|
13376
|
+
.numeric('entry_distance', ea.STATE_SET)
|
|
13377
|
+
.withValueMin(0)
|
|
13378
|
+
.withValueMax(8)
|
|
13379
|
+
.withValueStep(0.1)
|
|
13380
|
+
.withUnit('m')
|
|
13381
|
+
.withDescription('Dectection distance when unoccupied'),
|
|
13382
|
+
e
|
|
13383
|
+
.numeric('entry_filter_time', ea.STATE_SET)
|
|
13384
|
+
.withValueMin(0)
|
|
13385
|
+
.withValueMax(0.5)
|
|
13386
|
+
.withValueStep(0.05)
|
|
13387
|
+
.withUnit('s')
|
|
13388
|
+
.withDescription('Sensitivity threshold triggered for the first time when the target enters the detection range '),
|
|
13389
|
+
e
|
|
13390
|
+
.numeric('departure_delay', ea.STATE_SET)
|
|
13391
|
+
.withValueMin(5)
|
|
13392
|
+
.withValueMax(7200)
|
|
13393
|
+
.withValueStep(1)
|
|
13394
|
+
.withUnit('s')
|
|
13395
|
+
.withDescription('Confirmation time after the target disappears'),
|
|
13396
|
+
e
|
|
13397
|
+
.numeric('block_time', ea.STATE_SET)
|
|
13398
|
+
.withValueMin(0)
|
|
13399
|
+
.withValueMax(10)
|
|
13400
|
+
.withValueStep(0.1)
|
|
13401
|
+
.withUnit('s')
|
|
13402
|
+
.withDescription('Time for the target to be detected again after switching from manned(occupy) to unmanned(unoccupy) mode'),
|
|
13403
|
+
e.enum('status_indication', ea.STATE_SET, ['OFF', 'ON']).withDescription('Indicator light will turn on when human presence is detected'),
|
|
13404
|
+
e
|
|
13405
|
+
.enum('sensor', ea.STATE_SET, ['on', 'occupied', 'unoccupied'])
|
|
13406
|
+
.withDescription(`The radar sensor can be set in three states: on, occupied and unoccupied. For example, if set to occupied, ` +
|
|
13407
|
+
`it will continue to maintain presence regardless of whether someone is present or not. If set to unoccupied, the unoccupied ` +
|
|
13408
|
+
`state will be maintained permanently.`),
|
|
13409
|
+
e
|
|
13410
|
+
.enum('scene_preset', ea.STATE_SET, [
|
|
13411
|
+
'Custom',
|
|
13412
|
+
'Toilet',
|
|
13413
|
+
'Kitchen',
|
|
13414
|
+
'Hallway',
|
|
13415
|
+
'Bedroom',
|
|
13416
|
+
'Livingroom',
|
|
13417
|
+
'Meetingroom',
|
|
13418
|
+
'Factory default',
|
|
13419
|
+
])
|
|
13420
|
+
.withDescription(`Presets`),
|
|
13421
|
+
e
|
|
13422
|
+
.enum('distance_report_mode', ea.STATE_SET, ['Normal', 'Occupancy detection'])
|
|
13423
|
+
.withDescription('Indicator light will turn on when human presence is detected'),
|
|
13424
|
+
e
|
|
13425
|
+
.enum('debug_mode', ea.STATE_SET, ['OFF', 'ON'])
|
|
13426
|
+
.withDescription(`In debug mode, radar will report more information, can be used to identify interference`),
|
|
13427
|
+
e.numeric('debug_distance', ea.STATE).withDescription('Real time distance to target').withUnit('m'),
|
|
13428
|
+
e.numeric('debug_countdown', ea.STATE).withDescription('Time before the target disappears').withUnit('s'),
|
|
13429
|
+
],
|
|
13430
|
+
meta: {
|
|
13431
|
+
tuyaSendCommand: 'sendData',
|
|
13432
|
+
tuyaDatapoints: [
|
|
13433
|
+
// [1, 'presence', tuya.valueConverter.trueFalse1],
|
|
13434
|
+
[101, 'entry_sensitivity', tuya.valueConverter.raw],
|
|
13435
|
+
[102, 'entry_distance', tuya.valueConverter.divideBy100],
|
|
13436
|
+
[103, 'departure_delay', tuya.valueConverter.raw],
|
|
13437
|
+
[104, 'entry_filter_time', tuya.valueConverter.divideBy100],
|
|
13438
|
+
[105, 'block_time', tuya.valueConverter.divideBy10],
|
|
13439
|
+
[107, 'illuminance', tuya.valueConverter.divideBy10],
|
|
13440
|
+
[108, 'debug_mode', tuya.valueConverterBasic.lookup({ OFF: tuya.enum(0), ON: tuya.enum(1) })],
|
|
13441
|
+
[109, 'debug_distance', tuya.valueConverter.divideBy100],
|
|
13442
|
+
[110, 'debug_countdown', tuya.valueConverter.raw],
|
|
13443
|
+
[
|
|
13444
|
+
111,
|
|
13445
|
+
'scene_preset',
|
|
13446
|
+
tuya.valueConverterBasic.lookup({
|
|
13447
|
+
Custom: tuya.enum(0),
|
|
13448
|
+
Toilet: tuya.enum(1),
|
|
13449
|
+
Kitchen: tuya.enum(2),
|
|
13450
|
+
Hallway: tuya.enum(3),
|
|
13451
|
+
Bedroom: tuya.enum(4),
|
|
13452
|
+
Livingroom: tuya.enum(5),
|
|
13453
|
+
Meetingroom: tuya.enum(6),
|
|
13454
|
+
Default: tuya.enum(7),
|
|
13455
|
+
}),
|
|
13456
|
+
],
|
|
13457
|
+
[
|
|
13458
|
+
112,
|
|
13459
|
+
'sensor',
|
|
13460
|
+
tuya.valueConverterBasic.lookup({
|
|
13461
|
+
on: tuya.enum(0),
|
|
13462
|
+
occupied: tuya.enum(1),
|
|
13463
|
+
unoccupied: tuya.enum(2),
|
|
13464
|
+
}),
|
|
13465
|
+
],
|
|
13466
|
+
[113, 'cline', tuya.valueConverter.raw],
|
|
13467
|
+
[114, 'status_indication', tuya.valueConverterBasic.lookup({ OFF: tuya.enum(0), ON: tuya.enum(1) })],
|
|
13468
|
+
[115, 'radar_sensitivity', tuya.valueConverter.raw],
|
|
13469
|
+
[116, 'shield_range', tuya.valueConverter.divideBy100],
|
|
13470
|
+
[117, 'detection_range', tuya.valueConverter.divideBy100],
|
|
13471
|
+
[118, 'equipment_status', tuya.valueConverter.raw],
|
|
13472
|
+
[119, 'target_distance', tuya.valueConverter.divideBy100],
|
|
13473
|
+
[120, 'distance_report_mode', tuya.valueConverterBasic.lookup({ Normal: tuya.enum(0), 'Occupancy detection': tuya.enum(1) })],
|
|
13474
|
+
],
|
|
13475
|
+
},
|
|
13476
|
+
},
|
|
13336
13477
|
{
|
|
13337
13478
|
fingerprint: tuya.fingerprint('TS0601', ['_TZE204_d6i25bwg']),
|
|
13338
13479
|
model: 'PO-BOCO-ELEC',
|