zigbee-herdsman-converters 21.24.0 → 21.26.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/converters/toZigbee.d.ts.map +1 -1
  3. package/converters/toZigbee.js +29 -14
  4. package/converters/toZigbee.js.map +1 -1
  5. package/devices/avatto.d.ts.map +1 -1
  6. package/devices/avatto.js +150 -0
  7. package/devices/avatto.js.map +1 -1
  8. package/devices/direct_signs.d.ts +4 -0
  9. package/devices/direct_signs.d.ts.map +1 -0
  10. package/devices/direct_signs.js +48 -0
  11. package/devices/direct_signs.js.map +1 -0
  12. package/devices/index.d.ts.map +1 -1
  13. package/devices/index.js +4 -0
  14. package/devices/index.js.map +1 -1
  15. package/devices/legrand.js +1 -1
  16. package/devices/legrand.js.map +1 -1
  17. package/devices/moes.js +3 -3
  18. package/devices/moes.js.map +1 -1
  19. package/devices/niko.d.ts.map +1 -1
  20. package/devices/niko.js +193 -55
  21. package/devices/niko.js.map +1 -1
  22. package/devices/simon.d.ts +4 -0
  23. package/devices/simon.d.ts.map +1 -0
  24. package/devices/simon.js +15 -0
  25. package/devices/simon.js.map +1 -0
  26. package/devices/smartthings.js +4 -4
  27. package/devices/smartthings.js.map +1 -1
  28. package/devices/smartwings.d.ts.map +1 -1
  29. package/devices/smartwings.js +13 -1
  30. package/devices/smartwings.js.map +1 -1
  31. package/devices/sonoff.d.ts.map +1 -1
  32. package/devices/sonoff.js +93 -1
  33. package/devices/sonoff.js.map +1 -1
  34. package/devices/tuya.d.ts.map +1 -1
  35. package/devices/tuya.js +60 -23
  36. package/devices/tuya.js.map +1 -1
  37. package/devices/ubisys.d.ts.map +1 -1
  38. package/devices/ubisys.js +39 -128
  39. package/devices/ubisys.js.map +1 -1
  40. package/lib/exposes.d.ts +2 -1
  41. package/lib/exposes.d.ts.map +1 -1
  42. package/lib/exposes.js +3 -4
  43. package/lib/exposes.js.map +1 -1
  44. package/lib/tuya.d.ts +22 -8
  45. package/lib/tuya.d.ts.map +1 -1
  46. package/lib/tuya.js +15 -40
  47. package/lib/tuya.js.map +1 -1
  48. package/package.json +8 -8
package/devices/tuya.js CHANGED
@@ -1157,26 +1157,26 @@ const definitions = [
1157
1157
  .withDescription('Alarm temperature min'),
1158
1158
  e.numeric('max_humidity_alarm', ea.STATE_SET).withUnit('%').withValueMin(0).withValueMax(100).withDescription('Alarm humidity max'),
1159
1159
  e.numeric('min_humidity_alarm', ea.STATE_SET).withUnit('%').withValueMin(0).withValueMax(100).withDescription('Alarm humidity min'),
1160
- e.enum('temperature_alarm', ea.STATE_SET, ['lower_alarm', 'upper_alarm', 'cancel']).withDescription('Temperature alarm'),
1161
- e.enum('humidity_alarm', ea.STATE_SET, ['lower_alarm', 'upper_alarm', 'cancel']).withDescription('Humidity alarm'),
1160
+ e.enum('temperature_alarm', ea.STATE, ['lower_alarm', 'upper_alarm', 'cancel']).withDescription('Temperature alarm'),
1161
+ e.enum('humidity_alarm', ea.STATE, ['lower_alarm', 'upper_alarm', 'cancel']).withDescription('Humidity alarm'),
1162
1162
  e
1163
1163
  .numeric('temperature_periodic_report', ea.STATE_SET)
1164
- .withUnit('%')
1165
- .withValueMin(0)
1166
- .withValueMax(100)
1164
+ .withUnit('min')
1165
+ .withValueMin(1)
1166
+ .withValueMax(120)
1167
1167
  .withDescription('Temp periodic report'),
1168
1168
  e
1169
1169
  .numeric('humidity_periodic_report', ea.STATE_SET)
1170
- .withUnit('%')
1171
- .withValueMin(0)
1172
- .withValueMax(100)
1170
+ .withUnit('min')
1171
+ .withValueMin(1)
1172
+ .withValueMax(120)
1173
1173
  .withDescription('Humidity periodic report'),
1174
1174
  e
1175
1175
  .numeric('temperature_sensitivity', ea.STATE_SET)
1176
1176
  .withUnit('°C')
1177
- .withValueMin(3)
1178
- .withValueMax(10)
1179
- .withValueStep(1)
1177
+ .withValueMin(0.3)
1178
+ .withValueMax(1)
1179
+ .withValueStep(0.1)
1180
1180
  .withDescription('Sensitivity of temperature'),
1181
1181
  e
1182
1182
  .numeric('humidity_sensitivity', ea.STATE_SET)
@@ -1204,10 +1204,11 @@ const definitions = [
1204
1204
  [15, 'humidity_alarm', tuya.valueConverterBasic.lookup({ lower_alarm: tuya.enum(0), upper_alarm: tuya.enum(1), cancel: tuya.enum(2) })],
1205
1205
  [17, 'temperature_periodic_report', tuya.valueConverter.raw],
1206
1206
  [18, 'humidity_periodic_report', tuya.valueConverter.raw],
1207
- [19, 'temperature_sensitivity', tuya.valueConverter.raw],
1207
+ [19, 'temperature_sensitivity', tuya.valueConverter.divideBy10],
1208
1208
  [20, 'humidity_sensitivity', tuya.valueConverter.raw],
1209
1209
  ],
1210
1210
  },
1211
+ whiteLabel: [tuya.whitelabel('ONENUO', 'TH05Z', 'Temperature & humidity sensor with clock and humidity display', ['_TZE200_vvmbj46n'])],
1211
1212
  },
1212
1213
  {
1213
1214
  fingerprint: tuya.fingerprint('TS0601', ['_TZE200_nvups4nh']),
@@ -1578,10 +1579,10 @@ const definitions = [
1578
1579
  tuya.whitelabel('Lidl', '14158704L', 'Livarno Home LED floor lamp, RGBW', ['_TZ3210_z1vlyufu']),
1579
1580
  tuya.whitelabel('Lidl', '14158804L', 'Livarno Home LED desk lamp RGBW', ['_TZ3210_hxtfthp5']),
1580
1581
  tuya.whitelabel('Lidl', 'HG07834A/HG09155A/HG08131A', 'Livarno Home GU10 spot RGB+CCT', ['_TZ3000_quqaeew6']),
1581
- tuya.whitelabel('Lidl', 'HG07834B/HG08131B', 'Livarno Home E14 candle RGB+CCT', ['_TZ3000_th6zqqy6']),
1582
+ tuya.whitelabel('Lidl', 'HG07834B/HG09155B/HG08131B', 'Livarno Home E14 candle RGB+CCT', ['_TZ3000_th6zqqy6']),
1582
1583
  tuya.whitelabel('Lidl', 'HG07834B', 'Livarno Home E14 candle RGB+CCT', ['_TZ3000_wr6g6olr']),
1583
1584
  tuya.whitelabel('Lidl', 'HG08131C', 'Livarno Home outdoor E27 bulb in set with flare', ['_TZ3000_q50zhdsc']),
1584
- tuya.whitelabel('Lidl', 'HG07834C/HG08131C', 'Livarno Home E27 bulb RGB+CCT', ['_TZ3000_qd7hej8u']),
1585
+ tuya.whitelabel('Lidl', 'HG07834C/HG09155C/HG08131C', 'Livarno Home E27 bulb RGB+CCT', ['_TZ3000_qd7hej8u']),
1585
1586
  tuya.whitelabel('MiBoxer', 'FUT037Z+', 'RGB led controller', ['_TZB210_417ikxay', '_TZB210_wxazcmsh']),
1586
1587
  tuya.whitelabel('Lidl', 'HG08383B', 'Livarno outdoor LED light chain', ['_TZ3000_bwlvyjwk']),
1587
1588
  tuya.whitelabel('Lidl', 'HG08383A', 'Livarno outdoor LED light chain', ['_TZ3000_taspddvq']),
@@ -4528,7 +4529,7 @@ const definitions = [
4528
4529
  .numeric('boost_timeset_countdown', ea.STATE_SET)
4529
4530
  .withUnit('s')
4530
4531
  .withDescription('Setting ' +
4531
- 'minimum 0 - maximum 465 seconds boost time. The boost (♨) function is activated. The remaining ' +
4532
+ 'minimum 0 - maximum 465 seconds boost time. The boost () function is activated. The remaining ' +
4532
4533
  'time for the function will be counted down in seconds ( 465 to 0 ).')
4533
4534
  .withValueMin(0)
4534
4535
  .withValueMax(465),
@@ -4657,7 +4658,6 @@ const definitions = [
4657
4658
  '_TZE200_jkfbph7l' /* model: 'ME167', vendor: 'AVATTO' */,
4658
4659
  '_TZE200_p3dbf6qs' /* model: 'ME168', vendor: 'AVATTO' */,
4659
4660
  '_TZE200_rxntag7i' /* model: 'ME168', vendor: 'AVATTO' */,
4660
- '_TZE200_ybsqljjg' /* model: 'ME168', vendor: 'AVATTO' */,
4661
4661
  '_TZE200_yqgbrdyo',
4662
4662
  '_TZE284_p3dbf6qs',
4663
4663
  '_TZE200_rxq4iti9',
@@ -4679,7 +4679,7 @@ const definitions = [
4679
4679
  '_TZE200_9xfjixap',
4680
4680
  '_TZE200_jkfbph7l',
4681
4681
  ]),
4682
- tuya.whitelabel('AVATTO', 'ME168', 'Thermostatic radiator valve', ['_TZE200_rxntag7i', '_TZE200_ybsqljjg']),
4682
+ tuya.whitelabel('AVATTO', 'ME168_1', 'Thermostatic radiator valve', ['_TZE200_rxntag7i']),
4683
4683
  tuya.whitelabel('AVATTO', 'TRV06_1', 'Thermostatic radiator valve', ['_TZE200_hvaxb2tc', '_TZE284_o3x45p96']),
4684
4684
  tuya.whitelabel('EARU', 'TRV06', 'Smart thermostat module', ['_TZE200_yqgbrdyo', '_TZE200_rxq4iti9']),
4685
4685
  tuya.whitelabel('AVATTO', 'AVATTO_TRV06', 'Thermostatic radiator valve', ['_TZE284_c6wv4xyo', '_TZE204_o3x45p96']),
@@ -4950,9 +4950,10 @@ const definitions = [
4950
4950
  },
4951
4951
  },
4952
4952
  {
4953
- fingerprint: tuya.fingerprint('TS0601', ['_TZE204_rtrmfadk']),
4953
+ fingerprint: tuya.fingerprint('TS0601', ['_TZE204_rtrmfadk', '_TZE204_cvcu2p6e']),
4954
4954
  model: 'TRV601',
4955
4955
  vendor: 'Tuya',
4956
+ whiteLabel: [tuya.whitelabel('Sber', 'SBDV-00185', 'Thermostatic radiator valve', ['_TZE204_cvcu2p6e'])],
4956
4957
  description: 'Thermostatic radiator valve.',
4957
4958
  onEvent: tuya.onEventSetLocalTime,
4958
4959
  fromZigbee: [tuya.fz.datapoints],
@@ -10800,8 +10801,8 @@ const definitions = [
10800
10801
  e.numeric('distance', ea.STATE).withDescription('Target distance'),
10801
10802
  e.binary('find_switch', ea.STATE_SET, 'ON', 'OFF').withDescription('distance switch'),
10802
10803
  e.illuminance().withDescription('Illuminance sensor'),
10803
- e.numeric('move_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(10).withValueStep(1).withDescription('Motion Sensitivity'),
10804
- e.numeric('presence_sensitivity', ea.STATE_SET).withValueMin(0).withValueMax(10).withValueStep(1).withDescription('Presence Sensitivity'),
10804
+ e.numeric('move_sensitivity', ea.STATE_SET).withValueMin(1).withValueMax(10).withValueStep(1).withDescription('Motion Sensitivity'),
10805
+ e.numeric('presence_sensitivity', ea.STATE_SET).withValueMin(1).withValueMax(10).withValueStep(1).withDescription('Presence Sensitivity'),
10805
10806
  e
10806
10807
  .numeric('detection_distance_min', ea.STATE_SET)
10807
10808
  .withValueMin(0)
@@ -13115,9 +13116,45 @@ const definitions = [
13115
13116
  ],
13116
13117
  meta: {
13117
13118
  tuyaDatapoints: [
13118
- [2, null, tuya.valueConverter.thermostatGtz10SystemModeAndPreset(null)],
13119
- [2, 'preset', tuya.valueConverter.thermostatGtz10SystemModeAndPreset('preset')],
13120
- [2, 'system_mode', tuya.valueConverter.thermostatGtz10SystemModeAndPreset('system_mode')],
13119
+ [
13120
+ 2,
13121
+ null,
13122
+ tuya.valueConverter.thermostatSystemModeAndPresetMap({
13123
+ fromMap: {
13124
+ 0: { device_mode: 'manual', system_mode: 'heat', preset: 'manual' },
13125
+ 1: { device_mode: 'auto', system_mode: 'auto', preset: 'auto' },
13126
+ 2: { device_mode: 'holiday', system_mode: 'heat', preset: 'holiday' },
13127
+ 3: { device_mode: 'comfort', system_mode: 'heat', preset: 'comfort' },
13128
+ 4: { device_mode: 'eco', system_mode: 'heat', preset: 'eco' },
13129
+ 5: { device_mode: 'off', system_mode: 'off', preset: 'off' },
13130
+ },
13131
+ }),
13132
+ ],
13133
+ [
13134
+ 2,
13135
+ 'preset',
13136
+ tuya.valueConverter.thermostatSystemModeAndPresetMap({
13137
+ toMap: {
13138
+ manual: new tuya.Enum(0),
13139
+ auto: new tuya.Enum(1),
13140
+ holiday: new tuya.Enum(2),
13141
+ comfort: new tuya.Enum(3),
13142
+ eco: new tuya.Enum(4),
13143
+ off: new tuya.Enum(5),
13144
+ },
13145
+ }),
13146
+ ],
13147
+ [
13148
+ 2,
13149
+ 'system_mode',
13150
+ tuya.valueConverter.thermostatSystemModeAndPresetMap({
13151
+ toMap: {
13152
+ heat: new tuya.Enum(0),
13153
+ auto: new tuya.Enum(1),
13154
+ off: new tuya.Enum(5),
13155
+ },
13156
+ }),
13157
+ ],
13121
13158
  [4, 'current_heating_setpoint', tuya.valueConverter.divideBy10],
13122
13159
  [5, 'local_temperature', tuya.valueConverter.divideBy10],
13123
13160
  [6, 'battery', tuya.valueConverter.raw],