zigbee-herdsman-converters 19.74.0 → 20.0.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 +43 -0
- package/README.md +7 -3
- package/converters/fromZigbee.d.ts.map +1 -1
- package/converters/fromZigbee.js +0 -37
- package/converters/fromZigbee.js.map +1 -1
- package/converters/toZigbee.d.ts +0 -79
- package/converters/toZigbee.d.ts.map +1 -1
- package/converters/toZigbee.js +0 -92
- package/converters/toZigbee.js.map +1 -1
- package/devices/adeo.d.ts.map +1 -1
- package/devices/adeo.js +7 -0
- package/devices/adeo.js.map +1 -1
- package/devices/avatto.d.ts +4 -0
- package/devices/avatto.d.ts.map +1 -0
- package/devices/avatto.js +58 -0
- package/devices/avatto.js.map +1 -0
- package/devices/ctm.d.ts.map +1 -1
- package/devices/ctm.js +0 -41
- package/devices/ctm.js.map +1 -1
- package/devices/elko.d.ts.map +1 -1
- package/devices/elko.js +106 -124
- package/devices/elko.js.map +1 -1
- package/devices/index.d.ts.map +1 -1
- package/devices/index.js +2 -0
- package/devices/index.js.map +1 -1
- package/devices/qa.js +1 -1
- package/devices/qa.js.map +1 -1
- package/devices/tuya.d.ts.map +1 -1
- package/devices/tuya.js +115 -8
- package/devices/tuya.js.map +1 -1
- package/lib/ota/ledvance.d.ts.map +1 -1
- package/lib/ota/ledvance.js +4 -1
- package/lib/ota/ledvance.js.map +1 -1
- package/lib/tuya.d.ts +5 -1
- package/lib/tuya.d.ts.map +1 -1
- package/lib/tuya.js +4 -212
- package/lib/tuya.js.map +1 -1
- package/lib/types.d.ts +1 -1
- package/lib/types.d.ts.map +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [20.0.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.75.0...v20.0.0) (2024-08-12)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### ⚠ BREAKING CHANGES
|
|
7
|
+
|
|
8
|
+
* **ignore:** Document breaking change
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **add:** 84870054 ([#7845](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7845)) ([790e07c](https://github.com/Koenkk/zigbee-herdsman-converters/commit/790e07c561935c01e76f4771d91c8eb3781fc0c3))
|
|
13
|
+
* **add:** CSP042 ([#7842](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7842)) ([d9db2d8](https://github.com/Koenkk/zigbee-herdsman-converters/commit/d9db2d8a831bcacd6a5da628a4e692c3985a79c1))
|
|
14
|
+
* **add:** PN6 ([#7840](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7840)) ([95e581e](https://github.com/Koenkk/zigbee-herdsman-converters/commit/95e581edb5b1b901b061ce5e0bda0afc85fc9db3))
|
|
15
|
+
* **add:** RB-SRAIN01 https://github.com/Koenkk/zigbee2mqtt/issues/23532 ([805f5a4](https://github.com/Koenkk/zigbee-herdsman-converters/commit/805f5a46cc6bfdf93ac392aebfb6258fa8242fb7))
|
|
16
|
+
* **add:** ZM90E-DT250N/A400 @StevenBoelhouwer https://github.com/Koenkk/zigbee2mqtt/issues/23576 ([ae2f706](https://github.com/Koenkk/zigbee-herdsman-converters/commit/ae2f706898bde0fa7bcf4bf067b9955d9e549aab))
|
|
17
|
+
* **add:** ZWSH16 ([#7844](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7844)) ([a3282e6](https://github.com/Koenkk/zigbee-herdsman-converters/commit/a3282e62006868fc0b075718d4d6da092bea01ce))
|
|
18
|
+
* **ignore:** Document breaking change ([6e96d84](https://github.com/Koenkk/zigbee-herdsman-converters/commit/6e96d847ddf633725108c08ddfcd6088a9fe3a71))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* **detect:** Detect `_TZE204_m1wl5fvq` as Tuya TS0601_cover_1 ([#7849](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7849)) ([0afa501](https://github.com/Koenkk/zigbee-herdsman-converters/commit/0afa501f78ba027d7aa4cce6401dcd02ab3d8632))
|
|
24
|
+
* **detect:** Detect `_TZE284_znvwzxkq` as Tuya TS0601_dimmer_3 https://github.com/Koenkk/zigbee2mqtt/issues/23581 ([cdd05b1](https://github.com/Koenkk/zigbee-herdsman-converters/commit/cdd05b1c42be371736a7ece4cb948a96d5cdbafe))
|
|
25
|
+
* Fix Ledvance/OSRAM/Sylvania OTA broken for some models https://github.com/Koenkk/zigbee2mqtt/discussions/23534 ([d28d199](https://github.com/Koenkk/zigbee-herdsman-converters/commit/d28d1994b84aad59c044e3445215fd2d2c77b680))
|
|
26
|
+
* Fix Tuya ZY-M100-24GV2 sensitivity divided by 10 https://github.com/Koenkk/zigbee2mqtt/issues/23582 ([b316973](https://github.com/Koenkk/zigbee-herdsman-converters/commit/b3169739e07ee6ffa90da93d21eefe78bb046d07))
|
|
27
|
+
* **ignore:** update dependencies ([#7847](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7847)) ([b182c7b](https://github.com/Koenkk/zigbee-herdsman-converters/commit/b182c7b3cc71c7777fa05cac300049c01fe456f1))
|
|
28
|
+
|
|
29
|
+
## [19.75.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.74.0...v19.75.0) (2024-08-08)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
|
|
34
|
+
* **add:** TS0001_switch_module_2 ([#7832](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7832)) ([35ffe00](https://github.com/Koenkk/zigbee-herdsman-converters/commit/35ffe00680b344f9ff317bb68f1f15680346aa84))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* Add back TS110E_1gang_1 ([#7781](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7781)) ([51a6890](https://github.com/Koenkk/zigbee-herdsman-converters/commit/51a689073cd9479615a77bf7510492302d602b24))
|
|
40
|
+
* Allow toZigbee converter to match on any key https://github.com/Koenkk/zigbee2mqtt/issues/23485 ([36e7440](https://github.com/Koenkk/zigbee-herdsman-converters/commit/36e7440a4fa34b6757ce534771408d5fa0360db5))
|
|
41
|
+
* Convert ELKO 4523430 to use modern extend syntax ([#7839](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7839)) ([432fda5](https://github.com/Koenkk/zigbee-herdsman-converters/commit/432fda5492c786ca02e2e0ceaf5046992235746d))
|
|
42
|
+
* **detect:** Detect `_TZ3000_v4l4b0lp` as Tuya TS0003_switch_3_gang_with_backlight ([#7833](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7833)) ([aa0d4ef](https://github.com/Koenkk/zigbee-herdsman-converters/commit/aa0d4ef336f954f461d3e3f54557d23a2161d192))
|
|
43
|
+
* **detect:** Detect `_TZE204_bxoo2swd` as Tuya ZM-105B-M ([#7835](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7835)) ([104dde6](https://github.com/Koenkk/zigbee-herdsman-converters/commit/104dde61a7dafc8a1586c257f7b1d2a4b3085751))
|
|
44
|
+
* **detect:** Detect `_TZE608_fmemczv1` as Tuya TS0603 ([#7834](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7834)) ([701b725](https://github.com/Koenkk/zigbee-herdsman-converters/commit/701b725b83cd538228aaa70033419e8c89ed1247))
|
|
45
|
+
|
|
3
46
|
## [19.74.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.73.1...v19.74.0) (2024-08-06)
|
|
4
47
|
|
|
5
48
|
|
package/README.md
CHANGED
|
@@ -6,19 +6,23 @@ Collection of device converters to be used with zigbee-herdsman.
|
|
|
6
6
|
|
|
7
7
|
## Breaking changes
|
|
8
8
|
|
|
9
|
+
20.0.0
|
|
10
|
+
|
|
11
|
+
- A toZigbee converter is now allowed to not define any `key`, in this case the converter should be used for any key.
|
|
12
|
+
|
|
9
13
|
19.0.0
|
|
10
14
|
|
|
11
15
|
- Legacy extend was removed
|
|
12
16
|
|
|
13
|
-
|
|
17
|
+
18.0.0
|
|
14
18
|
|
|
15
19
|
- After converting a message with a fromZigbee converter, `postProcessConvertedFromZigbeeMessage` should be called now (for applying calibration/precision)
|
|
16
20
|
|
|
17
|
-
|
|
21
|
+
17.0.0
|
|
18
22
|
|
|
19
23
|
- Various methods in `index.ts` are now async and return a `Promise`
|
|
20
24
|
|
|
21
|
-
|
|
25
|
+
15.0.0
|
|
22
26
|
|
|
23
27
|
- OTA `isUpdateAvailable` now returns an object instead of a boolean (e.g. `{available: true, currentFileVersion: 120, otaFileVersion: 125}`)
|
|
24
28
|
- OTA `updateToLatest` now returns a number (`fileVersion` of the new OTA) instead of a void
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fromZigbee.d.ts","sourceRoot":"","sources":["../src/converters/fromZigbee.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAC,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAuB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"fromZigbee.d.ts","sourceRoot":"","sources":["../src/converters/fromZigbee.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAG1C,OAAO,EAAC,EAAE,EAAE,QAAQ,EAAE,WAAW,EAAuB,MAAM,cAAc,CAAC;AAguK7E,QAAA,MAAM,UAAU;;;;;;;;;;;;QAlXR;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+IA+pHiD,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAg0BpB,CAAC;AAEpD,eAAe,UAAU,CAAC"}
|
package/converters/fromZigbee.js
CHANGED
|
@@ -1883,55 +1883,18 @@ const converters1 = {
|
|
|
1883
1883
|
convert: (model, msg, publish, options, meta) => {
|
|
1884
1884
|
const result = {};
|
|
1885
1885
|
const data = msg.data;
|
|
1886
|
-
if (data.hasOwnProperty('elkoLoad')) {
|
|
1887
|
-
// Load
|
|
1888
|
-
result.load = data['elkoLoad'];
|
|
1889
|
-
}
|
|
1890
1886
|
if (data.hasOwnProperty('elkoDisplayText')) {
|
|
1891
1887
|
// Display text
|
|
1892
1888
|
result.display_text = data['elkoDisplayText'];
|
|
1893
1889
|
}
|
|
1894
|
-
if (data.hasOwnProperty('elkoSensor')) {
|
|
1895
|
-
// Sensor
|
|
1896
|
-
const sensorModeLookup = { '0': 'air', '1': 'floor', '3': 'supervisor_floor' };
|
|
1897
|
-
result.sensor = sensorModeLookup[data['elkoSensor']];
|
|
1898
|
-
}
|
|
1899
|
-
if (data.hasOwnProperty('elkoRegulatorTime')) {
|
|
1900
|
-
// Regulator time
|
|
1901
|
-
result.regulator_time = data['elkoRegulatorTime'];
|
|
1902
|
-
}
|
|
1903
|
-
if (data.hasOwnProperty('elkoRegulatorMode')) {
|
|
1904
|
-
// Regulator mode
|
|
1905
|
-
result.regulator_mode = data['elkoRegulatorMode'] ? 'regulator' : 'thermostat';
|
|
1906
|
-
}
|
|
1907
1890
|
if (data.hasOwnProperty('elkoPowerStatus')) {
|
|
1908
1891
|
// Power status
|
|
1909
1892
|
result.system_mode = data['elkoPowerStatus'] ? 'heat' : 'off';
|
|
1910
1893
|
}
|
|
1911
|
-
if (data.hasOwnProperty('elkoMeanPower')) {
|
|
1912
|
-
// Mean power
|
|
1913
|
-
result.mean_power = data['elkoMeanPower'];
|
|
1914
|
-
}
|
|
1915
1894
|
if (data.hasOwnProperty('elkoExternalTemp')) {
|
|
1916
1895
|
// External temp (floor)
|
|
1917
1896
|
result.floor_temp = utils.precisionRound(data['elkoExternalTemp'], 2) / 100;
|
|
1918
1897
|
}
|
|
1919
|
-
if (data.hasOwnProperty('elkoNightSwitching')) {
|
|
1920
|
-
// Night switching
|
|
1921
|
-
result.night_switching = data['elkoNightSwitching'] ? 'on' : 'off';
|
|
1922
|
-
}
|
|
1923
|
-
if (data.hasOwnProperty('elkoFrostGuard')) {
|
|
1924
|
-
// Frost guard
|
|
1925
|
-
result.frost_guard = data['elkoFrostGuard'] ? 'on' : 'off';
|
|
1926
|
-
}
|
|
1927
|
-
if (data.hasOwnProperty('elkoChildLock')) {
|
|
1928
|
-
// Child lock
|
|
1929
|
-
result.child_lock = data['elkoChildLock'] ? 'lock' : 'unlock';
|
|
1930
|
-
}
|
|
1931
|
-
if (data.hasOwnProperty('elkoMaxFloorTemp')) {
|
|
1932
|
-
// Max floor temp
|
|
1933
|
-
result.max_floor_temp = data['elkoMaxFloorTemp'];
|
|
1934
|
-
}
|
|
1935
1898
|
if (data.hasOwnProperty('elkoRelayState')) {
|
|
1936
1899
|
// Relay state
|
|
1937
1900
|
result.running_state = data['elkoRelayState'] ? 'heat' : 'idle';
|