zigbee-herdsman-converters 20.10.0 → 20.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/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']),
@@ -1869,16 +1868,14 @@ const definitions = [
1869
1868
  model: 'RB-SRAIN01',
1870
1869
  vendor: 'Tuya',
1871
1870
  description: 'Solar rain sensor',
1872
- fromZigbee: [tuya.fz.datapoints, fromZigbee_1.default.battery, fromZigbee_1.default.ias_water_leak_alarm_1],
1873
- toZigbee: [],
1871
+ fromZigbee: [tuya.fz.datapoints],
1872
+ extend: [(0, modernExtend_1.iasZoneAlarm)({ zoneType: 'rain', zoneAttributes: ['alarm_1'] }), (0, modernExtend_1.battery)({ percentageReporting: false })],
1874
1873
  exposes: [
1875
- e.water_leak().withDescription('Droplet detection (raining)'),
1876
1874
  e.illuminance().withUnit('lx'),
1877
1875
  e.numeric('illuminance_average_20min', ea.STATE).withUnit('lx').withDescription('Illuminance average for the last 20 minutes'),
1878
1876
  e.numeric('illuminance_maximum_today', ea.STATE).withUnit('lx').withDescription('Illuminance maximum for the last 24 hours'),
1879
1877
  e.binary('cleaning_reminder', ea.STATE, 'ON', 'OFF').withDescription('Cleaning reminder'),
1880
1878
  e.numeric('rain_intensity', ea.STATE).withUnit('mV').withDescription('Rainfall intensity'),
1881
- e.battery(),
1882
1879
  ],
1883
1880
  meta: {
1884
1881
  tuyaDatapoints: [
@@ -2935,6 +2932,7 @@ const definitions = [
2935
2932
  '_TZ3210_xwqng7ol',
2936
2933
  '_TZB210_lmqquxus',
2937
2934
  ]),
2935
+ tuya.whitelabel('MiBoxer', 'E2-ZR', '2 in 1 LED controller', ['_TZB210_ayx58ft5']),
2938
2936
  tuya.whitelabel('Lidl', '14156408L', 'Livarno Lux smart LED ceiling light', ['_TZ3210_c2iwpxf1']),
2939
2937
  ],
2940
2938
  extend: [tuya.modernExtend.tuyaLight({ colorTemp: { range: [153, 500] }, configureReporting: true })],
@@ -3183,7 +3181,15 @@ const definitions = [
3183
3181
  */
3184
3182
  },
3185
3183
  {
3186
- fingerprint: tuya.fingerprint('TS004F', ['_TZ3000_nuombroo', '_TZ3000_xabckq1v', '_TZ3000_czuyt8lz', '_TZ3000_0ht8dnxj', '_TZ3000_b3mgfu0d']),
3184
+ fingerprint: tuya.fingerprint('TS004F', [
3185
+ '_TZ3000_nuombroo',
3186
+ '_TZ3000_xabckq1v',
3187
+ '_TZ3000_czuyt8lz',
3188
+ '_TZ3000_0ht8dnxj',
3189
+ '_TZ3000_b3mgfu0d',
3190
+ '_TZ3000_11pg3ima',
3191
+ '_TZ3000_et7afzxz',
3192
+ ]),
3187
3193
  model: 'TS004F',
3188
3194
  vendor: 'Tuya',
3189
3195
  description: 'Wireless switch with 4 buttons',
@@ -3199,6 +3205,9 @@ const definitions = [
3199
3205
  'brightness_step_down',
3200
3206
  'brightness_move_up',
3201
3207
  'brightness_move_down',
3208
+ 'color_temperature_step_up',
3209
+ 'color_temperature_step_down',
3210
+ 'brightness_stop',
3202
3211
  '1_single',
3203
3212
  '1_double',
3204
3213
  '1_hold',
@@ -3213,7 +3222,18 @@ const definitions = [
3213
3222
  '4_hold',
3214
3223
  ]),
3215
3224
  ],
3216
- fromZigbee: [fromZigbee_1.default.battery, tuya.fz.on_off_action, fromZigbee_1.default.tuya_operation_mode, fromZigbee_1.default.command_on, fromZigbee_1.default.command_off, fromZigbee_1.default.command_step, fromZigbee_1.default.command_move],
3225
+ fromZigbee: [
3226
+ fromZigbee_1.default.battery,
3227
+ tuya.fz.on_off_action,
3228
+ fromZigbee_1.default.tuya_operation_mode,
3229
+ fromZigbee_1.default.command_on,
3230
+ fromZigbee_1.default.command_off,
3231
+ fromZigbee_1.default.command_step,
3232
+ fromZigbee_1.default.command_move,
3233
+ fromZigbee_1.default.command_stop,
3234
+ fromZigbee_1.default.command_step_color_temperature,
3235
+ ],
3236
+ whiteLabel: [tuya.whitelabel('Zemismart', 'ZMR4', 'Wireless switch with 4 buttons', ['_TZ3000_11pg3ima', '_TZ3000_et7afzxz'])],
3217
3237
  toZigbee: [toZigbee_1.default.tuya_operation_mode],
3218
3238
  configure: async (device, coordinatorEndpoint) => {
3219
3239
  const endpoint = device.getEndpoint(1);
@@ -4275,7 +4295,7 @@ const definitions = [
4275
4295
  configure: tuya.configureMagicPacket,
4276
4296
  exposes: [
4277
4297
  e.battery(),
4278
- e.cover_position(),
4298
+ e.cover_position().setAccess('position', ea.STATE_SET),
4279
4299
  e.enum('reverse_direction', ea.STATE_SET, ['forward', 'back']).withDescription('Reverse the motor direction'),
4280
4300
  e.enum('border', ea.STATE_SET, ['up', 'down', 'up_delete', 'down_delete', 'remove_top_bottom']),
4281
4301
  e.enum('click_control', ea.STATE_SET, ['up', 'down']).withDescription('Single motor steps'),
@@ -8418,7 +8438,7 @@ const definitions = [
8418
8438
  fromZigbee: [tuya.fz.datapoints],
8419
8439
  toZigbee: [tuya.tz.datapoints],
8420
8440
  exposes: [
8421
- e.cover_position(),
8441
+ e.cover_position().setAccess('position', ea.STATE_SET),
8422
8442
  e.enum('calibration', ea.STATE_SET, ['START', 'END']).withDescription('Calibration'),
8423
8443
  e.binary('backlight_mode', ea.STATE_SET, 'ON', 'OFF').withDescription('Backlight'),
8424
8444
  e.enum('motor_steering', ea.STATE_SET, ['FORWARD', 'BACKWARD']).withDescription('Motor Steering'),
@@ -8469,7 +8489,7 @@ const definitions = [
8469
8489
  fromZigbee: [tuya.fz.datapoints],
8470
8490
  toZigbee: [tuya.tz.datapoints],
8471
8491
  exposes: [
8472
- e.cover_position(),
8492
+ e.cover_position().setAccess('position', ea.STATE_SET),
8473
8493
  tuya.exposes.switch().withEndpoint('l1'),
8474
8494
  e.enum('calibration', ea.STATE_SET, ['START', 'END']).withDescription('Calibration'),
8475
8495
  e.binary('backlight_mode', ea.STATE_SET, 'ON', 'OFF').withDescription('Backlight'),