zigbee-herdsman-converters 20.22.0 → 20.23.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 +16 -0
- package/converters/fromZigbee.d.ts +10 -0
- package/converters/fromZigbee.d.ts.map +1 -1
- package/converters/fromZigbee.js +23 -0
- package/converters/fromZigbee.js.map +1 -1
- package/devices/philips.d.ts.map +1 -1
- package/devices/philips.js +26 -2
- package/devices/philips.js.map +1 -1
- package/devices/sengled.d.ts.map +1 -1
- package/devices/sengled.js +67 -0
- package/devices/sengled.js.map +1 -1
- package/devices/tuya.d.ts.map +1 -1
- package/devices/tuya.js +8 -6
- package/devices/tuya.js.map +1 -1
- package/lib/modernExtend.d.ts +3 -3
- package/lib/modernExtend.d.ts.map +1 -1
- package/lib/philips.d.ts +4 -3
- package/lib/philips.d.ts.map +1 -1
- package/lib/philips.js +27 -0
- package/lib/philips.js.map +1 -1
- package/lib/tuya.d.ts.map +1 -1
- package/lib/tuya.js +3 -1
- package/lib/tuya.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [20.23.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.22.0...v20.23.0) (2024-10-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **add:** 929003711201, 929003711301 ([#8069](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8069)) ([b2949e2](https://github.com/Koenkk/zigbee-herdsman-converters/commit/b2949e2f8fad39d252b536f132d0fae3d666205a))
|
|
9
|
+
* **add:** E13-A21 ([#8045](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8045)) ([bef15e0](https://github.com/Koenkk/zigbee-herdsman-converters/commit/bef15e0278279557d74236d1c7f90996a0d8a95e))
|
|
10
|
+
* **add:** R7047 ([#8067](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8067)) ([f5def68](https://github.com/Koenkk/zigbee-herdsman-converters/commit/f5def68df7961563bc456c6b15a2e5ca7c1d7da8))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* Fix `_TZ3210_mja6r5ix` integration https://github.com/Koenkk/zigbee2mqtt/issues/24074 ([6c19808](https://github.com/Koenkk/zigbee-herdsman-converters/commit/6c1980821e0baa37f90043615794d539139c6d52))
|
|
16
|
+
* Fix Avatto ZWT198 _TZE204_xnbkhhdr, fix reversed 6-1 and 5-2 in 'working_day' datapoint ([#8066](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8066)) ([c8b28a1](https://github.com/Koenkk/zigbee-herdsman-converters/commit/c8b28a1df084c0195290b8360149c0e1d3c3d437))
|
|
17
|
+
* Fix power source unknown for some Tuya switches ([#8073](https://github.com/Koenkk/zigbee-herdsman-converters/issues/8073)) ([d7880b9](https://github.com/Koenkk/zigbee-herdsman-converters/commit/d7880b989d1ca43b896da893e02ab584402f25f5))
|
|
18
|
+
|
|
3
19
|
## [20.22.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v20.21.0...v20.22.0) (2024-10-02)
|
|
4
20
|
|
|
5
21
|
|
|
@@ -1664,6 +1664,11 @@ declare const converters: {
|
|
|
1664
1664
|
action: any;
|
|
1665
1665
|
};
|
|
1666
1666
|
};
|
|
1667
|
+
hue_twilight: {
|
|
1668
|
+
cluster: string;
|
|
1669
|
+
type: string;
|
|
1670
|
+
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: KeyValue, meta: Fz.Meta) => KeyValueAny;
|
|
1671
|
+
};
|
|
1667
1672
|
tuya_relay_din_led_indicator: {
|
|
1668
1673
|
cluster: string;
|
|
1669
1674
|
type: string[];
|
|
@@ -1962,6 +1967,11 @@ declare const converters: {
|
|
|
1962
1967
|
type: string;
|
|
1963
1968
|
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: KeyValue, meta: Fz.Meta) => void;
|
|
1964
1969
|
};
|
|
1970
|
+
ignore_command_off_with_effect: {
|
|
1971
|
+
cluster: string;
|
|
1972
|
+
type: string;
|
|
1973
|
+
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: KeyValue, meta: Fz.Meta) => void;
|
|
1974
|
+
};
|
|
1965
1975
|
ignore_command_step: {
|
|
1966
1976
|
cluster: string;
|
|
1967
1977
|
type: string;
|
|
@@ -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;AA8uK7E,QAAA,MAAM,UAAU;;;;;;;;;;;;QAjXR;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAvqIH;;;WAGG;;;;;;QAoCH;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+IAwqHiD,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAo0BpB,CAAC;AAEpD,eAAe,UAAU,CAAC"}
|
package/converters/fromZigbee.js
CHANGED
|
@@ -4276,6 +4276,24 @@ const converters1 = {
|
|
|
4276
4276
|
}
|
|
4277
4277
|
},
|
|
4278
4278
|
},
|
|
4279
|
+
hue_twilight: {
|
|
4280
|
+
cluster: 'manuSpecificPhilips',
|
|
4281
|
+
type: 'commandHueNotification',
|
|
4282
|
+
convert: (model, msg, publish, options, meta) => {
|
|
4283
|
+
const buttonLookup = { 1: 'dot', 2: 'hue' };
|
|
4284
|
+
const button = buttonLookup[msg.data['button']];
|
|
4285
|
+
const typeLookup = { 0: 'press', 1: 'hold', 2: 'press_release', 3: 'hold_release' };
|
|
4286
|
+
const type = typeLookup[msg.data['type']];
|
|
4287
|
+
const payload = { action: `${button}_${type}` };
|
|
4288
|
+
// duration
|
|
4289
|
+
if (type === 'press')
|
|
4290
|
+
globalStore.putValue(msg.endpoint, 'press_start', Date.now());
|
|
4291
|
+
else if (type === 'hold' || type === 'release') {
|
|
4292
|
+
payload.action_duration = (Date.now() - globalStore.getValue(msg.endpoint, 'press_start')) / 1000;
|
|
4293
|
+
}
|
|
4294
|
+
return payload;
|
|
4295
|
+
},
|
|
4296
|
+
},
|
|
4279
4297
|
tuya_relay_din_led_indicator: {
|
|
4280
4298
|
cluster: 'genOnOff',
|
|
4281
4299
|
type: ['attributeReport', 'readResponse'],
|
|
@@ -4822,6 +4840,11 @@ const converters1 = {
|
|
|
4822
4840
|
convert: (model, msg, publish, options, meta) => { },
|
|
4823
4841
|
},
|
|
4824
4842
|
ignore_command_off: {
|
|
4843
|
+
cluster: 'genOnOff',
|
|
4844
|
+
type: 'commandOff',
|
|
4845
|
+
convert: (model, msg, publish, options, meta) => { },
|
|
4846
|
+
},
|
|
4847
|
+
ignore_command_off_with_effect: {
|
|
4825
4848
|
cluster: 'genOnOff',
|
|
4826
4849
|
type: 'commandOffWithEffect',
|
|
4827
4850
|
convert: (model, msg, publish, options, meta) => { },
|