zigbee-herdsman-converters 25.88.0 → 25.89.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.
@@ -2040,58 +2040,67 @@ exports.definitions = [
2040
2040
  timeStart: "1970",
2041
2041
  }),
2042
2042
  ],
2043
- exposes: [
2044
- e.temperature(),
2045
- e.humidity(),
2046
- e.battery(),
2047
- e.enum("temperature_unit", ea.STATE_SET, ["celsius", "fahrenheit"]).withDescription("Temperature unit"),
2048
- e
2049
- .numeric("max_temperature_alarm", ea.STATE_SET)
2050
- .withUnit("°C")
2051
- .withValueMin(-20)
2052
- .withValueMax(60)
2053
- .withDescription("Alarm temperature max"),
2054
- e
2055
- .numeric("min_temperature_alarm", ea.STATE_SET)
2056
- .withUnit("°C")
2057
- .withValueMin(-20)
2058
- .withValueMax(60)
2059
- .withDescription("Alarm temperature min"),
2060
- e.numeric("max_humidity_alarm", ea.STATE_SET).withUnit("%").withValueMin(0).withValueMax(100).withDescription("Alarm humidity max"),
2061
- e.numeric("min_humidity_alarm", ea.STATE_SET).withUnit("%").withValueMin(0).withValueMax(100).withDescription("Alarm humidity min"),
2062
- e.enum("temperature_alarm", ea.STATE, ["lower_alarm", "upper_alarm", "cancel"]).withDescription("Temperature alarm"),
2063
- e.enum("humidity_alarm", ea.STATE, ["lower_alarm", "upper_alarm", "cancel"]).withDescription("Humidity alarm"),
2064
- e
2065
- .numeric("temperature_periodic_report", ea.STATE_SET)
2066
- .withUnit("min")
2067
- .withValueMin(1)
2068
- .withValueMax(120)
2069
- .withDescription("Temp periodic report"),
2070
- e
2071
- .numeric("humidity_periodic_report", ea.STATE_SET)
2072
- .withUnit("min")
2073
- .withValueMin(1)
2074
- .withValueMax(120)
2075
- .withDescription("Humidity periodic report"),
2076
- e
2077
- .numeric("temperature_sensitivity", ea.STATE_SET)
2078
- .withUnit("°C")
2079
- .withValueMin(0.3)
2080
- .withValueMax(1)
2081
- .withValueStep(0.1)
2082
- .withDescription("Sensitivity of temperature"),
2083
- e
2084
- .numeric("humidity_sensitivity", ea.STATE_SET)
2085
- .withUnit("%")
2086
- .withValueMin(3)
2087
- .withValueMax(10)
2088
- .withValueStep(1)
2089
- .withDescription("Sensitivity of humidity"),
2090
- ],
2043
+ exposes: (device, options) => {
2044
+ const exps = [
2045
+ e.temperature(),
2046
+ e.humidity(),
2047
+ e.enum("temperature_unit", ea.STATE_SET, ["celsius", "fahrenheit"]).withDescription("Temperature unit"),
2048
+ e
2049
+ .numeric("max_temperature_alarm", ea.STATE_SET)
2050
+ .withUnit("°C")
2051
+ .withValueMin(-20)
2052
+ .withValueMax(60)
2053
+ .withDescription("Alarm temperature max"),
2054
+ e
2055
+ .numeric("min_temperature_alarm", ea.STATE_SET)
2056
+ .withUnit("°C")
2057
+ .withValueMin(-20)
2058
+ .withValueMax(60)
2059
+ .withDescription("Alarm temperature min"),
2060
+ e.numeric("max_humidity_alarm", ea.STATE_SET).withUnit("%").withValueMin(0).withValueMax(100).withDescription("Alarm humidity max"),
2061
+ e.numeric("min_humidity_alarm", ea.STATE_SET).withUnit("%").withValueMin(0).withValueMax(100).withDescription("Alarm humidity min"),
2062
+ e.enum("temperature_alarm", ea.STATE, ["lower_alarm", "upper_alarm", "cancel"]).withDescription("Temperature alarm"),
2063
+ e.enum("humidity_alarm", ea.STATE, ["lower_alarm", "upper_alarm", "cancel"]).withDescription("Humidity alarm"),
2064
+ e
2065
+ .numeric("temperature_periodic_report", ea.STATE_SET)
2066
+ .withUnit("min")
2067
+ .withValueMin(1)
2068
+ .withValueMax(120)
2069
+ .withDescription("Temp periodic report"),
2070
+ e
2071
+ .numeric("humidity_periodic_report", ea.STATE_SET)
2072
+ .withUnit("min")
2073
+ .withValueMin(1)
2074
+ .withValueMax(120)
2075
+ .withDescription("Humidity periodic report"),
2076
+ e
2077
+ .numeric("temperature_sensitivity", ea.STATE_SET)
2078
+ .withUnit("°C")
2079
+ .withValueMin(0.3)
2080
+ .withValueMax(1)
2081
+ .withValueStep(0.1)
2082
+ .withDescription("Sensitivity of temperature"),
2083
+ e
2084
+ .numeric("humidity_sensitivity", ea.STATE_SET)
2085
+ .withUnit("%")
2086
+ .withValueMin(3)
2087
+ .withValueMax(10)
2088
+ .withValueStep(1)
2089
+ .withDescription("Sensitivity of humidity"),
2090
+ ];
2091
+ if (device && device.manufacturerName === "_TZE284_cwyqwqbf") {
2092
+ exps.push(tuya.exposes.batteryState());
2093
+ }
2094
+ else {
2095
+ exps.push(e.battery());
2096
+ }
2097
+ return exps;
2098
+ },
2091
2099
  meta: {
2092
2100
  tuyaDatapoints: [
2093
2101
  [1, "temperature", tuya.valueConverter.divideBy10],
2094
2102
  [2, "humidity", tuya.valueConverter.raw],
2103
+ [3, "battery_state", tuya.valueConverter.batteryState],
2095
2104
  [4, "battery", tuya.valueConverter.raw],
2096
2105
  [9, "temperature_unit", tuya.valueConverter.temperatureUnitEnum],
2097
2106
  [10, "max_temperature_alarm", tuya.valueConverter.divideBy10],
@@ -2677,6 +2686,7 @@ exports.definitions = [
2677
2686
  ]),
2678
2687
  tuya.whitelabel("MiBoxer", "FUTC11ZR", "Outdoor light", ["_TZB210_zmppwawa"]),
2679
2688
  tuya.whitelabel("TechToy", "_TZ3210_iw0zkcu8", "Smart bulb RGB 9W E27", ["_TZ3210_iw0zkcu8"]),
2689
+ tuya.whitelabel("LUUMR", "10010128", "Smart LED, GU10, 4,7W, RGBW, CCT, Tuya, WLAN, mat", ["_TZ3210_sw9uxoea"]),
2680
2690
  ],
2681
2691
  extend: [
2682
2692
  tuya.modernExtend.tuyaLight({
@@ -3595,7 +3605,7 @@ exports.definitions = [
3595
3605
  ],
3596
3606
  },
3597
3607
  {
3598
- fingerprint: tuya.fingerprint("TS0601", ["_TZE204_dcnsggvz"]),
3608
+ fingerprint: tuya.fingerprint("TS0601", ["_TZE204_dcnsggvz", "_TZE200_dcnsggv"]),
3599
3609
  model: "TS0601_dimmer_5",
3600
3610
  vendor: "Tuya",
3601
3611
  description: "1 gang smart dimmer module",