zigbee-herdsman-converters 23.30.0 → 23.32.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.
@@ -1077,6 +1077,7 @@ exports.definitions = [
1077
1077
  "_TZE204_jygvp6fk",
1078
1078
  "_TZE204_cirvgep4",
1079
1079
  "_TZE284_yjjdcqsq",
1080
+ "_TZE284_hdyjyqjm",
1080
1081
  ]),
1081
1082
  model: "TS0601_temperature_humidity_sensor_2",
1082
1083
  vendor: "Tuya",
@@ -1104,7 +1105,7 @@ exports.definitions = [
1104
1105
  tuya.whitelabel("Tuya", "ZTH02", "Temperature and humidity sensor", ["_TZE200_9yapgbuv", "_TZE204_9yapgbuv"]),
1105
1106
  tuya.whitelabel("Tuya", "ZTH05", "Temperature and humidity sensor", ["_TZE204_upagmta9", "_TZE200_upagmta9"]),
1106
1107
  tuya.whitelabel("Tuya", "ZTH08-E", "Temperature and humidity sensor", ["_TZE200_cirvgep4", "_TZE204_cirvgep4"]),
1107
- tuya.whitelabel("Tuya", "ZTH08", "Temperature and humidity sensor", ["_TZE204_d7lpruvi", "_TZE204_d7lpruvi"]),
1108
+ tuya.whitelabel("Tuya", "ZTH08", "Temperature and humidity sensor", ["_TZE204_d7lpruvi", "_TZE204_d7lpruvi", "_TZE284_hdyjyqjm"]),
1108
1109
  ],
1109
1110
  },
1110
1111
  {
@@ -1548,7 +1549,7 @@ exports.definitions = [
1548
1549
  },
1549
1550
  },
1550
1551
  {
1551
- zigbeeModel: ["CK-BL702-AL-01(7009_Z102LG03-1)", "CK-BL702-AL-01(7009_Z102LG04-2)"],
1552
+ zigbeeModel: ["CK-BL702-AL-01(7009_Z102LG03-1)", "CK-BL702-AL-01(7009_Z102LG04-1)", "CK-BL702-AL-01(7009_Z102LG04-2)"],
1552
1553
  model: "CK-BL702-AL-01",
1553
1554
  vendor: "Tuya",
1554
1555
  description: "Zigbee LED bulb",
@@ -2204,6 +2205,7 @@ exports.definitions = [
2204
2205
  "_TZE204_vevc4c6g",
2205
2206
  "_TZE200_0nauxa0p",
2206
2207
  "_TZE200_ykgar0ow",
2208
+ "_TZE200_0hb4rdnp",
2207
2209
  ]),
2208
2210
  model: "TS0601_dimmer_1_gang_1",
2209
2211
  vendor: "Tuya",
@@ -2217,7 +2219,7 @@ exports.definitions = [
2217
2219
  tuya.exposes.countdown(),
2218
2220
  e.power_on_behavior().withAccess(ea.STATE_SET),
2219
2221
  ];
2220
- if (!device || !["_TZE200_ykgar0ow"].includes(device.manufacturerName)) {
2222
+ if (!device || !["_TZE200_ykgar0ow", "_TZE200_0hb4rdnp"].includes(device.manufacturerName)) {
2221
2223
  exps.push(tuya.exposes.lightType(), tuya.exposes.backlightModeOffNormalInverted().withAccess(ea.STATE_SET));
2222
2224
  }
2223
2225
  return exps;
@@ -2251,6 +2253,7 @@ exports.definitions = [
2251
2253
  tuya.whitelabel("Mercator Ikuü", "SSWRM-ZB", "Rotary dimmer mechanism", ["_TZE200_a0syesf5"]),
2252
2254
  tuya.whitelabel("Lonsonho", "EDM-1ZBB-EU", "Smart Dimmer Switch", ["_TZE200_0nauxa0p"]),
2253
2255
  tuya.whitelabel("ION Industries", "ID200W-ZIGB", "LED Zigbee Dimmer", ["_TZE200_ykgar0ow"]),
2256
+ tuya.whitelabel("ION Industries", "90.500.090", "Zigbee Dimmer Master/Slave set", ["_TZE200_0hb4rdnp"]),
2254
2257
  ],
2255
2258
  },
2256
2259
  {
@@ -3845,11 +3848,21 @@ exports.definitions = [
3845
3848
  configure: async (device, coordinatorEndpoint) => {
3846
3849
  await tuya.configureMagicPacket(device, coordinatorEndpoint);
3847
3850
  const endpoint = device.getEndpoint(1);
3848
- await reporting.bind(endpoint, coordinatorEndpoint, ["genOnOff", "haElectricalMeasurement", "seMetering"]);
3849
- await reporting.rmsVoltage(endpoint, { change: 5 });
3850
- await reporting.rmsCurrent(endpoint, { change: 50 });
3851
- await reporting.activePower(endpoint, { change: 10 });
3852
- await reporting.currentSummDelivered(endpoint);
3851
+ /*
3852
+ https://github.com/Koenkk/zigbee2mqtt/issues/27090
3853
+ INVALID_DATA_TYPE error for _TZ3000_xkap8wtb, appVersion:162 softwareBuildID: 0122052017
3854
+ */
3855
+ if ("_TZ3000_xkap8wtb" === device.manufacturerName && 162 === device.applicationVersion) {
3856
+ logger_1.logger.warning("Detected TS0001 _TZ3000_xkap8wtb switch appVersion:162. Skip reporting for haElectricalMeasurement and seMeteringreporting", NS);
3857
+ await reporting.bind(endpoint, coordinatorEndpoint, ["genOnOff"]);
3858
+ }
3859
+ else {
3860
+ await reporting.bind(endpoint, coordinatorEndpoint, ["genOnOff", "haElectricalMeasurement", "seMetering"]);
3861
+ await reporting.rmsVoltage(endpoint, { change: 5 });
3862
+ await reporting.rmsCurrent(endpoint, { change: 50 });
3863
+ await reporting.activePower(endpoint, { change: 10 });
3864
+ await reporting.currentSummDelivered(endpoint);
3865
+ }
3853
3866
  endpoint.saveClusterAttributeKeyValue("haElectricalMeasurement", {
3854
3867
  acCurrentDivisor: 1000,
3855
3868
  acCurrentMultiplier: 1,
@@ -8698,8 +8711,13 @@ exports.definitions = [
8698
8711
  model: "ZG-101Z/D",
8699
8712
  vendor: "Tuya",
8700
8713
  description: "Smart knob",
8701
- fromZigbee: [fz.tuya_multi_action, fz.battery],
8702
- exposes: [e.action(["rotate_left", "rotate_right"])],
8714
+ fromZigbee: [fz.tuya_multi_action, fz.battery, fz.tuya_operation_mode],
8715
+ exposes: [
8716
+ e.action(["rotate_left", "rotate_right"]),
8717
+ e
8718
+ .enum("operation_mode", ea.ALL, ["command", "event"])
8719
+ .withDescription('Operation mode: "command" - for group control, "event" - for clicks'),
8720
+ ],
8703
8721
  extend: [m.battery(), tuya.modernExtend.tuyaMagicPacket()],
8704
8722
  },
8705
8723
  {
@@ -16669,5 +16687,62 @@ exports.definitions = [
16669
16687
  ],
16670
16688
  },
16671
16689
  },
16690
+ {
16691
+ fingerprint: tuya.fingerprint("TS0601", ["_TZE200_1drr8tab"]),
16692
+ model: "XZ-AKT101",
16693
+ vendor: "Tuya",
16694
+ description: "Intelligent air conditioning wall switch",
16695
+ fromZigbee: [tuya.fz.datapoints],
16696
+ toZigbee: [tuya.tz.datapoints],
16697
+ onEvent: tuya.onEventSetTime,
16698
+ configure: tuya.configureMagicPacket,
16699
+ ota: true,
16700
+ exposes: [
16701
+ e.binary("air_switch", ea.STATE_SET, true, false),
16702
+ e.child_lock(),
16703
+ e
16704
+ .climate()
16705
+ .withLocalTemperature(ea.STATE)
16706
+ .withSetpoint("current_heating_setpoint", 20, 30, 0.5, ea.STATE_SET)
16707
+ .withSystemMode(["cool", "heat", "fan_only"], ea.STATE_SET, "Only for Homeassistant")
16708
+ .withFanMode(["low", "medium", "high", "auto"]),
16709
+ e
16710
+ .numeric("boost_time", ea.STATE_SET)
16711
+ .withUnit("H")
16712
+ .withDescription("Boost running time. Minimum 0 - maximum 24 hours")
16713
+ .withValueMin(0)
16714
+ .withValueMax(24)
16715
+ .withValueStep(0.5)
16716
+ .withCategory("config"),
16717
+ ],
16718
+ meta: {
16719
+ tuyaDatapoints: [
16720
+ [1, "air_switch", tuya.valueConverter.raw],
16721
+ [
16722
+ 2,
16723
+ "system_mode",
16724
+ tuya.valueConverterBasic.lookup({
16725
+ heat: tuya.enum(1),
16726
+ cool: tuya.enum(0),
16727
+ fan_only: tuya.enum(2),
16728
+ }),
16729
+ ],
16730
+ [
16731
+ 28,
16732
+ "fan_mode",
16733
+ tuya.valueConverterBasic.lookup({
16734
+ low: tuya.enum(0),
16735
+ medium: tuya.enum(1),
16736
+ high: tuya.enum(2),
16737
+ auto: tuya.enum(3),
16738
+ }),
16739
+ ],
16740
+ [16, "current_heating_setpoint", tuya.valueConverter.divideBy10],
16741
+ [24, "local_temperature", tuya.valueConverter.divideBy10],
16742
+ [40, "child_lock", tuya.valueConverter.lockUnlock],
16743
+ [101, "boost_time", tuya.valueConverter.divideBy10],
16744
+ ],
16745
+ },
16746
+ },
16672
16747
  ];
16673
16748
  //# sourceMappingURL=tuya.js.map