iobroker.zigbee2mqtt 2.8.0 → 2.10.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/README.md CHANGED
@@ -32,9 +32,20 @@ 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.10.0 (2023-08-12)
36
+
37
+ - (o0shojo0o) optimisation for the MQTT connection
38
+ - (o0shojo0o) fix for MQTT output type: attribute_and_json ([#87](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/87))
39
+ - (o0shojo0o) added support for external MQTT-Server credentials ([#148](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/148))
40
+ - *After update, Websocket Auth-Token must be set again, if used.*
41
+
42
+ ### 2.9.0 (2023-07-21)
43
+
44
+ - (o0shojo0o) added state `send_payload` to send a raw json payload
45
+
35
46
  ### 2.8.0 (2023-07-19)
36
47
 
37
- - (o0shojo0o) added WSS support for websoket connection([#191](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/191))
48
+ - (o0shojo0o) added WSS support for websoket connection ([#191](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/191))
38
49
  - (o0shojo0o) small fixes
39
50
 
40
51
  ### 2.7.5 (2023-04-08)
@@ -25,5 +25,9 @@
25
25
  "Brightness step should also turn the light on or off": "Brightness step soll auch das Licht ein- oder ausschalten",
26
26
  "Use Auth-Token": "Auth-Token verwenden",
27
27
  "Auth-Token (special characters are not supported)": "Auth-Token (Sonderzeichen werden nicht unterstützt)",
28
- "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Die Ereignisse wie „Gerät entfernt“ oder „Deaktiviert“ werden in der Beschreibung statt im Namen angezeigt."
29
- }
28
+ "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Die Ereignisse wie „Gerät entfernt“ oder „Deaktiviert“ werden in der Beschreibung statt im Namen angezeigt.",
29
+ "Scheme": "Scheme",
30
+ "Use MQTT Credentials": "MQTT-Anmeldeinformationen verwenden",
31
+ "MQTT Username": "MQTT-Benutzername",
32
+ "MQTT Password": "MQTT-Passwort"
33
+ }
@@ -26,5 +26,8 @@
26
26
  "Brightness move should also turn the light on or off": "Brightness move should also turn the light on or off",
27
27
  "Brightness step should also turn the light on or off": "Brightness step should also turn the light on or off",
28
28
  "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.",
29
- "Scheme": "Scheme"
29
+ "Scheme": "Scheme",
30
+ "Use MQTT Credentials": "Use MQTT Credentials",
31
+ "MQTT Username": "MQTT Username",
32
+ "MQTT Password": "MQTT Password"
30
33
  }
@@ -25,5 +25,9 @@
25
25
  "Proxy Zigbee2MQTT logs to ioBroker logs": "Proxy de registros Zigbee2MQTT a registros de ioBroker",
26
26
  "Brightness move should also turn the light on or off": "El movimiento de brillo también debe encender o apagar la luz",
27
27
  "Brightness step should also turn the light on or off": "El paso de brillo también debe encender o apagar la luz",
28
- "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Los eventos como 'Dispositivo eliminado' o 'Deshabilitado' se muestran en la descripción en lugar del nombre."
28
+ "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Los eventos como 'Dispositivo eliminado' o 'Deshabilitado' se muestran en la descripción en lugar del nombre.",
29
+ "Scheme": "Esquema",
30
+ "Use MQTT Credentials": "Usar credenciales MQTT",
31
+ "MQTT Username": "Nombre de usuario MQTT",
32
+ "MQTT Password": "Contraseña MQTT"
29
33
  }
@@ -25,5 +25,9 @@
25
25
  "Proxy Zigbee2MQTT logs to ioBroker logs": "Proxy Zigbee2MQTT se connecte aux journaux ioBroker",
26
26
  "Brightness move should also turn the light on or off": "Le mouvement de luminosité devrait également allumer ou éteindre la lumière",
27
27
  "Brightness step should also turn the light on or off": "L'étape de luminosité devrait également allumer ou éteindre la lumière",
28
- "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Les événements tels que 'Appareil supprimé' ou 'Désactivé' sont affichés dans la description plutôt que dans le nom."
28
+ "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Les événements tels que 'Appareil supprimé' ou 'Désactivé' sont affichés dans la description plutôt que dans le nom.",
29
+ "Scheme": "Schème",
30
+ "Use MQTT Credentials": "Utiliser les identifiants MQTT",
31
+ "MQTT Username": "Nom d'utilisateur MQTT",
32
+ "MQTT Password": "Mot de passe MQTT"
29
33
  }
@@ -25,5 +25,9 @@
25
25
  "Proxy Zigbee2MQTT logs to ioBroker logs": "Il proxy Zigbee2MQTT registra nei registri ioBroker",
26
26
  "Brightness move should also turn the light on or off": "Lo spostamento della luminosità dovrebbe anche accendere o spegnere la luce",
27
27
  "Brightness step should also turn the light on or off": "Il passo di luminosità dovrebbe anche accendere o spegnere la luce",
28
- "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Gli eventi come \"Dispositivo rimosso\" o \"Disabilitato\" vengono visualizzati nella descrizione anziché nel nome."
28
+ "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Gli eventi come \"Dispositivo rimosso\" o \"Disabilitato\" vengono visualizzati nella descrizione anziché nel nome.",
29
+ "Scheme": "schema",
30
+ "Use MQTT Credentials": "Usa le credenziali MQTT",
31
+ "MQTT Username": "Nome utente MQTT",
32
+ "MQTT Password": "Password MQTT"
29
33
  }
@@ -25,5 +25,9 @@
25
25
  "Proxy Zigbee2MQTT logs to ioBroker logs": "Proxy Zigbee2MQTT logt naar ioBroker-logboeken",
26
26
  "Brightness move should also turn the light on or off": "Helderheidsbeweging zou ook het licht aan of uit moeten zetten",
27
27
  "Brightness step should also turn the light on or off": "De helderheidsstap moet het licht ook in- of uitschakelen",
28
- "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "De gebeurtenissen zoals 'Apparaat verwijderd' of 'Uitgeschakeld' worden weergegeven in de beschrijving in plaats van in de naam."
28
+ "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "De gebeurtenissen zoals 'Apparaat verwijderd' of 'Uitgeschakeld' worden weergegeven in de beschrijving in plaats van in de naam.",
29
+ "Scheme": "Schema",
30
+ "Use MQTT Credentials": "Gebruik MQTT-referenties",
31
+ "MQTT Username": "MQTT-gebruikersnaam",
32
+ "MQTT Password": "MQTT-wachtwoord"
29
33
  }
@@ -25,5 +25,9 @@
25
25
  "Proxy Zigbee2MQTT logs to ioBroker logs": "Proxy Zigbee2MQTT loguje się do logów ioBroker",
26
26
  "Brightness move should also turn the light on or off": "Ruch jasności powinien również włączać lub wyłączać światło",
27
27
  "Brightness step should also turn the light on or off": "Krok jasności powinien również włączać lub wyłączać światło",
28
- "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Zdarzenia takie jak „Urządzenie usunięte” lub „Wyłączone” są wyświetlane w opisie zamiast w nazwie."
28
+ "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Zdarzenia takie jak „Urządzenie usunięte” lub „Wyłączone” są wyświetlane w opisie zamiast w nazwie.",
29
+ "Scheme": "Schemat",
30
+ "Use MQTT Credentials": "Użyj poświadczeń MQTT",
31
+ "MQTT Username": "Nazwa użytkownika MQTT",
32
+ "MQTT Password": "Hasło MQTT"
29
33
  }
@@ -25,5 +25,9 @@
25
25
  "Proxy Zigbee2MQTT logs to ioBroker logs": "Logs proxy Zigbee2MQTT para logs ioBroker",
26
26
  "Brightness move should also turn the light on or off": "O movimento de brilho também deve ligar ou desligar a luz",
27
27
  "Brightness step should also turn the light on or off": "A etapa de brilho também deve ligar ou desligar a luz",
28
- "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Os eventos como 'Dispositivo removido' ou 'Desativado' são exibidos na descrição em vez de no nome."
28
+ "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Os eventos como 'Dispositivo removido' ou 'Desativado' são exibidos na descrição em vez de no nome.",
29
+ "Scheme": "Esquema",
30
+ "Use MQTT Credentials": "Usar credenciais MQTT",
31
+ "MQTT Username": "Nome de usuário MQTT",
32
+ "MQTT Password": "Senha do MQTT"
29
33
  }
@@ -25,5 +25,9 @@
25
25
  "Proxy Zigbee2MQTT logs to ioBroker logs": "Проксировать журналы Zigbee2MQTT в журналы ioBroker",
26
26
  "Brightness move should also turn the light on or off": "Изменение яркости также должно включать или выключать свет.",
27
27
  "Brightness step should also turn the light on or off": "Шаг яркости также должен включать или выключать свет.",
28
- "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Такие события, как «Устройство удалено» или «Отключено», отображаются в описании, а не в названии."
28
+ "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Такие события, как «Устройство удалено» или «Отключено», отображаются в описании, а не в названии.",
29
+ "Scheme": "Схема",
30
+ "Use MQTT Credentials": "Используйте учетные данные MQTT",
31
+ "MQTT Username": "Имя пользователя MQTT",
32
+ "MQTT Password": "MQTT-пароль"
29
33
  }
@@ -25,5 +25,9 @@
25
25
  "Proxy Zigbee2MQTT logs to ioBroker logs": "Журнали проксі Zigbee2MQTT до журналів ioBroker",
26
26
  "Brightness move should also turn the light on or off": "Переміщення яскравості також повинно вмикати або вимикати світло",
27
27
  "Brightness step should also turn the light on or off": "Крок яскравості також повинен вмикати або вимикати світло",
28
- "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Такі події, як «Пристрій видалено» або «Вимкнено», відображаються в описі, а не в назві."
28
+ "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "Такі події, як «Пристрій видалено» або «Вимкнено», відображаються в описі, а не в назві.",
29
+ "Scheme": "Схема",
30
+ "Use MQTT Credentials": "Використовуйте облікові дані MQTT",
31
+ "MQTT Username": "Ім'я користувача MQTT",
32
+ "MQTT Password": "Пароль MQTT"
29
33
  }
@@ -25,5 +25,9 @@
25
25
  "Proxy Zigbee2MQTT logs to ioBroker logs": "代理 Zigbee2MQTT 日志到 ioBroker 日志",
26
26
  "Brightness move should also turn the light on or off": "亮度移动也应该打开或关闭灯",
27
27
  "Brightness step should also turn the light on or off": "亮度步骤也应该打开或关闭灯",
28
- "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "“设备已移除”或“已禁用”等事件显示在描述中而不是名称中。"
28
+ "The events such as 'Device removed' or 'Disabled' are displayed in the description instead of in the name.": "“设备已移除”或“已禁用”等事件显示在描述中而不是名称中。",
29
+ "Scheme": "方案",
30
+ "Use MQTT Credentials": "使用 MQTT 凭证",
31
+ "MQTT Username": "MQTT 用户名",
32
+ "MQTT Password": "MQTT 密码"
29
33
  }
@@ -97,6 +97,24 @@
97
97
  "newLine": false,
98
98
  "hidden": "data.connectionType != 'exmqtt'"
99
99
  },
100
+ "externalMqttServerCredentials": {
101
+ "type": "checkbox",
102
+ "label": "Use MQTT Credentials",
103
+ "newLine": true,
104
+ "hidden": "data.connectionType != 'exmqtt'"
105
+ },
106
+ "externalMqttServerUsername": {
107
+ "type": "text",
108
+ "label": "MQTT Username",
109
+ "newLine": true,
110
+ "hidden": "data.externalMqttServerCredentials != true ||data.connectionType != 'exmqtt'"
111
+ },
112
+ "externalMqttServerPassword": {
113
+ "type": "password",
114
+ "label": "MQTT Password",
115
+ "newLine": false,
116
+ "hidden": "data.externalMqttServerCredentials != true ||data.connectionType != 'exmqtt'"
117
+ },
100
118
  "mqttServerIPBind": {
101
119
  "type": "ip",
102
120
  "label": "MQTT-Server IP-Address bind",
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "zigbee2mqtt",
4
- "version": "2.8.0",
4
+ "version": "2.10.0",
5
5
  "news": {
6
+ "2.10.0": {
7
+ "en": "optimisation for the MQTT connection \nfix for MQTT output type: attribute_and_json ([#87](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/87))\nadded support for external MQTT-Server credentials ([#148](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/148))\n*After update, Websocket Auth-Token must be set again, if used.*",
8
+ "de": "optimierung der MQTT-Verbindung\nfix für den MQTT-Ausgangstyp: attribute_and_json #[87](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/87)\nunterstützung für externe MQTT-Server-Anmeldeinformationen #[148](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/148)\n*Nach dem Update muss Websocket Auth-Token wieder eingestellt werden, wenn verwendet*",
9
+ "ru": "оптимизация подключения к MQTT\nисправить для типа вывода MQTT: attribute_and_json #[87](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/87)\nдобавлена поддержка внешних учетных записей MQTT-Server #[148](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/148)\n*После обновления, Websocket Auth-Token должен быть установлен снова, если используется *",
10
+ "pt": "otimização para a conexão MQTT\ncorreção para o tipo de saída MQTT: atributo_and_json #[87](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/87)\nadicionado suporte para credenciais externas do MQTT-Server #[148](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/148)\n*Depois da atualização, Websocket Auth-Token deve ser definido novamente, se usado*",
11
+ "nl": "vertaling:\nvertaling:\nvoegde steun toe voor externe MQTT-Server credentials 48148:\nNa de update, moeten websocket Auth-Token opnieuw ingesteld worden, als gebruikt",
12
+ "fr": "optimisation de la connexion MQTT\ncorrection du type de sortie MQTT : attribute_and_json #[87](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/87)\najout d ' un appui aux pouvoirs externes de MQTT-Server #[148](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/148)\n*Après la mise à jour, Websocket Auth-Token doit être réinitialisé, si utilisé*",
13
+ "it": "ottimizzazione della connessione MQTT\ncorrezione del tipo di uscita MQTT: attribute_and_json #[87](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/87)\n[148](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/148)\n*Dopo l'aggiornamento, Websocket Auth-Token deve essere impostato di nuovo, se utilizzato*",
14
+ "es": "optimización para la conexión MQTT\nfix for MQTT output type: attributed_and_json #[87](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/87)\napoyo añadido a las credenciales externas de MQTT-Server #[148](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/148)\n*Después de la actualización, Websocket Auth-Token debe configurarse de nuevo, si se utiliza*",
15
+ "pl": "optymalizacja połączenia MQTT\nrezultaty na MQTT: attribute_and_json #87(https:/github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/87)\nwsparcie dla zewnętrznych MQTT-Server Credentials #148 (https:/github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/148)\n*After update, Websocket Auth-Token musi być ponownie ustawiony, jeśli jest używany *",
16
+ "uk": "оптимізація підключення MQTT\njavaScript licenses API Веб-сайт Go1.13.8\nдодано підтримку зовнішніх облікових записів MQTT-Server #[148](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/148)\n*Оновлення, Websocket Auth-Token необхідно встановити знову, якщо використовується*",
17
+ "zh-cn": "最惠国条款的生效\nfix MQTT产出类型:归属_and_json #[87](http://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/87)\n补充支持外贸总协定(第[148]号(http://github.com/oshojo0o/ioBroker.zigbee2mqt/issues/148)\n* 如使用最新资料,必须再次建立万维网。"
18
+ },
19
+ "2.9.0": {
20
+ "en": "added state `send_payload` to send a raw json payload",
21
+ "de": "add state send_payload to send a roh json payload",
22
+ "ru": "добавленное государство send_payload для отправки сырья json payload",
23
+ "pt": "adicionado estado send_payload para enviar uma carga de json cru",
24
+ "nl": "vertaling:",
25
+ "fr": "add state send_payload pour envoyer une charge utile json brute",
26
+ "it": "aggiunto stato send_payload per inviare un grezzo json payload",
27
+ "es": "añadir estado send_payload para enviar una carga de pago json cruda",
28
+ "pl": "wtedy dodane państwo przesyłają ładunek surowy json",
29
+ "uk": "додано державне відправлення_payload для відправки сировини json",
30
+ "zh-cn": "增派国家派遣国:缴交会费"
31
+ },
6
32
  "2.8.0": {
7
33
  "en": "added WSS support for websoket connection([#191](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/191))\nsmall fixes",
8
34
  "de": "wSS-Unterstützung für Websoket-Verbindung([#191](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/191)\nkleine fixierungen",
@@ -67,34 +93,50 @@
67
93
  "pl": "przepraszanie detekcji usuniętych urządzeń",
68
94
  "uk": "реконструкція виявлення видалених пристроїв",
69
95
  "zh-cn": "清除装置的探查工作"
70
- },
71
- "2.7.1": {
72
- "en": "added option for use folder description\nuse the iobroker device folder description for device description or events",
73
- "de": "zusatzoption für die ordnerbeschreibung\ndie beschreibung des iobroker geräteordners für gerätebeschreibung oder ereignisse",
74
- "ru": "добавлена опция для использования описания папки\nиспользуйте описание папки iobroker для описания устройства или событий",
75
- "pt": "opção adicionada para a descrição da pasta de uso\nuse a descrição da pasta do dispositivo iobroker para descrição do dispositivo ou eventos",
76
- "nl": "voegde de optie toe voor gebruik van de beschrijving\ngebruik de beschrijving van het iobroker apparaat voor beschrijving of gebeurtenissen",
77
- "fr": "option ajoutée pour la description du dossier d'utilisation\nutiliser la description du dossier de périphérique iobroker pour la description de périphérique ou les événements",
78
- "it": "opzione aggiunta per l'uso descrizione della cartella\nutilizzare la descrizione della cartella del dispositivo iobroker per la descrizione o gli eventi del dispositivo",
79
- "es": "opción adicional para la descripción de la carpeta de uso\nutilizar la descripción de la carpeta del dispositivo iobroker para la descripción del dispositivo o eventos",
80
- "pl": "dodać opcję do opisu folder\nużywanie iobrokerowego opisu danych dla opisu urządzenia lub zdarzeń",
81
- "uk": "доданий варіант для опису папок\nвикористовувати опис папки іоброкера для опису пристрою або подій",
82
- "zh-cn": "增加使用时说明的选择\n对装置说明或事件使用零散器装置的描述"
83
- },
84
- "2.7.0": {
85
- "en": "added support for wildcard actions (eg. *_single) ([#116](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/116))\nadded error handling optimizations ([more](https://github.com/ioBroker/ioBroker.repositories/pull/1976#issuecomment-1382038679))\nadded option `auth_token` for websocket connection ([#112](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/112))\nwebsocket timeout increased",
86
- "de": "unterstützung für Wildcard-Aktionen (z.B. *_single) [#116](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/116)\nfehlerbehandlungsoptimierungen [mehr](https://github.com/ioBroker/ioBroker.repositories/pull/1976#issuecomment-1382038679)\nzusatzoption auth_token für Websocket-Verbindung [#112](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/112)\nwebsocket timeout erhöht",
87
- "ru": "добавлена поддержка действий дикой карты (например *_один) [#116](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/116)\nдобавлены оптимизации обработки ошибок [more](https://github.com/ioBroker/ioBroker.repositories/pull/1976#issuecomment-1382038679)\nдобавлена опция auth_token для подключения к сети [#112](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/112)\ntimeout websocket увеличился",
88
- "pt": "apoio adicional para ações curingas (por exemplo: *_single) [#116](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/116)\notimizações adicionais de manuseio de erros [mais](https://github.com/ioBroker/ioBroker.repositories/pull/1976#comment-1382038679)\nadicionado opção auth_token para conexão websocket [#112](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/112)\ntimeout do websocket aumentou",
89
- "nl": "voegde ondersteuning toe voor wilde kaarten\nerror toegevoegd aan het omgaan met optimisaties / 1976 #isscombentub.comioBroker /ioBroker / iProker / 1976 3896 389\nvoegde optie toegevoegd voor websocket connectie [Ghtub.com/oshoo/ioBroker\nwebsocket time-out verhoogd",
90
- "fr": "ajout d ' un appui aux actions de wildcard (par exemple *_single) [#116](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/116)\noptimisation de la gestion des erreurs [plus](https://github.com/ioBroker/ioBroker.repositories/pull/1976#issuecomment-1382038679)\noption ajoutée auth_token for websocket connection [#112](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/112)\nwebsocket timeout augmenté",
91
- "it": "[#116](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/116)\n[continua](https://github.com/ioBroker/ioBroker.repositories/pull/1976#issuecomment-1382038679)\nopzione aggiunta auth_token per collegamento websocket [#112](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/112)\nwebsocket timeout aumentato",
92
- "es": "[#116](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/116)\n[más](https://github.com/ioBroker/ioBroker.repositories/pull/1976#issuecomment-1382038679)\nañadida la opción auth_token para la conexión websocket [#112](https://github.com/o0shojo0o/ioBroker.zigbee2mqt/issues/112)\ntiempo de websocket aumentó",
93
- "pl": "dodano wsparcie dla działań na rzecz dzikich kart (eg. *_single) #116(https:/github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/116)\ndodano optymalizację błędów (https:/github.com/ioBroker/ioBroker.repositories/pull/1976#issuecomment-1382038679)\nauth_token for websocket connection #112(https:/github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/112)\nczas dostępu do stron internetowych wzrastał",
94
- "uk": "додана підтримка дій дикої картки (наприклад, *_single) [#116](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/116)\nдодано оптимізацію обробки помилок [більше](https://github.com/ioBroker/ioBroker.repositories/pull/1976#productcomment-1382038679)\nдодано опцію auth_token для підключення websocket [#112](https://github.com/o0shojo0o/ioBroker.zigbee2mqtt/issues/112)\nwebsocket час",
95
- "zh-cn": "对野生卡行动(第 *_single)[第116](http://github.com/oshojo0o/ioBroker.zigbee2mqt/issues/116))的支持\n新增的错误处理优化[(http://github.com/ioBroker/ioBroker.reories/pull/1976#issuement-1382038679)\n添加以下选择:网站联系(第112号)(http://github.com/oshojo0o/ioBroker.zigbee2mqt/issues/112)\n网页"
96
96
  }
97
97
  },
98
+ "messages": [
99
+ {
100
+ "condition": {
101
+ "operand": "and",
102
+ "rules": [
103
+ "oldVersion<2.10.0",
104
+ "newVersion>=2.10.0"
105
+ ]
106
+ },
107
+ "title": {
108
+ "en": "Important notice!",
109
+ "de": "Wichtiger Hinweis!",
110
+ "ru": "Важное замечание!",
111
+ "pt": "Notícia importante!",
112
+ "nl": "Belangrijke mededeling!",
113
+ "fr": "Avis important!",
114
+ "it": "Avviso IMPORTANTE!",
115
+ "es": "¡Noticia importante!",
116
+ "pl": "Ważna uwaga!",
117
+ "uk": "Важливе повідомлення!",
118
+ "zh-cn": "重要的提醒!"
119
+ },
120
+ "text": {
121
+ "en": "After the update, the Websocket Auth-Token must be set again, if used.",
122
+ "de": "Nach dem Update muss der Websocket Auth-Token, falls verwendet, erneut gesetzt werden.",
123
+ "ru": "После обновления необходимо снова установить Auth-Token Websocket, если он используется.",
124
+ "pt": "Após a atualização, o Websocket Auth-Token deve ser configurado novamente, caso seja utilizado.",
125
+ "nl": "Na de update moet het Websocket Auth-Token, indien gebruikt, opnieuw worden ingesteld.",
126
+ "fr": "Après la mise à jour, le jeton d'authentification Websocket doit être à nouveau défini, s'il est utilisé.",
127
+ "it": "Dopo l'aggiornamento, il Websocket Auth-Token deve essere reimpostato, se utilizzato.",
128
+ "es": "Después de la actualización, el token de autenticación de Websocket debe configurarse nuevamente, si se usa.",
129
+ "pl": "Po aktualizacji należy ponownie ustawić Websocket Auth-Token, jeśli jest używany.",
130
+ "uk": "Після оновлення Websocket Auth-Token має бути встановлено знову, якщо він використовується.",
131
+ "zh-cn": "更新后,如果使用 Websocket Auth-Token,则必须重新设置。"
132
+ },
133
+ "level": "warn",
134
+ "buttons": [
135
+ "agree",
136
+ "cancel"
137
+ ]
138
+ }
139
+ ],
98
140
  "titleLang": {
99
141
  "en": "zigbee2mqtt",
100
142
  "de": "zigbee2mqtt",
@@ -191,6 +233,9 @@
191
233
  "dummyMqtt": false,
192
234
  "externalMqttServerIP": "",
193
235
  "externalMqttServerPort": 1883,
236
+ "externalMqttServerCredentials": false,
237
+ "externalMqttServerUsername": "",
238
+ "externalMqttServerPassword": "",
194
239
  "mqttServerIPBind": "0.0.0.0",
195
240
  "mqttServerPort": 1885,
196
241
  "webUIScheme": "http",
@@ -204,6 +249,14 @@
204
249
  "brightnessStepOnOff": false,
205
250
  "useEventInDesc": true
206
251
  },
252
+ "protectedNative": [
253
+ "externalMqttServerPassword",
254
+ "wsToken"
255
+ ],
256
+ "encryptedNative": [
257
+ "externalMqttServerPassword",
258
+ "wsToken"
259
+ ],
207
260
  "objects": [],
208
261
  "instanceObjects": [
209
262
  {
package/lib/check.js CHANGED
@@ -2,7 +2,8 @@ function checkConfig(config, log) {
2
2
  const checkAPIOptions = {
3
3
  legacy_api_enabled: config.advanced.legacy_api != false,
4
4
  legacy_availability_payload_enabled: config.advanced.legacy_availability_payload != false,
5
- device_legacy_enabled: config.device_options.legacy != false
5
+ device_legacy_enabled: config.device_options.legacy != false,
6
+ payload_contains_not_json: (config.advanced.output != 'attribute_and_json' && config.advanced.output != 'json')
6
7
  };
7
8
 
8
9
  if (Object.values(checkAPIOptions).filter(x => x == true).length > 0) {
@@ -11,12 +12,14 @@ function checkConfig(config, log) {
11
12
  if (checkAPIOptions.legacy_api_enabled == true) {
12
13
  log.error('Legacy api is activated, so the adapter can not work correctly!!!');
13
14
  log.error('Please add the following lines to your Zigbee2MQTT configuration.yaml:');
14
- log.error('legacy_api: false');
15
+ log.error('advanced:');
16
+ log.error(' legacy_api: false');
15
17
  log.error('');
16
18
  }
17
19
  if (checkAPIOptions.legacy_availability_payload_enabled == true) {
18
20
  log.error('Legacy Availability Payload is activated, thus the adapter cannot represent the availability of the devices!!!');
19
21
  log.error('Please add the following lines to your Zigbee2MQTT configuration.yaml:');
22
+ log.error('advanced:');
20
23
  log.error('legacy_availability_payload: false');
21
24
  log.error('');
22
25
  }
@@ -26,6 +29,16 @@ function checkConfig(config, log) {
26
29
  log.error('device_options:');
27
30
  log.error(' legacy: false');
28
31
  }
32
+ if (checkAPIOptions.payload_contains_not_json == true) {
33
+ log.error('MQTT output type must "attribute_and_json" or "json" , therefore the adapter may process the states of the devices correctly!!!');
34
+ log.error('Please add the following lines to your Zigbee2MQTT configuration.yaml:');
35
+ log.error('advanced:');
36
+ log.error(' output: json');
37
+ log.error('or');
38
+ log.error('advanced:');
39
+ log.error(' output: attribute_and_json');
40
+ log.error('');
41
+ }
29
42
  log.error('===================================================');
30
43
  log.error('===================================================');
31
44
  }
package/lib/exposes.js CHANGED
@@ -122,21 +122,6 @@ function genState(expose, role, name, desc) {
122
122
  state.type = typeof (val);
123
123
  }
124
124
 
125
- switch (state.type) {
126
- case 'boolean':
127
- state.def = false;
128
- break;
129
- case 'number':
130
- state.def = 0;
131
- break;
132
- case 'object':
133
- state.def = {};
134
- break;
135
- case 'string':
136
- state.def = '';
137
- break;
138
- }
139
-
140
125
  if (expose.endpoint) {
141
126
  state.epname = expose.endpoint;
142
127
  state.setattr = expose.name;
@@ -166,6 +151,23 @@ function genState(expose, role, name, desc) {
166
151
  break;
167
152
  }
168
153
 
154
+ // Try to set the state defaults
155
+ switch (state.type) {
156
+ case 'boolean':
157
+ state.def = false;
158
+ break;
159
+ case 'number':
160
+ state.def = state.min || 0;
161
+ break;
162
+ case 'object':
163
+ state.def = {};
164
+ break;
165
+ case 'string':
166
+ state.def = '';
167
+ break;
168
+ }
169
+
170
+
169
171
  return state;
170
172
  }
171
173
 
@@ -1033,6 +1035,7 @@ function createDeviceFromExposes(devicesMessag, config) {
1033
1035
  // Add default states
1034
1036
  pushToStates(statesDefs.available, z2mAccess.STATE);
1035
1037
  pushToStates(statesDefs.last_seen, z2mAccess.STATE);
1038
+ pushToStates(statesDefs.send_payload, z2mAccess.SET);
1036
1039
 
1037
1040
  // Create buttons for scenes
1038
1041
  for (const scene of scenes) {
package/lib/messages.js CHANGED
@@ -17,6 +17,7 @@ async function adapterInfo(config, log) {
17
17
  } else if (config.connectionType == 'exmqtt') {
18
18
  log.info(`|| Zigbee2MQTT Externanl MQTT Server: ${config.externalMqttServerIP}`);
19
19
  log.info(`|| Zigbee2MQTT Externanl MQTT Port: ${config.externalMqttServerPort}`);
20
+ log.info(`|| Zigbee2MQTT Externanl MQTT Credentials: ${config.externalMqttServerCredentials ? 'use' : 'unused'}`);
20
21
  } else if (config.connectionType == 'intmqtt') {
21
22
  log.info(`|| Zigbee2MQTT Internal MQTT IP-Bind: ${config.mqttServerIPBind}`);
22
23
  log.info(`|| Zigbee2MQTT Internal MQTT Port: ${config.mqttServerPort}`);