iobroker.zigbee2mqtt 2.1.1 → 2.2.1
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/README.md +12 -0
- package/admin/i18n/de/translations.json +1 -1
- package/io-package.json +27 -25
- package/lib/check.js +30 -30
- package/lib/colors.js +442 -443
- package/lib/deviceController.js +239 -233
- package/lib/exposes.js +901 -859
- package/lib/messages.js +31 -31
- package/lib/mqttServerController.js +30 -30
- package/lib/nonGenericDevicesExtension.js +47 -0
- package/lib/rgb.js +227 -203
- package/lib/states.js +6375 -6374
- package/lib/statesController.js +137 -129
- package/lib/utils.js +82 -82
- package/lib/websocketController.js +58 -58
- package/lib/z2mController.js +64 -64
- package/main.js +202 -201
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -30,6 +30,18 @@ This adapter allows to control the data points of the devices of a Zigbee2MQTT i
|
|
|
30
30
|
Placeholder for the next version (at the beginning of the line):
|
|
31
31
|
### **WORK IN PROGRESS**
|
|
32
32
|
-->
|
|
33
|
+
### 2.2.1 (2022-10-25)
|
|
34
|
+
|
|
35
|
+
- (o0shojo0o) fix state roles and access
|
|
36
|
+
- (o0shojo0o) fix state handling
|
|
37
|
+
- (o0shojo0o) fix createZ2MMessage
|
|
38
|
+
|
|
39
|
+
### 2.2.0 (2022-10-20)
|
|
40
|
+
|
|
41
|
+
- (o0shojo0o) added support for [Lidl HG06467 effects](https://www.zigbee2mqtt.io/devices/HG06467.html#trigger-effects)
|
|
42
|
+
- (o0shojo0o) added support for hs color
|
|
43
|
+
- (o0shojo0o) simulated_brightness data point is added only for supported devices
|
|
44
|
+
|
|
33
45
|
### 2.1.1 (2022-10-16)
|
|
34
46
|
|
|
35
47
|
- (o0shojo0o) advanced detection if a device has been removed
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"External MQTT-Server Port": "Externer MQTT-Server Port",
|
|
14
14
|
"MQTT-Server IP-Address bind": "MQTT-Server IP-Adresse binden",
|
|
15
15
|
"MQTT-Server Port": "MQTT-Server-Port",
|
|
16
|
-
"Configure your Zigbee2MQTT WebUi connection": "Zigbee2MQTT WebUi Verbindung
|
|
16
|
+
"Configure your Zigbee2MQTT WebUi connection": "Konfiguration der Zigbee2MQTT WebUi Verbindung",
|
|
17
17
|
"WebUi Address": "WebUi Adresse",
|
|
18
18
|
"WebUi Port": "WebUi Port",
|
|
19
19
|
"Color configurations": "Farbkonfigurationen",
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "zigbee2mqtt",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.1",
|
|
5
5
|
"news": {
|
|
6
|
+
"2.2.1": {
|
|
7
|
+
"en": "fix state roles and access\nfix state handling\nfix createZ2MMessage",
|
|
8
|
+
"de": "zustandsrollen und zugriff beheben\nmanuelle zustandsbearbeitung\nfix erstellenZ2MMessage",
|
|
9
|
+
"ru": "исправить государственные роли и доступ\nисправить государственную обработку\nисправить CreateZ2MMessage",
|
|
10
|
+
"pt": "corrigir funções estaduais e acesso\ncorrigir o manuseio do estado\ncorrigir createZ2MMessage",
|
|
11
|
+
"nl": "vertaling:\nvertaling:\nvertaling:",
|
|
12
|
+
"fr": "fixer les rôles de l'état et l'accès\nmaniement de l ' état\nfix createZ2MMessage",
|
|
13
|
+
"it": "fissare i ruoli dello stato e l'accesso\ncorretta gestione dello stato\nfix createZ2MMessage",
|
|
14
|
+
"es": "fijar funciones estatales y acceso\ncorrección del estado\nfix createZ2MMessage",
|
|
15
|
+
"pl": "uchwała rola państwowa i dostęp\nnaprawa\ntworzenie Z2MM",
|
|
16
|
+
"uk": "фіксувати державні ролі і доступ\nфіксувати стан обробки\nфіксатор творуZ2MMessage",
|
|
17
|
+
"zh-cn": "fix 国家作用和准入\nfix 国家处理\nfix 建立Z2MMessage"
|
|
18
|
+
},
|
|
19
|
+
"2.2.0": {
|
|
20
|
+
"en": "added support for [Lidl HG06467 effects](https://www.zigbee2mqtt.io/devices/HG06467.html#trigger-effects)\nadded support for hs color\nsimulated_brightness data point is added only for supported devices",
|
|
21
|
+
"de": "unterstützung für [Lidl HG06467-Effekte](https://www.zigbee2mqt.io/devices/HG06467.html#trigger-Effekte)\nunterstützung für hs farbe\nsimuld_brightness-datenpunkt wird nur für unterstützte geräte hinzugefügt",
|
|
22
|
+
"ru": "добавлена поддержка [Lidl HG06467 effects](https://www.zigbee2mqtt.io/devices/HG06467.html#trigger-effects)\nдобавлена поддержка цвета hs\nsimulated_brightness дата точка добавлена только для поддерживаемых устройств",
|
|
23
|
+
"pt": "apoio adicional para efeitos [Lidl HG06467](https://www.zigbee2mqtt.io/devices/HG06467.html#trigger-effects)\nsuporte adicionado para cor hs\nsimulated_brightness data point é adicionado apenas para dispositivos suportados",
|
|
24
|
+
"nl": "quality over Quantity (QoQ) Releases Vertaling:\nvertaling:\nvertaling:",
|
|
25
|
+
"fr": "ajouté support for [Lidl HG06467 effects](https://www.zigbee2mqt.io/devices/HG06467.html#trigger-effects)\nsupport ajouté pour la couleur hs\nsimuld_brightness data point est ajouté seulement pour les appareils pris en charge",
|
|
26
|
+
"it": "[Lidl HG06467 Effects](https://www.zigbee2mqtt.io/devices/HG06467.html#trigger-effetti)\nsupporto aggiunto per il colore hs\nil punto di dati simulated_brightness viene aggiunto solo per i dispositivi supportati",
|
|
27
|
+
"es": "[Lidl HG06467 effects](https://www.zigbee2mqtt.io/devices/HG06467.html#trigger-effects)\nsoporte añadido para el color hs\nsimulated_brightness punto de datos se añade sólo para dispositivos compatibles",
|
|
28
|
+
"pl": "dodano wsparcie dla Lidla HG06467 efektów (https:/wwww.zigbee2mqtt.io/devices/HG06467.html#trigger)\ndodano obsługę koloru hs\nsymulacja danych _brighta jest dodana tylko dla obsługi urządzeń",
|
|
29
|
+
"uk": "додано підтримку [Lidl HG06467 ефектів](https://www.zigbee2mqtt.io/devices/HG06467.html#trigger-effects)\nдодана підтримка кольору hs\nсимулятор_brightness дата додано тільки для підтримуваних пристроїв",
|
|
30
|
+
"zh-cn": "进一步支持[Lidl HG06467效应](http://www.zigbee2mqt.io/devices/HG06467.html#er-effects)\nb. 对地壳的增援\n仅为支助装置增添了简历数据点。"
|
|
31
|
+
},
|
|
6
32
|
"2.1.1": {
|
|
7
33
|
"en": "advanced detection if a device has been removed\nfixes the design error in the websocket connection",
|
|
8
34
|
"de": "fortgeschrittene erkennung, wenn ein gerät entfernt wurde\nkorrigiert den designfehler in der websocket-verbindung",
|
|
@@ -65,30 +91,6 @@
|
|
|
65
91
|
"es": "estados del grupo corregidos\nopción agregada 'Use Kelvin en lugar de mired para el color temps '\neliminar la lógica disponible, ahora utilizará la información de z2m\nnoLogDevices to logfilter\nmuchos bugfixes\nnoLogDevices funcionalidad\ndebugmesage añadido para la funcionalidad específica del dispositivo\nañadido algunos estados son falsos\nsoporte añadido para escenas definidas en un dispositivo\nfijar la función estatal disponible\nfijar suscriptosEstados disponibles",
|
|
66
92
|
"pl": "państwa grupowe poprawiły\ndodał opcję 'Use Kelvin' zamiast śmiać kolorowe tempo. '\nzdejmowanie dostępnej logiki wykorzystuje obecnie informacje z 2 m\nnazwa NoLogDevices (ang.)\nwiele błędów\ndodano obsługę NoLogDevices\ndodanie debugmessage dla konkretnej funkcjonalności\ndodanie niektórych stanów jest fałszywe\ndodano wsparcie dla scen zdefiniowanych na urządzenie\nfunkcja stanowa\nrecovery",
|
|
67
93
|
"zh-cn": "更正\n加上“Use Kelvin”的备选办法,而不是对色彩的诱惑。 评 注\n删除现有逻辑,现在将使用兹2m的信息。\n目 录\n批发\n增加无车辆功能\n增加特定装置功能的碎片\n另有一些国家的违约情况\n对一个装置所界定的场地的更多支持\nf 现有国家作用\nfix 有线性的国家"
|
|
68
|
-
},
|
|
69
|
-
"0.1.0": {
|
|
70
|
-
"en": "first release",
|
|
71
|
-
"de": "erste veröffentlichung",
|
|
72
|
-
"ru": "первый релиз",
|
|
73
|
-
"pt": "primeiro lançamento",
|
|
74
|
-
"nl": "eerste vrijlating",
|
|
75
|
-
"fr": "première version",
|
|
76
|
-
"it": "primo rilascio",
|
|
77
|
-
"es": "primera liberación",
|
|
78
|
-
"pl": "pierwsze wydanie",
|
|
79
|
-
"zh-cn": "首次释放"
|
|
80
|
-
},
|
|
81
|
-
"0.0.1": {
|
|
82
|
-
"en": "initial release",
|
|
83
|
-
"de": "Erstveröffentlichung",
|
|
84
|
-
"ru": "Начальная версия",
|
|
85
|
-
"pt": "lançamento inicial",
|
|
86
|
-
"nl": "Eerste uitgave",
|
|
87
|
-
"fr": "Première version",
|
|
88
|
-
"it": "Versione iniziale",
|
|
89
|
-
"es": "Versión inicial",
|
|
90
|
-
"pl": "Pierwsze wydanie",
|
|
91
|
-
"zh-cn": "首次出版"
|
|
92
94
|
}
|
|
93
95
|
},
|
|
94
96
|
"titleLang": {
|
package/lib/check.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
function checkConfig(config, log) {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
const checkAPIOptions = {
|
|
3
|
+
legacy_api_enabled: config.advanced.legacy_api != false,
|
|
4
|
+
legacy_availability_payload_enabled: config.advanced.legacy_availability_payload != false,
|
|
5
|
+
device_legacy_enabled: config.device_options.legacy != false
|
|
6
|
+
};
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
8
|
+
if (Object.values(checkAPIOptions).filter(x => x == true).length > 0) {
|
|
9
|
+
log.error('===================================================');
|
|
10
|
+
log.error('===================================================');
|
|
11
|
+
if (checkAPIOptions.legacy_api_enabled == true) {
|
|
12
|
+
log.error('Legacy api is activated, so the adapter can not work correctly!!!');
|
|
13
|
+
log.error('Please add the following lines to your Zigbee2MQTT configuration.yaml:');
|
|
14
|
+
log.error('legacy_api: false');
|
|
15
|
+
log.error('');
|
|
16
|
+
}
|
|
17
|
+
if (checkAPIOptions.legacy_availability_payload_enabled == true) {
|
|
18
|
+
log.error('Legacy Availability Payload is activated, thus the adapter cannot represent the availability of the devices!!!');
|
|
19
|
+
log.error('Please add the following lines to your Zigbee2MQTT configuration.yaml:');
|
|
20
|
+
log.error('legacy_availability_payload: false');
|
|
21
|
+
log.error('');
|
|
22
|
+
}
|
|
23
|
+
if (checkAPIOptions.device_legacy_enabled == true) {
|
|
24
|
+
log.error('Device Legacy Payload is activated, therefore the adapter may process the states of the devices correctly!!!');
|
|
25
|
+
log.error('Please add the following lines to your Zigbee2MQTT configuration.yaml:');
|
|
26
|
+
log.error('device_options:');
|
|
27
|
+
log.error(' legacy: false');
|
|
28
|
+
}
|
|
29
|
+
log.error('===================================================');
|
|
30
|
+
log.error('===================================================');
|
|
31
|
+
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
module.exports = {
|
|
35
|
-
|
|
35
|
+
checkConfig: checkConfig,
|
|
36
36
|
};
|