zigbee-herdsman-converters 20.9.0 → 20.11.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 +35 -0
- package/converters/toZigbee.d.ts +24 -0
- package/converters/toZigbee.d.ts.map +1 -1
- package/converters/toZigbee.js +36 -0
- package/converters/toZigbee.js.map +1 -1
- package/devices/feibit.d.ts.map +1 -1
- package/devices/feibit.js +8 -1
- package/devices/feibit.js.map +1 -1
- package/devices/giex.js +1 -1
- package/devices/giex.js.map +1 -1
- package/devices/innr.d.ts.map +1 -1
- package/devices/innr.js +8 -0
- package/devices/innr.js.map +1 -1
- package/devices/inovelli.js +2 -2
- package/devices/neo.js +1 -1
- package/devices/neo.js.map +1 -1
- package/devices/philips.d.ts.map +1 -1
- package/devices/philips.js +7 -0
- package/devices/philips.js.map +1 -1
- package/devices/shenzhen_homa.js +2 -2
- package/devices/shenzhen_homa.js.map +1 -1
- package/devices/tuya.d.ts.map +1 -1
- package/devices/tuya.js +157 -2
- package/devices/tuya.js.map +1 -1
- package/lib/ikea.js +1 -1
- package/lib/modernExtend.d.ts +1 -0
- package/lib/modernExtend.d.ts.map +1 -1
- package/lib/modernExtend.js +74 -13
- package/lib/modernExtend.js.map +1 -1
- package/lib/ota/common.d.ts.map +1 -1
- package/lib/ota/common.js +5 -1
- package/lib/ota/common.js.map +1 -1
- package/package.json +1 -1
package/devices/tuya.js
CHANGED
|
@@ -1531,7 +1531,6 @@ const definitions = [
|
|
|
1531
1531
|
tuya.whitelabel('Lidl', 'HG08131C', 'Livarno Home outdoor E27 bulb in set with flare', ['_TZ3000_q50zhdsc']),
|
|
1532
1532
|
tuya.whitelabel('Lidl', 'HG07834C', 'Livarno Lux E27 bulb RGB', ['_TZ3000_qd7hej8u']),
|
|
1533
1533
|
tuya.whitelabel('MiBoxer', 'FUT037Z+', 'RGB led controller', ['_TZB210_417ikxay', '_TZB210_wxazcmsh']),
|
|
1534
|
-
tuya.whitelabel('MiBoxer', 'E2-ZR', '2 in 1 led controller', ['_TZB210_ayx58ft5']),
|
|
1535
1534
|
tuya.whitelabel('Lidl', 'HG08383B', 'Livarno outdoor LED light chain', ['_TZ3000_bwlvyjwk']),
|
|
1536
1535
|
tuya.whitelabel('Lidl', 'HG08383A', 'Livarno outdoor LED light chain', ['_TZ3000_taspddvq']),
|
|
1537
1536
|
tuya.whitelabel('Garza Smart', 'Garza-Standard-A60', 'Standard A60 bulb', ['_TZ3210_sln7ah6r']),
|
|
@@ -1877,7 +1876,7 @@ const definitions = [
|
|
|
1877
1876
|
e.numeric('illuminance_average_20min', ea.STATE).withUnit('lx').withDescription('Illuminance average for the last 20 minutes'),
|
|
1878
1877
|
e.numeric('illuminance_maximum_today', ea.STATE).withUnit('lx').withDescription('Illuminance maximum for the last 24 hours'),
|
|
1879
1878
|
e.binary('cleaning_reminder', ea.STATE, 'ON', 'OFF').withDescription('Cleaning reminder'),
|
|
1880
|
-
e.numeric('rain_intensity', ea.STATE).withDescription('Rainfall intensity'),
|
|
1879
|
+
e.numeric('rain_intensity', ea.STATE).withUnit('mV').withDescription('Rainfall intensity'),
|
|
1881
1880
|
e.battery(),
|
|
1882
1881
|
],
|
|
1883
1882
|
meta: {
|
|
@@ -2935,6 +2934,7 @@ const definitions = [
|
|
|
2935
2934
|
'_TZ3210_xwqng7ol',
|
|
2936
2935
|
'_TZB210_lmqquxus',
|
|
2937
2936
|
]),
|
|
2937
|
+
tuya.whitelabel('MiBoxer', 'E2-ZR', '2 in 1 LED controller', ['_TZB210_ayx58ft5']),
|
|
2938
2938
|
tuya.whitelabel('Lidl', '14156408L', 'Livarno Lux smart LED ceiling light', ['_TZ3210_c2iwpxf1']),
|
|
2939
2939
|
],
|
|
2940
2940
|
extend: [tuya.modernExtend.tuyaLight({ colorTemp: { range: [153, 500] }, configureReporting: true })],
|
|
@@ -11304,6 +11304,161 @@ const definitions = [
|
|
|
11304
11304
|
],
|
|
11305
11305
|
},
|
|
11306
11306
|
},
|
|
11307
|
+
{
|
|
11308
|
+
fingerprint: tuya.fingerprint('TS0601', ['_TZE204_fhvdgeuh']),
|
|
11309
|
+
model: 'TS0601_din_4',
|
|
11310
|
+
vendor: 'Tuya',
|
|
11311
|
+
description: 'Din rail switch with power monitoring and threshold settings',
|
|
11312
|
+
fromZigbee: [tuya.fz.datapoints],
|
|
11313
|
+
toZigbee: [tuya.tz.datapoints],
|
|
11314
|
+
configure: async (device, coordinatorEndpoint) => {
|
|
11315
|
+
await tuya.configureMagicPacket(device, coordinatorEndpoint);
|
|
11316
|
+
// Required to get the device to start reporting
|
|
11317
|
+
await device.getEndpoint(1).command('manuSpecificTuya', 'dataQuery', {});
|
|
11318
|
+
},
|
|
11319
|
+
exposes: [
|
|
11320
|
+
e.switch().setAccess('state', ea.STATE_SET),
|
|
11321
|
+
e.power(),
|
|
11322
|
+
e.current(),
|
|
11323
|
+
e.voltage(),
|
|
11324
|
+
e.energy(),
|
|
11325
|
+
e.numeric('temperature', ea.STATE).withUnit('°C').withDescription('Current temperature'),
|
|
11326
|
+
e.numeric('leakage', ea.STATE).withUnit('mA').withDescription('Current leakage'),
|
|
11327
|
+
],
|
|
11328
|
+
meta: {
|
|
11329
|
+
tuyaDatapoints: [
|
|
11330
|
+
[16, 'state', tuya.valueConverter.onOff],
|
|
11331
|
+
[1, 'energy', tuya.valueConverter.divideBy100], // Total forward energy
|
|
11332
|
+
[6, null, tuya.valueConverter.phaseVariant2], // Phase A voltage and current
|
|
11333
|
+
// [9, 'fault', tuya.valueConverter.raw], // no expose
|
|
11334
|
+
// [11, 'switch_prepayment', tuya.valueConverter.raw], // no expose
|
|
11335
|
+
// [12, 'clear_energy', tuya.valueConverter.raw], // no expose
|
|
11336
|
+
// [14, 'charge_energy', tuya.valueConverter.raw], // no expose
|
|
11337
|
+
[15, 'leakage', tuya.valueConverter.raw],
|
|
11338
|
+
// [102, 'reclosing_allowed_times', tuya.valueConverter.raw], // no expose
|
|
11339
|
+
[103, 'temperature', tuya.valueConverter.raw],
|
|
11340
|
+
// [104, 'reclosing_enable', tuya.valueConverter.raw], // no expose
|
|
11341
|
+
// [105, 'timer', tuya.valueConverter.raw], // no expose
|
|
11342
|
+
// [106, 'cycle_schedule', tuya.valueConverter.raw], // no expose
|
|
11343
|
+
// [107, 'reclose_recover_seconds', tuya.valueConverter.raw], // no expose
|
|
11344
|
+
// [108, 'random_timing', tuya.valueConverter.raw], // no expose
|
|
11345
|
+
// [109, 'switch_inching', tuya.valueConverter.raw], // no expose
|
|
11346
|
+
// [119, 'power_on_delay_power_on_time', tuya.valueConverter.raw], // no expose
|
|
11347
|
+
// [124, 'overcurrent_event_threshold_time', tuya.valueConverter.raw], // no expose
|
|
11348
|
+
// [125, 'time_threshold_of_lost_flow_event', tuya.valueConverter.raw], // no expose
|
|
11349
|
+
// [127, 'status', tuya.valueConverter.raw], // no expose
|
|
11350
|
+
// [134, 'relay_status_for_power_on', tuya.valueConverter.raw], // no expose
|
|
11351
|
+
],
|
|
11352
|
+
},
|
|
11353
|
+
},
|
|
11354
|
+
{
|
|
11355
|
+
fingerprint: [{ modelID: 'TS0601', manufacturerName: '_TZE204_hcxvyxa5' }],
|
|
11356
|
+
model: 'ZA03',
|
|
11357
|
+
vendor: 'Tuya',
|
|
11358
|
+
description: 'Siren alarm',
|
|
11359
|
+
fromZigbee: [tuya.fz.datapoints],
|
|
11360
|
+
toZigbee: [tuya.tz.datapoints],
|
|
11361
|
+
configure: tuya.configureMagicPacket,
|
|
11362
|
+
exposes: [
|
|
11363
|
+
e.binary('alarm', ea.STATE_SET, 'ON', 'OFF').withDescription('Sound the alarm'),
|
|
11364
|
+
e.enum('volume', ea.STATE_SET, ['low', 'medium', 'high', 'mute']),
|
|
11365
|
+
e.enum('ringtone', ea.STATE_SET, [
|
|
11366
|
+
'ringtone 1',
|
|
11367
|
+
'ringtone 2',
|
|
11368
|
+
'ringtone 3',
|
|
11369
|
+
'ringtone 4',
|
|
11370
|
+
'ringtone 5',
|
|
11371
|
+
'ringtone 6',
|
|
11372
|
+
'ringtone 7',
|
|
11373
|
+
'ringtone 8',
|
|
11374
|
+
'ringtone 9',
|
|
11375
|
+
'ringtone 10',
|
|
11376
|
+
'ringtone 11',
|
|
11377
|
+
'ringtone 12',
|
|
11378
|
+
'ringtone 13',
|
|
11379
|
+
'ringtone 14',
|
|
11380
|
+
'ringtone 15',
|
|
11381
|
+
'ringtone 16',
|
|
11382
|
+
'ringtone 17',
|
|
11383
|
+
'ringtone 18',
|
|
11384
|
+
'ringtone 19',
|
|
11385
|
+
'ringtone 20',
|
|
11386
|
+
'ringtone 21',
|
|
11387
|
+
'ringtone 22',
|
|
11388
|
+
'ringtone 23',
|
|
11389
|
+
'ringtone 24',
|
|
11390
|
+
'ringtone 25',
|
|
11391
|
+
'ringtone 26',
|
|
11392
|
+
'ringtone 27',
|
|
11393
|
+
'ringtone 28',
|
|
11394
|
+
'ringtone 29',
|
|
11395
|
+
'ringtone 30',
|
|
11396
|
+
'ringtone 31',
|
|
11397
|
+
'ringtone 32',
|
|
11398
|
+
]),
|
|
11399
|
+
e
|
|
11400
|
+
.numeric('duration', ea.STATE_SET)
|
|
11401
|
+
.withValueMin(1)
|
|
11402
|
+
.withValueMax(380)
|
|
11403
|
+
.withValueStep(1)
|
|
11404
|
+
.withUnit('s')
|
|
11405
|
+
.withDescription('How long the alarm sounds for when triggered'),
|
|
11406
|
+
],
|
|
11407
|
+
meta: {
|
|
11408
|
+
tuyaDatapoints: [
|
|
11409
|
+
[
|
|
11410
|
+
5,
|
|
11411
|
+
'volume',
|
|
11412
|
+
tuya.valueConverterBasic.lookup({
|
|
11413
|
+
low: tuya.enum(0),
|
|
11414
|
+
medium: tuya.enum(1),
|
|
11415
|
+
high: tuya.enum(2),
|
|
11416
|
+
mute: tuya.enum(3),
|
|
11417
|
+
}),
|
|
11418
|
+
],
|
|
11419
|
+
[7, 'duration', tuya.valueConverter.raw],
|
|
11420
|
+
[13, 'alarm', tuya.valueConverter.onOff],
|
|
11421
|
+
[
|
|
11422
|
+
21,
|
|
11423
|
+
'ringtone',
|
|
11424
|
+
tuya.valueConverterBasic.lookup({
|
|
11425
|
+
'ringtone 1': tuya.enum(0),
|
|
11426
|
+
'ringtone 2': tuya.enum(1),
|
|
11427
|
+
'ringtone 3': tuya.enum(2),
|
|
11428
|
+
'ringtone 4': tuya.enum(3),
|
|
11429
|
+
'ringtone 5': tuya.enum(4),
|
|
11430
|
+
'ringtone 6': tuya.enum(5),
|
|
11431
|
+
'ringtone 7': tuya.enum(6),
|
|
11432
|
+
'ringtone 8': tuya.enum(7),
|
|
11433
|
+
'ringtone 9': tuya.enum(8),
|
|
11434
|
+
'ringtone 10': tuya.enum(9),
|
|
11435
|
+
'ringtone 11': tuya.enum(10),
|
|
11436
|
+
'ringtone 12': tuya.enum(11),
|
|
11437
|
+
'ringtone 13': tuya.enum(12),
|
|
11438
|
+
'ringtone 14': tuya.enum(13),
|
|
11439
|
+
'ringtone 15': tuya.enum(14),
|
|
11440
|
+
'ringtone 16': tuya.enum(15),
|
|
11441
|
+
'ringtone 17': tuya.enum(16),
|
|
11442
|
+
'ringtone 18': tuya.enum(17),
|
|
11443
|
+
'ringtone 19': tuya.enum(18),
|
|
11444
|
+
'ringtone 20': tuya.enum(19),
|
|
11445
|
+
'ringtone 21': tuya.enum(20),
|
|
11446
|
+
'ringtone 22': tuya.enum(21),
|
|
11447
|
+
'ringtone 23': tuya.enum(22),
|
|
11448
|
+
'ringtone 24': tuya.enum(23),
|
|
11449
|
+
'ringtone 25': tuya.enum(24),
|
|
11450
|
+
'ringtone 26': tuya.enum(25),
|
|
11451
|
+
'ringtone 27': tuya.enum(26),
|
|
11452
|
+
'ringtone 28': tuya.enum(27),
|
|
11453
|
+
'ringtone 29': tuya.enum(28),
|
|
11454
|
+
'ringtone 30': tuya.enum(29),
|
|
11455
|
+
'ringtone 31': tuya.enum(30),
|
|
11456
|
+
'ringtone 32': tuya.enum(31),
|
|
11457
|
+
}),
|
|
11458
|
+
],
|
|
11459
|
+
],
|
|
11460
|
+
},
|
|
11461
|
+
},
|
|
11307
11462
|
];
|
|
11308
11463
|
exports.default = definitions;
|
|
11309
11464
|
module.exports = definitions;
|