zigbee-herdsman-converters 23.14.0 → 23.16.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.
@@ -765,95 +765,6 @@ const fzLocal = {
765
765
  },
766
766
  },
767
767
  };
768
- const modernExtendLocal = {
769
- dpTHZBSettings() {
770
- const exp = e
771
- .composite("auto_settings", "auto_settings", ea.STATE_SET)
772
- .withFeature(e.enum("enabled", ea.STATE_SET, ["on", "off", "none"]).withDescription("Enable auto settings"))
773
- .withFeature(e.enum("temp_greater_then", ea.STATE_SET, ["on", "off", "none"]).withDescription("Greater action"))
774
- .withFeature(e
775
- .numeric("temp_greater_value", ea.STATE_SET)
776
- .withValueMin(-20)
777
- .withValueMax(80)
778
- .withValueStep(0.1)
779
- .withUnit("*C")
780
- .withDescription("Temperature greater than value"))
781
- .withFeature(e.enum("temp_lower_then", ea.STATE_SET, ["on", "off", "none"]).withDescription("Lower action"))
782
- .withFeature(e
783
- .numeric("temp_lower_value", ea.STATE_SET)
784
- .withValueMin(-20)
785
- .withValueMax(80)
786
- .withValueStep(0.1)
787
- .withUnit("*C")
788
- .withDescription("Temperature lower than value"));
789
- const handlers = tuya.getHandlersForDP("auto_settings", 0x77, tuya.dataTypes.string, {
790
- from: (value) => {
791
- let result = {
792
- enabled: "none",
793
- temp_greater_then: "none",
794
- temp_greater_value: 0,
795
- temp_lower_then: "none",
796
- temp_lower_value: 0,
797
- };
798
- const buf = Buffer.from(value, "hex");
799
- if (buf.length > 0) {
800
- const enabled = buf[0];
801
- const gr = buf[1];
802
- const grValue = buf.readInt32LE(2) / 10;
803
- const grAction = buf[6];
804
- const lo = buf[7];
805
- const loValue = buf.readInt32LE(8) / 10;
806
- const loAction = buf[13];
807
- result = {
808
- enabled: { 0: "on", 128: "off" }[enabled],
809
- temp_greater_then: gr !== 0xff ? { 1: "on", 0: "off" }[grAction] : "none",
810
- temp_greater_value: grValue,
811
- temp_lower_then: lo !== 0xff ? { 1: "on", 0: "off" }[loAction] : "none",
812
- temp_lower_value: loValue,
813
- };
814
- }
815
- return result;
816
- },
817
- to: (value) => {
818
- let result = "";
819
- if (value.enabled !== "none") {
820
- const enabled = utils.getFromLookup(value.enabled, {
821
- on: 0x00,
822
- off: 0x80,
823
- });
824
- const gr = value.temp_greater_then === "none" ? 0xff : 0x00;
825
- const grAction = utils.getFromLookup(value.temp_greater_then, {
826
- on: 0x01,
827
- off: 0x00,
828
- none: 0x00,
829
- });
830
- const lo = value.temp_lower_then === "none" ? 0xff : 0x00;
831
- const loAction = utils.getFromLookup(value.temp_lower_then, {
832
- on: 0x01,
833
- off: 0x00,
834
- none: 0x00,
835
- });
836
- const buf = Buffer.alloc(13);
837
- buf.writeUInt8(enabled, 0);
838
- buf.writeUInt8(gr, 1);
839
- buf.writeInt32LE(value.temp_greater_value * 10, 2);
840
- buf.writeUInt8(grAction, 6);
841
- buf.writeUInt8(lo, 7);
842
- buf.writeInt32LE(value.temp_lower_value * 10, 8);
843
- buf.writeUInt8(loAction, 12);
844
- result = buf.toString("hex");
845
- }
846
- return result;
847
- },
848
- });
849
- return {
850
- exposes: [exp],
851
- fromZigbee: handlers[0],
852
- toZigbee: handlers[1],
853
- isModernExtend: true,
854
- };
855
- },
856
- };
857
768
  exports.definitions = [
858
769
  {
859
770
  zigbeeModel: ["TS0204"],
@@ -1150,6 +1061,7 @@ exports.definitions = [
1150
1061
  "_TZE204_9yapgbuv",
1151
1062
  "_TZE204_upagmta9",
1152
1063
  "_TZE200_cirvgep4",
1064
+ "_TZE204_d7lpruvi",
1153
1065
  "_TZE200_upagmta9",
1154
1066
  "_TZE204_yjjdcqsq",
1155
1067
  "_TZE204_jygvp6fk",
@@ -1182,6 +1094,7 @@ exports.definitions = [
1182
1094
  tuya.whitelabel("Tuya", "ZTH02", "Temperature and humidity sensor", ["_TZE200_9yapgbuv", "_TZE204_9yapgbuv"]),
1183
1095
  tuya.whitelabel("Tuya", "ZTH05", "Temperature and humidity sensor", ["_TZE204_upagmta9", "_TZE200_upagmta9"]),
1184
1096
  tuya.whitelabel("Tuya", "ZTH08-E", "Temperature and humidity sensor", ["_TZE200_cirvgep4", "_TZE204_cirvgep4"]),
1097
+ tuya.whitelabel("Tuya", "ZTH08", "Temperature and humidity sensor", ["_TZE204_d7lpruvi", "_TZE204_d7lpruvi"]),
1185
1098
  ],
1186
1099
  },
1187
1100
  {
@@ -3254,6 +3167,7 @@ exports.definitions = [
3254
3167
  "_TZB210_lmqquxus",
3255
3168
  ]),
3256
3169
  tuya.whitelabel("MiBoxer", "E2-ZR", "2 in 1 LED controller", ["_TZB210_ayx58ft5"]),
3170
+ tuya.whitelabel("MiBoxer", "PZ2", "2 in 1 LED controller", ["_TZB210_0bkzabht"]),
3257
3171
  tuya.whitelabel("Lidl", "14156408L", "Livarno Lux smart LED ceiling light", ["_TZ3210_c2iwpxf1"]),
3258
3172
  ],
3259
3173
  extend: [
@@ -3332,6 +3246,7 @@ exports.definitions = [
3332
3246
  tuya.whitelabel("Tuya", "ZTH01/ZTH02", "Temperature and humidity sensor", ["_TZ3000_0s1izerx"]),
3333
3247
  tuya.whitelabel("Tuya", "ZY-ZTH02", "Temperature and humidity sensor", ["_TZ3000_v1w2k9dd"]),
3334
3248
  tuya.whitelabel("SEDEA", "eTH730", "Temperature and humidity sensor", ["_TZ3000_lqmvrwa2"]),
3249
+ tuya.whitelabel("Moes", "ZSS-S01-TH", "Temperature and humidity sensor", ["_TZ3000_f2bw0b6k"]),
3335
3250
  tuya.whitelabel("Danfoss", "014G2480", "Temperature and humidity sensor", ["_TZ3000_mxzo5rhf"]),
3336
3251
  ],
3337
3252
  },
@@ -7453,7 +7368,7 @@ exports.definitions = [
7453
7368
  },
7454
7369
  },
7455
7370
  {
7456
- fingerprint: tuya.fingerprint("TS0726", ["_TZ3002_9vcekkp1"]),
7371
+ fingerprint: tuya.fingerprint("TS0726", ["_TZ3002_9vcekkp1", "_TZ3000_m4ah6bcz"]),
7457
7372
  model: "TS0726_multi_1_gang",
7458
7373
  vendor: "Tuya",
7459
7374
  description: "Multi 1 gang switch with backlight",
@@ -9060,7 +8975,7 @@ exports.definitions = [
9060
8975
  whiteLabel: [tuya.whitelabel("iHseno", "TY_24G_Sensor_V2", "Human presence sensor 24G", ["_TZE204_ztqnh5cg"])],
9061
8976
  },
9062
8977
  {
9063
- fingerprint: tuya.fingerprint("TS0601", ["_TZE204_laokfqwu", "_TZE200_clrdrnya"]),
8978
+ fingerprint: tuya.fingerprint("TS0601", ["_TZE204_laokfqwu"]),
9064
8979
  model: "WZ-M100",
9065
8980
  vendor: "Wenzhi",
9066
8981
  description: "Human presence sensor",
@@ -10300,6 +10215,7 @@ exports.definitions = [
10300
10215
  electricalMeasurementsFzConverter: fzLocal.TS011F_electrical_measurement,
10301
10216
  powerOutageMemory: true,
10302
10217
  indicatorMode: true,
10218
+ onOffCountdown: true,
10303
10219
  }),
10304
10220
  ],
10305
10221
  fromZigbee: [fz.temperature, fzLocal.TS011F_threshold],
@@ -12496,6 +12412,7 @@ exports.definitions = [
12496
12412
  "_TZE200_mp902om5",
12497
12413
  "_TZE204_pfayrzcw",
12498
12414
  "_TZE284_4qznlkbu",
12415
+ "_TZE200_clrdrnya",
12499
12416
  "_TZE200_sbyx0lm6",
12500
12417
  ]),
12501
12418
  model: "MTG075-ZB-RL",
@@ -12504,7 +12421,7 @@ exports.definitions = [
12504
12421
  whiteLabel: [
12505
12422
  tuya.whitelabel("Tuya", "MTG275-ZB-RL", "2.4G/5.8G MmWave radar human presence motion sensor", ["_TZE204_dtzziy1e"]),
12506
12423
  tuya.whitelabel("Tuya", "MTG035-ZB-RL", "Human presence sensor with relay", ["_TZE204_pfayrzcw"]),
12507
- tuya.whitelabel("Tuya", "MTG235-ZB-RL", "24G Human presence sensor with relay", ["_TZE204_clrdrnya"]),
12424
+ tuya.whitelabel("Tuya", "MTG235-ZB-RL", "24G Human presence sensor with relay", ["_TZE204_clrdrnya", "_TZE200_clrdrnya"]),
12508
12425
  tuya.whitelabel("QA", "QASZ24R", "mmWave 24 Ghz sensor with relay", ["_TZE284_4qznlkbu"]),
12509
12426
  ],
12510
12427
  configure: tuya.configureMagicPacket,
@@ -14204,9 +14121,9 @@ exports.definitions = [
14204
14121
  type: tuya.dataTypes.enum,
14205
14122
  valueOn: ["ON", 1],
14206
14123
  valueOff: ["OFF", 0],
14207
- description: "Manual mode or automatic",
14124
+ description: "Manual mode, ON = auto settings disabled, OFF = auto settings enabled",
14208
14125
  }),
14209
- modernExtendLocal.dpTHZBSettings(),
14126
+ tuya.modernExtend.dpTHZBSettings(),
14210
14127
  ],
14211
14128
  },
14212
14129
  {