iobroker.zigbee2mqtt 2.4.2 → 2.4.3
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 +4 -0
- package/io-package.json +14 -14
- package/main.js +2 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -32,6 +32,10 @@ This adapter allows to control the data points of the devices of a Zigbee2MQTT i
|
|
|
32
32
|
Placeholder for the next version (at the beginning of the line):
|
|
33
33
|
### **WORK IN PROGRESS**
|
|
34
34
|
-->
|
|
35
|
+
### 2.4.3 (2022-11-23)
|
|
36
|
+
|
|
37
|
+
- (o0shojo0o) fix availability when `friendly_name` `/` contains
|
|
38
|
+
|
|
35
39
|
### 2.4.2 (2022-11-20)
|
|
36
40
|
|
|
37
41
|
- (o0shojo0o) added correct handling of `move_to_saturation`, `hue_move` and `brightness_move_to_level` ([#68](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/68))
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "zigbee2mqtt",
|
|
4
|
-
"version": "2.4.
|
|
4
|
+
"version": "2.4.3",
|
|
5
5
|
"news": {
|
|
6
|
+
"2.4.3": {
|
|
7
|
+
"en": "fix availability when `friendly_name` `/` contains",
|
|
8
|
+
"de": "verfügbarkeit korrigieren bei friendly_name `/` enthält",
|
|
9
|
+
"ru": "исправить доступность когда friendly_name `/` содержит",
|
|
10
|
+
"pt": "corrigir disponibilidade quando friendly_name `/` contém",
|
|
11
|
+
"nl": "_ _",
|
|
12
|
+
"fr": "fixer la disponibilité lorsque friendly_name `/` contient",
|
|
13
|
+
"it": "fissare la disponibilità quando amichevole_name `/` contiene",
|
|
14
|
+
"es": "fijar disponibilidad cuando friendly_name `/` contiene",
|
|
15
|
+
"pl": "ustanowić dostęp do przyjaznej nazwy. zawierać",
|
|
16
|
+
"uk": "застосувати доступність при дружній_ім`я `/` в наявності",
|
|
17
|
+
"zh-cn": "f 在友好的情况下,可提供“/”一词 内载"
|
|
18
|
+
},
|
|
6
19
|
"2.4.2": {
|
|
7
20
|
"en": "added correct handling of `move_to_saturation`, `hue_move` and `brightness_move_to_level` ([#68](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/68))\nfix when `friendly_name` `/` contains",
|
|
8
21
|
"de": "die korrekte Handhabung von move_to_saturation, hue_move und bright_move_to_level [#68](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/68)\nbei freundlich_name `/` enthält",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"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ń",
|
|
81
94
|
"uk": "додано підтримку [Lidl HG06467 ефектів](https://www.zigbee2mqtt.io/devices/HG06467.html#trigger-effects)\nдодана підтримка кольору hs\nсимулятор_brightness дата додано тільки для підтримуваних пристроїв",
|
|
82
95
|
"zh-cn": "进一步支持[Lidl HG06467效应](http://www.zigbee2mqt.io/devices/HG06467.html#er-effects)\nb. 对地壳的增援\n仅为支助装置增添了简历数据点。"
|
|
83
|
-
},
|
|
84
|
-
"2.1.1": {
|
|
85
|
-
"en": "advanced detection if a device has been removed\nfixes the design error in the websocket connection",
|
|
86
|
-
"de": "fortgeschrittene erkennung, wenn ein gerät entfernt wurde\nkorrigiert den designfehler in der websocket-verbindung",
|
|
87
|
-
"ru": "предварительное обнаружение, если устройство было удалено\nисправляет ошибку дизайна в подключении к сети",
|
|
88
|
-
"pt": "detecção avançada se um dispositivo foi removido\ncorrige o erro de projeto na conexão websocket",
|
|
89
|
-
"nl": "als er een apparaat verwijderd is\nde ontwerpfout in de websocket verbinding",
|
|
90
|
-
"fr": "détection avancée si un dispositif a été enlevé\ncorrige l'erreur de conception dans la connexion websocket",
|
|
91
|
-
"it": "rilevamento avanzato se un dispositivo è stato rimosso\ncorregge l'errore di progettazione nella connessione websocket",
|
|
92
|
-
"es": "detección avanzada si se ha eliminado un dispositivo\nfija el error de diseño en la conexión websocket",
|
|
93
|
-
"pl": "wykrywanie zaawansowane, jeśli urządzenie zostało usunięte\numożliwia to błędy projektowe w łączu internetowym",
|
|
94
|
-
"uk": "розширене виявлення, якщо пристрій було видалено\nвиправлено помилку дизайну в підключенні websocket",
|
|
95
|
-
"zh-cn": "如果一个装置被拆除,则预先发现\nf 确定网站的设计错误"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
package/main.js
CHANGED
|
@@ -193,7 +193,6 @@ class Zigbee2mqtt extends core.Adapter {
|
|
|
193
193
|
{
|
|
194
194
|
// {"payload":{"state":"online"},"topic":"FL.Licht.Links/availability"} ----> {"payload":{"available":true},"topic":"FL.Licht.Links"}
|
|
195
195
|
if (messageObj.topic.endsWith('/availability')) {
|
|
196
|
-
const topicSplit = messageObj.topic.split('/');
|
|
197
196
|
|
|
198
197
|
// If an availability message for an old device ID comes with a payload of NULL, this is the indicator that a device has been unnamed.
|
|
199
198
|
// If this is then still available in the cache, the messages must first be cached.
|
|
@@ -201,10 +200,10 @@ class Zigbee2mqtt extends core.Adapter {
|
|
|
201
200
|
break;
|
|
202
201
|
}
|
|
203
202
|
|
|
204
|
-
if (
|
|
203
|
+
if (messageObj.payload && messageObj.payload.state) {
|
|
205
204
|
const newMessage = {
|
|
206
205
|
payload: { available: messageObj.payload.state == 'online' },
|
|
207
|
-
topic:
|
|
206
|
+
topic: messageObj.topic.replace('/availability', '')
|
|
208
207
|
};
|
|
209
208
|
statesController.processDeviceMessage(newMessage);
|
|
210
209
|
}
|