zigbee-herdsman-converters 19.27.0 → 19.28.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/converters/fromZigbee.d.ts.map +1 -1
- package/converters/fromZigbee.js +12 -6
- package/converters/fromZigbee.js.map +1 -1
- package/devices/aurora_lighting.js +1 -1
- package/devices/aurora_lighting.js.map +1 -1
- package/devices/custom_devices_diy.d.ts.map +1 -1
- package/devices/custom_devices_diy.js +18 -10
- package/devices/custom_devices_diy.js.map +1 -1
- package/devices/hornbach.d.ts.map +1 -1
- package/devices/hornbach.js +7 -0
- package/devices/hornbach.js.map +1 -1
- package/devices/lumi.js +9 -9
- package/devices/lumi.js.map +1 -1
- package/devices/mercator.js +4 -4
- package/devices/mercator.js.map +1 -1
- package/devices/moes.d.ts.map +1 -1
- package/devices/moes.js +14 -6
- package/devices/moes.js.map +1 -1
- package/devices/namron.js +1 -1
- package/devices/namron.js.map +1 -1
- package/devices/robb.js +1 -1
- package/devices/robb.js.map +1 -1
- package/devices/samotech.d.ts.map +1 -1
- package/devices/samotech.js +1 -0
- package/devices/samotech.js.map +1 -1
- package/devices/sonoff.d.ts.map +1 -1
- package/devices/sonoff.js +11 -12
- package/devices/sonoff.js.map +1 -1
- package/devices/sunricher.js +1 -1
- package/devices/sunricher.js.map +1 -1
- package/devices/tuya.d.ts.map +1 -1
- package/devices/tuya.js +94 -57
- package/devices/tuya.js.map +1 -1
- package/devices/ubisys.js +2 -2
- package/devices/ubisys.js.map +1 -1
- package/devices/vesternet.js +1 -1
- package/devices/vesternet.js.map +1 -1
- package/lib/modernExtend.d.ts +3 -1
- package/lib/modernExtend.d.ts.map +1 -1
- package/lib/modernExtend.js +3 -1
- package/lib/modernExtend.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [19.28.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.27.0...v19.28.0) (2024-04-25)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **add:** VIYU_C35_470_CCT_10454468 ([#7435](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7435)) ([260daff](https://github.com/Koenkk/zigbee-herdsman-converters/commit/260daff06201ec1bd47f6d78dbb27bfd2d78c81b))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* Fix configure failing for `_TZ3290_gnl5a6a5xvql7c2a` https://github.com/Koenkk/zigbee2mqtt/issues/22312 ([d558b55](https://github.com/Koenkk/zigbee-herdsman-converters/commit/d558b550d82c822872eea9f28f9e2047756982b8))
|
|
14
|
+
* **ignore:** fix 99613a7a522f916cc3a0bfc2b52ac26363c07b3a ([99af051](https://github.com/Koenkk/zigbee-herdsman-converters/commit/99af051397753f44c9f3de7e3eb0afb679b6de7e))
|
|
15
|
+
* **ignore:** fix d558b550d82c822872eea9f28f9e2047756982b8 ([915f784](https://github.com/Koenkk/zigbee-herdsman-converters/commit/915f784da0b77640b6da00a1b5f2af233eb316eb))
|
|
16
|
+
* Improvements for FORIA and LEDRON devices ([#7437](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7437)) ([3d5322a](https://github.com/Koenkk/zigbee-herdsman-converters/commit/3d5322a59f46057b0db634438bb3a663506d5196))
|
|
17
|
+
* Improvements for PTVO ([@ptvoinfo](https://github.com/ptvoinfo)) ([#7443](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7443)) ([68b6e08](https://github.com/Koenkk/zigbee-herdsman-converters/commit/68b6e087227a9419739ad1a986712e4d9a119209))
|
|
18
|
+
* Refactor F00YK04-18-1 to modernExtend ([#7439](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7439)) ([f01909f](https://github.com/Koenkk/zigbee-herdsman-converters/commit/f01909f88622efdfa5136cc1d5417490714f90f7))
|
|
19
|
+
|
|
3
20
|
## [19.27.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.26.0...v19.27.0) (2024-04-23)
|
|
4
21
|
|
|
5
22
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fromZigbee.d.ts","sourceRoot":"","sources":["../src/converters/fromZigbee.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,EAAE,EAAE,WAAW,EAAuB,MAAM,cAAc,CAAC;AAKnE,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"fromZigbee.d.ts","sourceRoot":"","sources":["../src/converters/fromZigbee.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,EAAE,EAAE,WAAW,EAAuB,MAAM,cAAc,CAAC;AAKnE,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AA8/J1C,QAAA,MAAM,UAAU;;;;;;;;;;;;QA9TR;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA5gIH;;;WAGG;;;;;;QAuCH;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sKA+gHiD,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4wBpB,CAAC;AAEpD,eAAe,UAAU,CAAC"}
|
package/converters/fromZigbee.js
CHANGED
|
@@ -698,19 +698,22 @@ const converters1 = {
|
|
|
698
698
|
if (factor != null) {
|
|
699
699
|
power = (power * factor) * 1000; // kWh to Watt
|
|
700
700
|
}
|
|
701
|
-
|
|
701
|
+
const property = (0, utils_1.postfixWithEndpointName)('power', msg, model, meta);
|
|
702
|
+
payload[property] = power;
|
|
702
703
|
}
|
|
703
704
|
if (factor != null && (msg.data.hasOwnProperty('currentSummDelivered') ||
|
|
704
705
|
msg.data.hasOwnProperty('currentSummReceived'))) {
|
|
705
706
|
if (msg.data.hasOwnProperty('currentSummDelivered')) {
|
|
706
707
|
const data = msg.data['currentSummDelivered'];
|
|
707
708
|
const value = (parseInt(data[0]) << 32) + parseInt(data[1]);
|
|
708
|
-
|
|
709
|
+
const property = (0, utils_1.postfixWithEndpointName)('energy', msg, model, meta);
|
|
710
|
+
payload[property] = value * factor;
|
|
709
711
|
}
|
|
710
712
|
if (msg.data.hasOwnProperty('currentSummReceived')) {
|
|
711
713
|
const data = msg.data['currentSummReceived'];
|
|
712
714
|
const value = (parseInt(data[0]) << 32) + parseInt(data[1]);
|
|
713
|
-
|
|
715
|
+
const property = (0, utils_1.postfixWithEndpointName)('produced_energy', msg, model, meta);
|
|
716
|
+
payload[property] = value * factor;
|
|
714
717
|
}
|
|
715
718
|
}
|
|
716
719
|
return payload;
|
|
@@ -763,13 +766,16 @@ const converters1 = {
|
|
|
763
766
|
}
|
|
764
767
|
}
|
|
765
768
|
if (msg.data.hasOwnProperty('powerFactor')) {
|
|
766
|
-
|
|
769
|
+
const property = (0, utils_1.postfixWithEndpointName)('power_factor', msg, model, meta);
|
|
770
|
+
payload[property] = (0, utils_1.precisionRound)(msg.data['powerFactor'] / 100, 2);
|
|
767
771
|
}
|
|
768
772
|
if (msg.data.hasOwnProperty('powerFactorPhB')) {
|
|
769
|
-
|
|
773
|
+
const property = (0, utils_1.postfixWithEndpointName)('power_factor_phase_b', msg, model, meta);
|
|
774
|
+
payload[property] = (0, utils_1.precisionRound)(msg.data['powerFactorPhB'] / 100, 2);
|
|
770
775
|
}
|
|
771
776
|
if (msg.data.hasOwnProperty('powerFactorPhC')) {
|
|
772
|
-
|
|
777
|
+
const property = (0, utils_1.postfixWithEndpointName)('power_factor_phase_c', msg, model, meta);
|
|
778
|
+
payload[property] = (0, utils_1.precisionRound)(msg.data['powerFactorPhC'] / 100, 2);
|
|
773
779
|
}
|
|
774
780
|
return payload;
|
|
775
781
|
},
|