zigbee-herdsman-converters 23.15.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.
- package/CHANGELOG.md +17 -0
- package/dist/devices/efekta.d.ts.map +1 -1
- package/dist/devices/efekta.js +299 -0
- package/dist/devices/efekta.js.map +1 -1
- package/dist/devices/philips.d.ts.map +1 -1
- package/dist/devices/philips.js +7 -0
- package/dist/devices/philips.js.map +1 -1
- package/dist/devices/schneider_electric.js +1 -1
- package/dist/devices/schneider_electric.js.map +1 -1
- package/dist/devices/sunricher.d.ts.map +1 -1
- package/dist/devices/sunricher.js +7 -0
- package/dist/devices/sunricher.js.map +1 -1
- package/dist/devices/tuya.d.ts.map +1 -1
- package/dist/devices/tuya.js +5 -93
- package/dist/devices/tuya.js.map +1 -1
- package/dist/lib/modernExtend.js +1 -1
- package/dist/lib/modernExtend.js.map +1 -1
- package/dist/lib/tuya.d.ts +6 -0
- package/dist/lib/tuya.d.ts.map +1 -1
- package/dist/lib/tuya.js +55 -0
- package/dist/lib/tuya.js.map +1 -1
- package/dist/models-index.json +1 -1
- package/package.json +4 -4
package/dist/devices/tuya.js
CHANGED
|
@@ -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"],
|
|
@@ -9064,7 +8975,7 @@ exports.definitions = [
|
|
|
9064
8975
|
whiteLabel: [tuya.whitelabel("iHseno", "TY_24G_Sensor_V2", "Human presence sensor 24G", ["_TZE204_ztqnh5cg"])],
|
|
9065
8976
|
},
|
|
9066
8977
|
{
|
|
9067
|
-
fingerprint: tuya.fingerprint("TS0601", ["_TZE204_laokfqwu"
|
|
8978
|
+
fingerprint: tuya.fingerprint("TS0601", ["_TZE204_laokfqwu"]),
|
|
9068
8979
|
model: "WZ-M100",
|
|
9069
8980
|
vendor: "Wenzhi",
|
|
9070
8981
|
description: "Human presence sensor",
|
|
@@ -12501,6 +12412,7 @@ exports.definitions = [
|
|
|
12501
12412
|
"_TZE200_mp902om5",
|
|
12502
12413
|
"_TZE204_pfayrzcw",
|
|
12503
12414
|
"_TZE284_4qznlkbu",
|
|
12415
|
+
"_TZE200_clrdrnya",
|
|
12504
12416
|
"_TZE200_sbyx0lm6",
|
|
12505
12417
|
]),
|
|
12506
12418
|
model: "MTG075-ZB-RL",
|
|
@@ -12509,7 +12421,7 @@ exports.definitions = [
|
|
|
12509
12421
|
whiteLabel: [
|
|
12510
12422
|
tuya.whitelabel("Tuya", "MTG275-ZB-RL", "2.4G/5.8G MmWave radar human presence motion sensor", ["_TZE204_dtzziy1e"]),
|
|
12511
12423
|
tuya.whitelabel("Tuya", "MTG035-ZB-RL", "Human presence sensor with relay", ["_TZE204_pfayrzcw"]),
|
|
12512
|
-
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"]),
|
|
12513
12425
|
tuya.whitelabel("QA", "QASZ24R", "mmWave 24 Ghz sensor with relay", ["_TZE284_4qznlkbu"]),
|
|
12514
12426
|
],
|
|
12515
12427
|
configure: tuya.configureMagicPacket,
|
|
@@ -14209,9 +14121,9 @@ exports.definitions = [
|
|
|
14209
14121
|
type: tuya.dataTypes.enum,
|
|
14210
14122
|
valueOn: ["ON", 1],
|
|
14211
14123
|
valueOff: ["OFF", 0],
|
|
14212
|
-
description: "Manual mode
|
|
14124
|
+
description: "Manual mode, ON = auto settings disabled, OFF = auto settings enabled",
|
|
14213
14125
|
}),
|
|
14214
|
-
|
|
14126
|
+
tuya.modernExtend.dpTHZBSettings(),
|
|
14215
14127
|
],
|
|
14216
14128
|
},
|
|
14217
14129
|
{
|