zigbee-herdsman-converters 19.11.2 → 19.12.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 +21 -0
- package/converters/fromZigbee.d.ts +0 -51
- package/converters/fromZigbee.d.ts.map +1 -1
- package/converters/fromZigbee.js +0 -106
- package/converters/fromZigbee.js.map +1 -1
- package/devices/bosch.d.ts.map +1 -1
- package/devices/bosch.js +29 -2
- package/devices/bosch.js.map +1 -1
- package/devices/ikea.d.ts +1 -8
- package/devices/ikea.d.ts.map +1 -1
- package/devices/ikea.js +683 -1040
- package/devices/ikea.js.map +1 -1
- package/devices/miboxer.d.ts.map +1 -1
- package/devices/miboxer.js +3 -0
- package/devices/miboxer.js.map +1 -1
- package/devices/sonoff.d.ts.map +1 -1
- package/devices/sonoff.js +73 -0
- package/devices/sonoff.js.map +1 -1
- package/devices/tuya.d.ts.map +1 -1
- package/devices/tuya.js +76 -38
- package/devices/tuya.js.map +1 -1
- package/lib/ikea.d.ts +78 -0
- package/lib/ikea.d.ts.map +1 -0
- package/lib/ikea.js +692 -0
- package/lib/ikea.js.map +1 -0
- package/lib/legacy.d.ts +0 -38
- package/lib/legacy.d.ts.map +1 -1
- package/lib/legacy.js +0 -65
- package/lib/legacy.js.map +1 -1
- package/lib/modernExtend.d.ts +10 -4
- package/lib/modernExtend.d.ts.map +1 -1
- package/lib/modernExtend.js +15 -8
- package/lib/modernExtend.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [19.12.0](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.11.2...v19.12.0) (2024-04-02)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **add:** BMCT-DZ ([#7305](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7305)) ([125f37f](https://github.com/Koenkk/zigbee-herdsman-converters/commit/125f37f1082f47568197bcaeed694fd33494c67e))
|
|
9
|
+
* **add:** COZIGVS ([#7302](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7302)) ([c8055b6](https://github.com/Koenkk/zigbee-herdsman-converters/commit/c8055b65926408e5cde48c9f0489890b6b8d2e13))
|
|
10
|
+
* **add:** F00MB00-04-1 ([#7306](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7306)) ([dcdb8a9](https://github.com/Koenkk/zigbee-herdsman-converters/commit/dcdb8a92127e0114b34240f6943366cc90e001a5))
|
|
11
|
+
* **add:** F00XN00-04-1 ([#7310](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7310)) ([ec8acc9](https://github.com/Koenkk/zigbee-herdsman-converters/commit/ec8acc9e5369087075869683161a57a5c2574367))
|
|
12
|
+
* **add:** ZBMicro ([#7234](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7234)) ([d972ea6](https://github.com/Koenkk/zigbee-herdsman-converters/commit/d972ea68745164b324bb0a0903f8e5da0143528c))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* Change AQI scale for Bosch 8750001213 Twinguard ([#7313](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7313)) ([c6f18b4](https://github.com/Koenkk/zigbee-herdsman-converters/commit/c6f18b40229bb5d9f080b1836074cd8d7cdad8ca))
|
|
18
|
+
* Convert IKEA to modern extend ([#7220](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7220)) ([c5b17c4](https://github.com/Koenkk/zigbee-herdsman-converters/commit/c5b17c4bdd62e40c5442cb2c05db26c495f551f8))
|
|
19
|
+
* **detect:** Detect `_TZ3000_zwszqdpy` as Ledron YK-16 ([#7309](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7309)) ([c8dc935](https://github.com/Koenkk/zigbee-herdsman-converters/commit/c8dc935581d4dd7d8eff507367e591c72200c961))
|
|
20
|
+
* **detect:** Detect `_TZE204_bjzrowv2` as TuYa TS0601_cover_1 https://github.com/Koenkk/zigbee2mqtt/issues/22016 ([dbf535c](https://github.com/Koenkk/zigbee-herdsman-converters/commit/dbf535c94244d6fb7966e1110342aad55994dc6b))
|
|
21
|
+
* Fix `args` not used & casing for link quality modern extend. ([#7311](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7311)) ([28eba92](https://github.com/Koenkk/zigbee-herdsman-converters/commit/28eba92a7ddb232fe6c4653f0fae4b380261bf4c))
|
|
22
|
+
* Merge TuYa TS0601_dimmer to TS0601_dimmer_1 ([#7231](https://github.com/Koenkk/zigbee-herdsman-converters/issues/7231)) ([23b5f08](https://github.com/Koenkk/zigbee-herdsman-converters/commit/23b5f085bfdce1b64188f8021a7b81f22c0b43ab))
|
|
23
|
+
|
|
3
24
|
## [19.11.2](https://github.com/Koenkk/zigbee-herdsman-converters/compare/v19.11.1...v19.11.2) (2024-04-01)
|
|
4
25
|
|
|
5
26
|
|
|
@@ -1161,40 +1161,6 @@ declare const converters: {
|
|
|
1161
1161
|
brightness?: undefined;
|
|
1162
1162
|
};
|
|
1163
1163
|
};
|
|
1164
|
-
E1524_E1810_toggle: {
|
|
1165
|
-
cluster: string;
|
|
1166
|
-
type: string;
|
|
1167
|
-
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
|
|
1168
|
-
action: string;
|
|
1169
|
-
};
|
|
1170
|
-
};
|
|
1171
|
-
ikea_arrow_click: {
|
|
1172
|
-
cluster: string;
|
|
1173
|
-
type: string;
|
|
1174
|
-
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
|
|
1175
|
-
action: string;
|
|
1176
|
-
};
|
|
1177
|
-
};
|
|
1178
|
-
ikea_arrow_hold: {
|
|
1179
|
-
cluster: string;
|
|
1180
|
-
type: string;
|
|
1181
|
-
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
|
|
1182
|
-
action: string;
|
|
1183
|
-
};
|
|
1184
|
-
};
|
|
1185
|
-
ikea_arrow_release: {
|
|
1186
|
-
cluster: string;
|
|
1187
|
-
type: string;
|
|
1188
|
-
options: exposes.Binary[];
|
|
1189
|
-
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => KeyValueAny;
|
|
1190
|
-
};
|
|
1191
|
-
E1524_E1810_levelctrl: {
|
|
1192
|
-
cluster: string;
|
|
1193
|
-
type: string[];
|
|
1194
|
-
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
|
|
1195
|
-
action: any;
|
|
1196
|
-
};
|
|
1197
|
-
};
|
|
1198
1164
|
ewelink_action: {
|
|
1199
1165
|
cluster: string;
|
|
1200
1166
|
type: string[];
|
|
@@ -1476,15 +1442,6 @@ declare const converters: {
|
|
|
1476
1442
|
action: string;
|
|
1477
1443
|
};
|
|
1478
1444
|
};
|
|
1479
|
-
tradfri_occupancy: {
|
|
1480
|
-
cluster: string;
|
|
1481
|
-
type: string;
|
|
1482
|
-
options: (exposes.Numeric | exposes.Binary)[];
|
|
1483
|
-
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
|
|
1484
|
-
occupancy: boolean;
|
|
1485
|
-
illuminance_above_threshold: boolean;
|
|
1486
|
-
};
|
|
1487
|
-
};
|
|
1488
1445
|
almond_click: {
|
|
1489
1446
|
cluster: string;
|
|
1490
1447
|
type: string[];
|
|
@@ -1521,14 +1478,6 @@ declare const converters: {
|
|
|
1521
1478
|
presence: boolean;
|
|
1522
1479
|
};
|
|
1523
1480
|
};
|
|
1524
|
-
E1745_requested_brightness: {
|
|
1525
|
-
cluster: string;
|
|
1526
|
-
type: string;
|
|
1527
|
-
convert: (model: import("../lib/types").Definition, msg: Fz.Message, publish: import("../lib/types").Publish, options: import("../lib/types").KeyValue, meta: Fz.Meta) => {
|
|
1528
|
-
requested_brightness_level: any;
|
|
1529
|
-
requested_brightness_percent: number;
|
|
1530
|
-
};
|
|
1531
|
-
};
|
|
1532
1481
|
heiman_scenes: {
|
|
1533
1482
|
cluster: string;
|
|
1534
1483
|
type: string[];
|
|
@@ -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;AA4hK1C,QAAA,MAAM,UAAU;;;;;;;;;;;;QA9TR;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA5iIH;;;WAGG;;;;;;QAoCH;;;WAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sKAkjHiD,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4wBpB,CAAC;AAEpD,eAAe,UAAU,CAAC"}
|
package/converters/fromZigbee.js
CHANGED
|
@@ -3029,75 +3029,6 @@ const converters1 = {
|
|
|
3029
3029
|
}
|
|
3030
3030
|
},
|
|
3031
3031
|
},
|
|
3032
|
-
E1524_E1810_toggle: {
|
|
3033
|
-
cluster: 'genOnOff',
|
|
3034
|
-
type: 'commandToggle',
|
|
3035
|
-
convert: (model, msg, publish, options, meta) => {
|
|
3036
|
-
return { action: (0, utils_1.postfixWithEndpointName)('toggle', msg, model, meta) };
|
|
3037
|
-
},
|
|
3038
|
-
},
|
|
3039
|
-
ikea_arrow_click: {
|
|
3040
|
-
cluster: 'genScenes',
|
|
3041
|
-
type: 'commandTradfriArrowSingle',
|
|
3042
|
-
convert: (model, msg, publish, options, meta) => {
|
|
3043
|
-
if ((0, utils_1.hasAlreadyProcessedMessage)(msg, model))
|
|
3044
|
-
return;
|
|
3045
|
-
if (msg.data.value === 2) {
|
|
3046
|
-
// This is send on toggle hold, ignore it as a toggle_hold is already handled above.
|
|
3047
|
-
return;
|
|
3048
|
-
}
|
|
3049
|
-
const direction = msg.data.value === 257 ? 'left' : 'right';
|
|
3050
|
-
return { action: `arrow_${direction}_click` };
|
|
3051
|
-
},
|
|
3052
|
-
},
|
|
3053
|
-
ikea_arrow_hold: {
|
|
3054
|
-
cluster: 'genScenes',
|
|
3055
|
-
type: 'commandTradfriArrowHold',
|
|
3056
|
-
convert: (model, msg, publish, options, meta) => {
|
|
3057
|
-
if ((0, utils_1.hasAlreadyProcessedMessage)(msg, model))
|
|
3058
|
-
return;
|
|
3059
|
-
const direction = msg.data.value === 3329 ? 'left' : 'right';
|
|
3060
|
-
globalStore.putValue(msg.endpoint, 'direction', direction);
|
|
3061
|
-
return { action: `arrow_${direction}_hold` };
|
|
3062
|
-
},
|
|
3063
|
-
},
|
|
3064
|
-
ikea_arrow_release: {
|
|
3065
|
-
cluster: 'genScenes',
|
|
3066
|
-
type: 'commandTradfriArrowRelease',
|
|
3067
|
-
options: [exposes.options.legacy()],
|
|
3068
|
-
convert: (model, msg, publish, options, meta) => {
|
|
3069
|
-
if ((0, utils_1.hasAlreadyProcessedMessage)(msg, model))
|
|
3070
|
-
return;
|
|
3071
|
-
const direction = globalStore.getValue(msg.endpoint, 'direction');
|
|
3072
|
-
if (direction) {
|
|
3073
|
-
globalStore.clearValue(msg.endpoint, 'direction');
|
|
3074
|
-
const duration = msg.data.value / 1000;
|
|
3075
|
-
const result = { action: `arrow_${direction}_release`, duration, action_duration: duration };
|
|
3076
|
-
if (!(0, utils_1.isLegacyEnabled)(options))
|
|
3077
|
-
delete result.duration;
|
|
3078
|
-
return result;
|
|
3079
|
-
}
|
|
3080
|
-
},
|
|
3081
|
-
},
|
|
3082
|
-
E1524_E1810_levelctrl: {
|
|
3083
|
-
cluster: 'genLevelCtrl',
|
|
3084
|
-
type: [
|
|
3085
|
-
'commandStepWithOnOff', 'commandStep', 'commandMoveWithOnOff', 'commandStopWithOnOff', 'commandMove', 'commandStop',
|
|
3086
|
-
'commandMoveToLevelWithOnOff',
|
|
3087
|
-
],
|
|
3088
|
-
convert: (model, msg, publish, options, meta) => {
|
|
3089
|
-
const lookup = {
|
|
3090
|
-
commandStepWithOnOff: 'brightness_up_click',
|
|
3091
|
-
commandStep: 'brightness_down_click',
|
|
3092
|
-
commandMoveWithOnOff: 'brightness_up_hold',
|
|
3093
|
-
commandStopWithOnOff: 'brightness_up_release',
|
|
3094
|
-
commandMove: 'brightness_down_hold',
|
|
3095
|
-
commandStop: 'brightness_down_release',
|
|
3096
|
-
commandMoveToLevelWithOnOff: 'toggle_hold',
|
|
3097
|
-
};
|
|
3098
|
-
return { action: lookup[msg.type] };
|
|
3099
|
-
},
|
|
3100
|
-
},
|
|
3101
3032
|
ewelink_action: {
|
|
3102
3033
|
cluster: 'genOnOff',
|
|
3103
3034
|
type: ['commandOn', 'commandOff', 'commandToggle'],
|
|
@@ -3606,32 +3537,6 @@ const converters1 = {
|
|
|
3606
3537
|
return payload;
|
|
3607
3538
|
},
|
|
3608
3539
|
},
|
|
3609
|
-
tradfri_occupancy: {
|
|
3610
|
-
cluster: 'genOnOff',
|
|
3611
|
-
type: 'commandOnWithTimedOff',
|
|
3612
|
-
options: [exposes.options.occupancy_timeout(), exposes.options.illuminance_below_threshold_check()],
|
|
3613
|
-
convert: (model, msg, publish, options, meta) => {
|
|
3614
|
-
const onlyWhenOnFlag = (msg.data.ctrlbits & 1) != 0;
|
|
3615
|
-
if (onlyWhenOnFlag &&
|
|
3616
|
-
(!options || !options.hasOwnProperty('illuminance_below_threshold_check') ||
|
|
3617
|
-
options.illuminance_below_threshold_check) &&
|
|
3618
|
-
!globalStore.hasValue(msg.endpoint, 'timer'))
|
|
3619
|
-
return;
|
|
3620
|
-
const timeout = options && options.hasOwnProperty('occupancy_timeout') ?
|
|
3621
|
-
Number(options.occupancy_timeout) : msg.data.ontime / 10;
|
|
3622
|
-
// Stop existing timer because motion is detected and set a new one.
|
|
3623
|
-
clearTimeout(globalStore.getValue(msg.endpoint, 'timer'));
|
|
3624
|
-
globalStore.clearValue(msg.endpoint, 'timer');
|
|
3625
|
-
if (timeout !== 0) {
|
|
3626
|
-
const timer = setTimeout(() => {
|
|
3627
|
-
publish({ occupancy: false });
|
|
3628
|
-
globalStore.clearValue(msg.endpoint, 'timer');
|
|
3629
|
-
}, timeout * 1000);
|
|
3630
|
-
globalStore.putValue(msg.endpoint, 'timer', timer);
|
|
3631
|
-
}
|
|
3632
|
-
return { occupancy: true, illuminance_above_threshold: onlyWhenOnFlag };
|
|
3633
|
-
},
|
|
3634
|
-
},
|
|
3635
3540
|
almond_click: {
|
|
3636
3541
|
cluster: 'ssIasAce',
|
|
3637
3542
|
type: ['commandArm'],
|
|
@@ -3781,17 +3686,6 @@ const converters1 = {
|
|
|
3781
3686
|
return { presence: true };
|
|
3782
3687
|
},
|
|
3783
3688
|
},
|
|
3784
|
-
E1745_requested_brightness: {
|
|
3785
|
-
// Possible values are 76 (30%) or 254 (100%)
|
|
3786
|
-
cluster: 'genLevelCtrl',
|
|
3787
|
-
type: 'commandMoveToLevelWithOnOff',
|
|
3788
|
-
convert: (model, msg, publish, options, meta) => {
|
|
3789
|
-
return {
|
|
3790
|
-
requested_brightness_level: msg.data.level,
|
|
3791
|
-
requested_brightness_percent: (0, utils_1.mapNumberRange)(msg.data.level, 0, 254, 0, 100),
|
|
3792
|
-
};
|
|
3793
|
-
},
|
|
3794
|
-
},
|
|
3795
3689
|
heiman_scenes: {
|
|
3796
3690
|
cluster: 'heimanSpecificScenes',
|
|
3797
3691
|
type: ['commandAtHome', 'commandGoOut', 'commandCinema', 'commandRepast', 'commandSleep'],
|