zigbee-herdsman-converters 20.23.0 → 20.24.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/devices/tuya.js CHANGED
@@ -1492,7 +1492,6 @@ const definitions = [
1492
1492
  const endpoint = device.getEndpoint(1);
1493
1493
  await endpoint.read('genOnOff', ['onOff', 'moesStartUpOnOff']);
1494
1494
  },
1495
- whiteLabel: [tuya.whitelabel('Nous', 'LZ3', 'Smart water/gas valve', ['_TZ3000_abjodzas'])],
1496
1495
  },
1497
1496
  {
1498
1497
  zigbeeModel: ['CK-BL702-AL-01(7009_Z102LG03-1)', 'CK-BL702-AL-01(7009_Z102LG04-2)'],
@@ -2548,7 +2547,6 @@ const definitions = [
2548
2547
  model: 'MS-108ZR',
2549
2548
  vendor: 'Moes',
2550
2549
  description: 'Zigbee + RF curtain switch module',
2551
- meta: { coverInverted: true },
2552
2550
  whiteLabel: [tuya.whitelabel('QA', 'QACZ1', 'Curtain switch', ['_TZ3210_xbpt8ewc'])],
2553
2551
  ota: ota.zigbeeOTA,
2554
2552
  fromZigbee: [fromZigbee_1.default.tuya_cover_options, fromZigbee_1.default.cover_position_tilt],
@@ -5872,6 +5870,7 @@ const definitions = [
5872
5870
  { vendor: 'TUYATEC', model: 'GDKES-01TZXD' },
5873
5871
  { vendor: 'Lonsonho', model: 'QS-Zigbee-S05-L', description: '1 gang smart switch module without neutral wire' },
5874
5872
  { vendor: 'Mercator Ikuü', model: 'SSW01' },
5873
+ tuya.whitelabel('Nous', 'LZ3', 'Smart water/gas valve', ['_TZ3000_abjodzas']),
5875
5874
  ],
5876
5875
  configure: async (device, coordinatorEndpoint) => {
5877
5876
  await tuya.configureMagicPacket(device, coordinatorEndpoint);
@@ -6134,6 +6133,27 @@ const definitions = [
6134
6133
  }
6135
6134
  },
6136
6135
  },
6136
+ {
6137
+ fingerprint: [{ modelID: 'TS0726', manufacturerName: '_TZ3002_sal078g8' }],
6138
+ model: 'TS0726_switch_4g_2s',
6139
+ vendor: 'Tuya',
6140
+ description: 'COSWALL smart switch (4 gang + 2 scene)',
6141
+ fromZigbee: [fzLocal.TS0726_action],
6142
+ exposes: [e.action(['scene_1', 'scene_2', 'scene_3', 'scene_4', 'scene_5', 'scene_6'])],
6143
+ extend: [
6144
+ tuya.modernExtend.tuyaOnOff({ switchMode: true, powerOnBehavior2: true, backlightModeOffOn: true, endpoints: ['l1', 'l2', 'l3', 'l4'] }),
6145
+ ],
6146
+ endpoint: (device) => {
6147
+ return { l1: 1, l2: 2, l3: 3, l4: 4, l5: 5, l6: 6 };
6148
+ },
6149
+ meta: { multiEndpoint: true },
6150
+ configure: async (device, coordinatorEndpoint) => {
6151
+ await tuya.configureMagicPacket(device, coordinatorEndpoint);
6152
+ for (const ep of [1, 2, 3, 4, 5, 6]) {
6153
+ await reporting.bind(device.getEndpoint(ep), coordinatorEndpoint, ['genOnOff']);
6154
+ }
6155
+ },
6156
+ },
6137
6157
  {
6138
6158
  zigbeeModel: ['TS0006'],
6139
6159
  model: 'TS0006',
@@ -7284,6 +7304,41 @@ const definitions = [
7284
7304
  .withDescription('Self_test, possible results: checking, check_success, check_failure, others, comm_fault, radar_fault.'),
7285
7305
  ],
7286
7306
  },
7307
+ {
7308
+ fingerprint: tuya.fingerprint('TS0601', ['_TZE204_bmdsp6bs']),
7309
+ model: 'Y1_IN',
7310
+ vendor: 'Tuya',
7311
+ description: 'Smart human presence sensor 24G',
7312
+ fromZigbee: [tuya.fz.datapoints],
7313
+ toZigbee: [tuya.tz.datapoints],
7314
+ onEvent: tuya.onEventSetTime,
7315
+ configure: tuya.configureMagicPacket,
7316
+ exposes: [
7317
+ e.presence(),
7318
+ e.illuminance_lux(),
7319
+ e.numeric('keep_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(10).withValueStep(1).withDescription('Keep sensitivity'),
7320
+ e.numeric('trigger_sensitivity', ea.STATE_SET).withValueMin(1).withValueMax(20).withValueStep(1).withDescription('Trigger sensitivity'),
7321
+ e
7322
+ .numeric('fading_time', ea.STATE_SET)
7323
+ .withValueMin(1)
7324
+ .withValueMax(60)
7325
+ .withValueStep(1)
7326
+ .withDescription('Presence timeout')
7327
+ .withUnit('s'),
7328
+ e.numeric('target_distance', ea.STATE).withDescription('Distance to target').withUnit('m'),
7329
+ ],
7330
+ meta: {
7331
+ tuyaDatapoints: [
7332
+ [1, 'presence', tuya.valueConverter.trueFalse1],
7333
+ [102, 'fading_time', tuya.valueConverter.raw],
7334
+ [103, 'illuminance_lux', tuya.valueConverter.raw],
7335
+ [110, 'keep_sensitivity', tuya.valueConverter.raw],
7336
+ [114, 'trigger_sensitivity', tuya.valueConverter.raw],
7337
+ [182, 'target_distance', tuya.valueConverter.divideBy10],
7338
+ [183, null, null],
7339
+ ],
7340
+ },
7341
+ },
7287
7342
  {
7288
7343
  fingerprint: tuya.fingerprint('TS0601', ['_TZE204_sxm7l9xa', '_TZE204_e5m9c5hl']),
7289
7344
  model: 'ZY-M100-S_1',
@@ -9038,10 +9093,7 @@ const definitions = [
9038
9093
  },
9039
9094
  },
9040
9095
  {
9041
- fingerprint: [
9042
- { modelID: 'TS0601', manufacturerName: '_TZE204_ugekduaj' },
9043
- { modelID: 'TS0601', manufacturerName: '_TZE200_ugekduaj' },
9044
- ],
9096
+ fingerprint: tuya.fingerprint('TS0601', ['_TZE204_ugekduaj', '_TZE200_ugekduaj', '_TZE204_loejka0i']),
9045
9097
  model: 'SDM01',
9046
9098
  vendor: 'Tuya',
9047
9099
  description: 'Smart energy monitor for 3P+N system',