zigbee-herdsman-converters 25.80.0 → 25.81.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.
@@ -1 +1 @@
1
- {"version":3,"file":"tuya.d.ts","sourceRoot":"","sources":["../../src/devices/tuya.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAC,oBAAoB,EAA4D,MAAM,cAAc,CAAC;AAmhClH,eAAO,MAAM,WAAW,EAAE,oBAAoB,EA2uoB7C,CAAC"}
1
+ {"version":3,"file":"tuya.d.ts","sourceRoot":"","sources":["../../src/devices/tuya.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAC,oBAAoB,EAA4D,MAAM,cAAc,CAAC;AAmhClH,eAAO,MAAM,WAAW,EAAE,oBAAoB,EAgvoB7C,CAAC"}
@@ -755,7 +755,7 @@ const tzLocal = {
755
755
  const lookup = { red_when_on: 0, pink_when_on: 1, red_on_blue_off: 2, pink_on_blue_off: 3 };
756
756
  const modeValue = utils.getFromLookup(value, lookup);
757
757
  await entity.write("genOnOff", { tuyaBacklightMode: modeValue });
758
- return { state: { backlight_mode: utils.getFromLookup(modeValue, lookup) } };
758
+ return { state: { backlight_mode: value } };
759
759
  },
760
760
  },
761
761
  };
@@ -2290,11 +2290,10 @@ exports.definitions = [
2290
2290
  },
2291
2291
  },
2292
2292
  {
2293
- // Tuya/Senoro window sensor variant with 3-state opening on DP101.
2293
+ // Senoro window sensor variant with 3-state opening on DP101.
2294
2294
  fingerprint: tuya.fingerprint("TS0601", ["_TZE284_6teua268"]),
2295
- model: "TZE284_6teua268",
2296
- vendor: "Tuya",
2297
- whiteLabel: [{ vendor: "Senoro", model: "Senoro.Win v2" }],
2295
+ model: "Senoro.Win v2",
2296
+ vendor: "Senoro",
2298
2297
  description: "Window sensor with 3-state opening (DP101), optional alarm, battery",
2299
2298
  extend: [tuya.modernExtend.tuyaBase({ dp: true })],
2300
2299
  exposes: [
@@ -2977,9 +2976,9 @@ exports.definitions = [
2977
2976
  fromZigbee: [tuya.fz.datapoints],
2978
2977
  extend: [m.iasZoneAlarm({ zoneType: "rain", zoneAttributes: ["alarm_1"] }), m.battery({ percentageReporting: true })],
2979
2978
  exposes: [
2980
- e.illuminance().withUnit("lx"),
2981
- e.numeric("illuminance_average_20min", ea.STATE).withUnit("lx").withDescription("Illuminance average for the last 20 minutes"),
2982
- e.numeric("illuminance_maximum_today", ea.STATE).withUnit("lx").withDescription("Illuminance maximum for the last 24 hours"),
2979
+ e.illuminance().withUnit("mV"),
2980
+ e.numeric("illuminance_average_20min", ea.STATE).withUnit("mV").withDescription("Illuminance average for the last 20 minutes"),
2981
+ e.numeric("illuminance_maximum_today", ea.STATE).withUnit("mV").withDescription("Illuminance maximum for the last 24 hours"),
2983
2982
  e.binary("cleaning_reminder", ea.STATE, true, false).withDescription("Cleaning reminder"),
2984
2983
  e.numeric("rain_intensity", ea.STATE).withUnit("mV").withDescription("Rainfall intensity"),
2985
2984
  ],
@@ -9764,7 +9763,9 @@ exports.definitions = [
9764
9763
  model: "ZWT198/ZWT100-BH",
9765
9764
  vendor: "Tuya",
9766
9765
  description: "Wall thermostat",
9767
- extend: [tuya.modernExtend.tuyaBase({ dp: true, respondToMcuVersionResponse: true, timeStart: "1970" })],
9766
+ // Don't enable mcuVersionResponse
9767
+ // https://github.com/Koenkk/zigbee2mqtt/issues/28455#issuecomment-3603696676
9768
+ extend: [tuya.modernExtend.tuyaBase({ dp: true, timeStart: "1970" })],
9768
9769
  whiteLabel: [tuya.whitelabel("AVATTO", "WT-100-BH", "Wall thermostat", ["_TZE204_gops3slb", "_TZE284_gops3slb"])],
9769
9770
  exposes: [
9770
9771
  e.binary("factory_reset", ea.STATE_SET, "ON", "OFF").withDescription("Full factory reset, use with caution!"),
@@ -11838,11 +11839,15 @@ exports.definitions = [
11838
11839
  model: "ZG-204ZM",
11839
11840
  vendor: "Tuya",
11840
11841
  description: "PIR 24Ghz human presence sensor",
11841
- extend: [tuya.modernExtend.tuyaBase({ dp: true })],
11842
+ extend: [
11843
+ tuya.modernExtend.tuyaBase({ dp: true }),
11844
+ // Besides dp, also uses standard illuminance cluster
11845
+ // https://github.com/Koenkk/zigbee-herdsman-converters/issues/10897
11846
+ m.illuminance({ reporting: false }),
11847
+ ],
11842
11848
  exposes: [
11843
11849
  e.presence(),
11844
11850
  e.enum("motion_state", ea.STATE, ["none", "large", "small", "static"]).withDescription("Motion state"),
11845
- e.illuminance(),
11846
11851
  e.battery(),
11847
11852
  e
11848
11853
  .numeric("fading_time", ea.STATE_SET)