iobroker.lorawan 1.10.21 → 1.10.22
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 +3 -0
- package/admin/i18n/de/translations.json +5 -1
- package/admin/i18n/en/translations.json +5 -1
- package/admin/i18n/es/translations.json +7 -1
- package/admin/i18n/fr/translations.json +7 -1
- package/admin/i18n/it/translations.json +7 -1
- package/admin/i18n/nl/translations.json +7 -1
- package/admin/i18n/pl/translations.json +7 -1
- package/admin/i18n/pt/translations.json +7 -1
- package/admin/i18n/ru/translations.json +7 -1
- package/admin/i18n/uk/translations.json +7 -1
- package/admin/i18n/zh-cn/translations.json +7 -1
- package/admin/jsonConfig.json +15 -0
- package/io-package.json +15 -14
- package/lib/modules/mqttclient.js +14 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,6 +23,9 @@ For now there is documentation in English here: https://wiki.hafenmeister.de
|
|
|
23
23
|
Placeholder for the next version (at the beginning of the line):
|
|
24
24
|
### **WORK IN PROGRESS**
|
|
25
25
|
-->
|
|
26
|
+
### 1.10.22 (2025-07-27)
|
|
27
|
+
* (BenAhrdt) config notification and / or logging in case of connection state to LNS
|
|
28
|
+
|
|
26
29
|
### 1.10.21 (2025-07-27)
|
|
27
30
|
* (BenAhrdt) add extSersorTemperature unit "°C"
|
|
28
31
|
|
|
@@ -88,5 +88,9 @@
|
|
|
88
88
|
"customControlJsonActive": "„control-custom“-JSON",
|
|
89
89
|
"customControlJsonActiveTooltip": "Mit dieser Funktion fügen Sie den gewünschten JSON zum common.custom-Objekt der states aus dem control channel hinzu",
|
|
90
90
|
"customDeleteDesciption": "Um einen Eintrag zu löschen, geben Sie bitte den Eintrag mit dem Inhalt „null“ ein.",
|
|
91
|
-
"customDeleteDescriptionImageTooltip": "Informationen zum Entfernen eines vorhandenen Eintrags."
|
|
91
|
+
"customDeleteDescriptionImageTooltip": "Informationen zum Entfernen eines vorhandenen Eintrags.",
|
|
92
|
+
"notificationActivation": "Benachrichtigungsaktivierung",
|
|
93
|
+
"notificationTooltip": "Aktivieren oder deaktivieren Sie die Benachrichtigung",
|
|
94
|
+
"no notification": "Keine Benachrichtigung",
|
|
95
|
+
"notification": "Benachrichtigung"
|
|
92
96
|
}
|
|
@@ -19,6 +19,8 @@
|
|
|
19
19
|
"OriginInformation": "Set the origin of the expected data",
|
|
20
20
|
"origin":"origin",
|
|
21
21
|
"originTooltip": "select the origin of your data",
|
|
22
|
+
"notificationActivation": "notification activation",
|
|
23
|
+
"notificationTooltip": "activate or deactivate the notification",
|
|
22
24
|
"downlinkConfig": "Donwlink-konfiguration",
|
|
23
25
|
"name": "name",
|
|
24
26
|
"nameTooltip": "insert the name of the state, for this dowlink",
|
|
@@ -88,5 +90,7 @@
|
|
|
88
90
|
"customControlJsonActive" : "\"control-custom\"-JSON",
|
|
89
91
|
"customControlJsonActiveTooltip" : "With this function you add the desired JSON on the custom entrie from the control channel",
|
|
90
92
|
"customDeleteDesciption": "To delete an entry, please enter the entry with content \"null\".",
|
|
91
|
-
"customDeleteDescriptionImageTooltip": "Information about removing an existing entry."
|
|
93
|
+
"customDeleteDescriptionImageTooltip": "Information about removing an existing entry.",
|
|
94
|
+
"notification": "notification",
|
|
95
|
+
"no notification": "no notification"
|
|
92
96
|
}
|
|
@@ -88,5 +88,11 @@
|
|
|
88
88
|
"customControlJsonActive": "\"control-personalizado\"-JSON",
|
|
89
89
|
"customControlJsonActiveTooltip": "Con esta función agrega el JSON deseado en la entrada personalizada del canal de control",
|
|
90
90
|
"customDeleteDesciption": "Para eliminar una entrada, ingrese la entrada con contenido \"nulo\".",
|
|
91
|
-
"customDeleteDescriptionImageTooltip": "Información sobre cómo eliminar una entrada existente."
|
|
91
|
+
"customDeleteDescriptionImageTooltip": "Información sobre cómo eliminar una entrada existente.",
|
|
92
|
+
"notificationActivation": "activación de notificación",
|
|
93
|
+
"notificationTooltip": "activar o desactivar la notificación",
|
|
94
|
+
"no notifiaction": "notificación de keine",
|
|
95
|
+
"notifiaction": "notificación",
|
|
96
|
+
"notification": "notificación",
|
|
97
|
+
"no notification": "Sin notificación"
|
|
92
98
|
}
|
|
@@ -88,5 +88,11 @@
|
|
|
88
88
|
"customControlJsonActive": "\"contrôle-personnalisé\"-JSON",
|
|
89
89
|
"customControlJsonActiveTooltip": "Avec cette fonction, vous ajoutez le JSON souhaité sur l'entrée personnalisée du canal de contrôle",
|
|
90
90
|
"customDeleteDesciption": "Pour supprimer une entrée, veuillez saisir l'entrée avec le contenu \"null\".",
|
|
91
|
-
"customDeleteDescriptionImageTooltip": "Informations sur la suppression d'une entrée existante."
|
|
91
|
+
"customDeleteDescriptionImageTooltip": "Informations sur la suppression d'une entrée existante.",
|
|
92
|
+
"notificationActivation": "activation de la notification",
|
|
93
|
+
"notificationTooltip": "activer ou désactiver la notification",
|
|
94
|
+
"no notifiaction": "Notification Keine",
|
|
95
|
+
"notifiaction": "notification",
|
|
96
|
+
"notification": "notification",
|
|
97
|
+
"no notification": "Aucune notification"
|
|
92
98
|
}
|
|
@@ -88,5 +88,11 @@
|
|
|
88
88
|
"customControlJsonActive": "\"controllo-personalizzato\"-JSON",
|
|
89
89
|
"customControlJsonActiveTooltip": "Con questa funzione aggiungi il JSON desiderato alla voce personalizzata dal canale di controllo",
|
|
90
90
|
"customDeleteDesciption": "Per eliminare una voce, inserire la voce con il contenuto \"null\".",
|
|
91
|
-
"customDeleteDescriptionImageTooltip": "Informazioni sulla rimozione di una voce esistente."
|
|
91
|
+
"customDeleteDescriptionImageTooltip": "Informazioni sulla rimozione di una voce esistente.",
|
|
92
|
+
"notificationActivation": "Attivazione della notifica",
|
|
93
|
+
"notificationTooltip": "attivare o disattivare la notifica",
|
|
94
|
+
"no notifiaction": "Notifica di Keine",
|
|
95
|
+
"notifiaction": "notifica",
|
|
96
|
+
"notification": "notifica",
|
|
97
|
+
"no notification": "nessuna notifica"
|
|
92
98
|
}
|
|
@@ -88,5 +88,11 @@
|
|
|
88
88
|
"customControlJsonActive": "\"control-custom\"-JSON",
|
|
89
89
|
"customControlJsonActiveTooltip": "Met deze functie voeg je de gewenste JSON toe aan de custom entry vanuit het control channel",
|
|
90
90
|
"customDeleteDesciption": "Om een vermelding te verwijderen, voert u de vermelding in met de inhoud \"null\".",
|
|
91
|
-
"customDeleteDescriptionImageTooltip": "Informatie over het verwijderen van een bestaand item."
|
|
91
|
+
"customDeleteDescriptionImageTooltip": "Informatie over het verwijderen van een bestaand item.",
|
|
92
|
+
"notificationActivation": "Activering van melding",
|
|
93
|
+
"notificationTooltip": "de melding activeren of deactiveren",
|
|
94
|
+
"no notifiaction": "Keine -kennisgeving",
|
|
95
|
+
"notifiaction": "kennisgeving",
|
|
96
|
+
"notification": "kennisgeving",
|
|
97
|
+
"no notification": "Geen melding"
|
|
92
98
|
}
|
|
@@ -88,5 +88,11 @@
|
|
|
88
88
|
"customControlJsonActive": "„kontrola niestandardowa” - JSON",
|
|
89
89
|
"customControlJsonActiveTooltip": "Dzięki tej funkcji dodajesz żądany JSON do niestandardowego wpisu z kanału kontrolnego",
|
|
90
90
|
"customDeleteDesciption": "Aby usunąć wpis, wprowadź wpis o treści „null”.",
|
|
91
|
-
"customDeleteDescriptionImageTooltip": "Informacja o usunięciu istniejącego wpisu."
|
|
91
|
+
"customDeleteDescriptionImageTooltip": "Informacja o usunięciu istniejącego wpisu.",
|
|
92
|
+
"notificationActivation": "Aktywacja powiadomienia",
|
|
93
|
+
"notificationTooltip": "aktywuj lub dezaktywuj powiadomienie",
|
|
94
|
+
"no notifiaction": "Powiadomienie Keine",
|
|
95
|
+
"notifiaction": "powiadomienie",
|
|
96
|
+
"notification": "powiadomienie",
|
|
97
|
+
"no notification": "Brak powiadomienia"
|
|
92
98
|
}
|
|
@@ -88,5 +88,11 @@
|
|
|
88
88
|
"customControlJsonActive": "\"controle personalizado\"-JSON",
|
|
89
89
|
"customControlJsonActiveTooltip": "Com esta função você adiciona o JSON desejado na entrada personalizada do canal de controle",
|
|
90
90
|
"customDeleteDesciption": "Para excluir uma entrada, insira a entrada com conteúdo \"nulo\".",
|
|
91
|
-
"customDeleteDescriptionImageTooltip": "Informações sobre como remover uma entrada existente."
|
|
91
|
+
"customDeleteDescriptionImageTooltip": "Informações sobre como remover uma entrada existente.",
|
|
92
|
+
"notificationActivation": "Ativação de notificação",
|
|
93
|
+
"notificationTooltip": "ativar ou desativar a notificação",
|
|
94
|
+
"no notifiaction": "Notificação de Keine",
|
|
95
|
+
"notifiaction": "notificação",
|
|
96
|
+
"notification": "notificação",
|
|
97
|
+
"no notification": "nenhuma notificação"
|
|
92
98
|
}
|
|
@@ -88,5 +88,11 @@
|
|
|
88
88
|
"customControlJsonActive": "«контроль-пользовательский»-JSON",
|
|
89
89
|
"customControlJsonActiveTooltip": "С помощью этой функции вы добавляете желаемый JSON в пользовательскую запись из канала управления.",
|
|
90
90
|
"customDeleteDesciption": "Чтобы удалить запись, введите запись с содержимым «null».",
|
|
91
|
-
"customDeleteDescriptionImageTooltip": "Информация об удалении существующей записи."
|
|
91
|
+
"customDeleteDescriptionImageTooltip": "Информация об удалении существующей записи.",
|
|
92
|
+
"notificationActivation": "активация уведомления",
|
|
93
|
+
"notificationTooltip": "активировать или деактивировать уведомление",
|
|
94
|
+
"no notifiaction": "Кейн уведомление",
|
|
95
|
+
"notifiaction": "уведомление",
|
|
96
|
+
"notification": "уведомление",
|
|
97
|
+
"no notification": "Нет уведомления"
|
|
92
98
|
}
|
|
@@ -88,5 +88,11 @@
|
|
|
88
88
|
"customControlJsonActive": "\"control-custom\"-JSON",
|
|
89
89
|
"customControlJsonActiveTooltip": "За допомогою цієї функції ви додаєте потрібний JSON до спеціального запису з каналу керування",
|
|
90
90
|
"customDeleteDesciption": "Щоб видалити запис, будь ласка, введіть запис із вмістом \"null\".",
|
|
91
|
-
"customDeleteDescriptionImageTooltip": "Інформація про видалення існуючого запису."
|
|
91
|
+
"customDeleteDescriptionImageTooltip": "Інформація про видалення існуючого запису.",
|
|
92
|
+
"notificationActivation": "Активація сповіщень",
|
|
93
|
+
"notificationTooltip": "активуйте або деактивувати повідомлення",
|
|
94
|
+
"no notifiaction": "Повідомлення про Keine",
|
|
95
|
+
"notifiaction": "сповіщення",
|
|
96
|
+
"notification": "сповіщення",
|
|
97
|
+
"no notification": "Ніякого сповіщення"
|
|
92
98
|
}
|
|
@@ -88,5 +88,11 @@
|
|
|
88
88
|
"customControlJsonActive": "“控制-自定义”-JSON",
|
|
89
89
|
"customControlJsonActiveTooltip": "使用此函数,您可以从控制通道在自定义条目上添加所需的 JSON",
|
|
90
90
|
"customDeleteDesciption": "要删除条目,请输入内容为“null”的条目。",
|
|
91
|
-
"customDeleteDescriptionImageTooltip": "有关删除现有条目的信息。"
|
|
91
|
+
"customDeleteDescriptionImageTooltip": "有关删除现有条目的信息。",
|
|
92
|
+
"notificationActivation": "通知激活",
|
|
93
|
+
"notificationTooltip": "激活或停用通知",
|
|
94
|
+
"no notifiaction": "Keine通知",
|
|
95
|
+
"notifiaction": "通知",
|
|
96
|
+
"notification": "通知",
|
|
97
|
+
"no notification": "没有通知"
|
|
92
98
|
}
|
package/admin/jsonConfig.json
CHANGED
|
@@ -144,6 +144,21 @@
|
|
|
144
144
|
"md": 2,
|
|
145
145
|
"lg": 2,
|
|
146
146
|
"xl": 2
|
|
147
|
+
},
|
|
148
|
+
"notificationActivation":{
|
|
149
|
+
"type": "select",
|
|
150
|
+
"label": "notificationActivation",
|
|
151
|
+
"tooltip": "notificationActivationTooltip",
|
|
152
|
+
"options": [
|
|
153
|
+
{"label":"notification","value":"notification"},
|
|
154
|
+
{"label":"no notification","value":"no notification"}
|
|
155
|
+
],
|
|
156
|
+
"default": "notification",
|
|
157
|
+
"xs": 12,
|
|
158
|
+
"sm": 3,
|
|
159
|
+
"md": 3,
|
|
160
|
+
"lg": 3,
|
|
161
|
+
"xl": 3
|
|
147
162
|
}
|
|
148
163
|
}
|
|
149
164
|
},
|
package/io-package.json
CHANGED
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "lorawan",
|
|
4
|
-
"version": "1.10.
|
|
4
|
+
"version": "1.10.22",
|
|
5
5
|
"news": {
|
|
6
|
+
"1.10.22": {
|
|
7
|
+
"en": "config notification and / or logging in case of connection state to LNS",
|
|
8
|
+
"de": "config Benachrichtigung und / oder Protokollierung bei Verbindungszustand zu LNS",
|
|
9
|
+
"ru": "конфигурация уведомления и/или регистрации в случае состояния подключения к LNS",
|
|
10
|
+
"pt": "notificação de configuração e / ou registro em caso de estado de conexão para LNS",
|
|
11
|
+
"nl": "config notificatie en/of loggen in geval van verbindingstoestand met LNS",
|
|
12
|
+
"fr": "config notification et / ou l'enregistrement en cas d'état de connexion à LNS",
|
|
13
|
+
"it": "config notifica e / o registrazione in caso di stato di connessione a LNS",
|
|
14
|
+
"es": "config notificación y / o registro en caso de estado de conexión a LNS",
|
|
15
|
+
"pl": "powiadomienia o konfigu lub logowania w przypadku stanu połączenia z LNS",
|
|
16
|
+
"uk": "конфігурація повідомлень та / або входу у разі з'єднання",
|
|
17
|
+
"zh-cn": "在连接状态下与 LNS 进行配置通知和/ 或记录"
|
|
18
|
+
},
|
|
6
19
|
"1.10.21": {
|
|
7
20
|
"en": "add extSersorTemperature unit \"°C\"",
|
|
8
21
|
"de": "extSersorTemperatureinheit \"°C\" hinzufügen",
|
|
@@ -80,19 +93,6 @@
|
|
|
80
93
|
"pl": "dodaj profil dla dnt- lw- etrv",
|
|
81
94
|
"uk": "додати профіль для dnt-lw-etrv",
|
|
82
95
|
"zh-cn": "为 dnt-lw- etrv 添加配置文件"
|
|
83
|
-
},
|
|
84
|
-
"1.10.15": {
|
|
85
|
-
"en": "add some roles and Units",
|
|
86
|
-
"de": "einige Rollen und Einheiten hinzufügen",
|
|
87
|
-
"ru": "добавить несколько ролей и единиц",
|
|
88
|
-
"pt": "adicionar algumas funções e unidades",
|
|
89
|
-
"nl": "enkele rollen en eenheden toevoegen",
|
|
90
|
-
"fr": "ajouter quelques rôles et unités",
|
|
91
|
-
"it": "aggiungere alcuni ruoli e unità",
|
|
92
|
-
"es": "añadir algunas funciones y dependencias",
|
|
93
|
-
"pl": "dodać kilka ról i jednostek",
|
|
94
|
-
"uk": "додати деякі ролі і блоки",
|
|
95
|
-
"zh-cn": "增加一些角色和单位"
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
|
@@ -333,6 +333,7 @@
|
|
|
333
333
|
"password": "",
|
|
334
334
|
"ssl": true,
|
|
335
335
|
"origin": "ttn",
|
|
336
|
+
"notificationActivation": "notification",
|
|
336
337
|
"downlinkConfig": [],
|
|
337
338
|
"customDecodedJsonActive": false,
|
|
338
339
|
"customConfigurationJsonActive": false,
|
|
@@ -25,11 +25,13 @@ class mqttClientClass {
|
|
|
25
25
|
this.client.on('connect', () => {
|
|
26
26
|
if (!this.internalConnectionstate) {
|
|
27
27
|
this.adapter.log.info(`Connection is active.`);
|
|
28
|
-
this.adapter.
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
if (this.adapter.config.notificationActivation === 'notification') {
|
|
29
|
+
this.adapter.registerNotification(
|
|
30
|
+
'lorawan',
|
|
31
|
+
'LoRaWAN Network Service connected',
|
|
32
|
+
`The LoRaWAN Network Service ${settings.ipUrl} was connected`,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
33
35
|
}
|
|
34
36
|
this.adapter.setState('info.connection', true, true);
|
|
35
37
|
this.internalConnectionstate = true;
|
|
@@ -60,11 +62,13 @@ class mqttClientClass {
|
|
|
60
62
|
this.client.on('close', () => {
|
|
61
63
|
if (this.internalConnectionstate) {
|
|
62
64
|
this.adapter.log.info(`Connection is closed.`);
|
|
63
|
-
this.adapter.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
if (this.adapter.config.notificationActivation === 'notification') {
|
|
66
|
+
this.adapter.registerNotification(
|
|
67
|
+
'lorawan',
|
|
68
|
+
'LoRaWAN Network Service disconnected',
|
|
69
|
+
`The LoRaWAN Network Service ${settings.ipUrl} was disconnected`,
|
|
70
|
+
);
|
|
71
|
+
}
|
|
68
72
|
}
|
|
69
73
|
this.adapter.setState('info.connection', false, true);
|
|
70
74
|
this.internalConnectionstate = false;
|