iobroker.device-watcher 2.8.0 → 2.8.2

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
@@ -189,6 +189,15 @@ It's possible to select:
189
189
  Placeholder for the next version (at the beginning of the line):
190
190
  ### **WORK IN PROGRESS**
191
191
  -->
192
+ ### 2.8.2 (2023-04-13)
193
+
194
+ - (ciddi89) Fixed: Don't handle id's which ends with fullstop
195
+ - (ciddi89) Added: Possibility for the user to select the global deactivation time for instances
196
+
197
+ ### 2.8.1 (2023-04-09)
198
+
199
+ - (ciddi89) Added: Possibility for the user to select the global error time for instances
200
+
192
201
  ### 2.8.0 (2023-04-04)
193
202
 
194
203
  - (ciddi89) Added: Support for LOQED Smart Lock
@@ -150,5 +150,14 @@
150
150
  "Get a message with an overview of all deactivated instances": "Erhalten Sie eine Nachricht mit einer Übersicht aller deaktivierten Instanzen",
151
151
  "Choose the day(s) where you want to get the overview of deactivated instances:": "Wählen Sie die Tage aus, an denen Sie die Übersicht der deaktivierten Instanzen erhalten möchten:",
152
152
  "User/Group key (optional)": "Benutzer-/Gruppenschlüssel (optional)",
153
- "Choose your User/Group key for Pushmessage": "Wählen Sie Ihren Benutzer-/Gruppenschlüssel für die Push-Nachricht"
153
+ "Choose your User/Group key for Pushmessage": "Wählen Sie Ihren Benutzer-/Gruppenschlüssel für die Push-Nachricht",
154
+ "Global error time": "Globale Fehlerzeit",
155
+ "If necessary, set the error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "Stellen Sie hier ggf. die Fehlerzeit jeder Instanz für sich ein. Diese Einstellung überschreibt die globale Einstellung für die ausgewählte Instanz.",
156
+ "Define the globale error time of the instances. The standard value is 20 seconds.": "Definieren Sie die globale Fehlerzeit der Instanzen. Der Standardwert beträgt 20 Sekunden.",
157
+ "Deactivation time in seconds": "Deaktivierungszeit in Sekunden",
158
+ "Error time in seconds": "Fehlerzeit in Sekunden",
159
+ "If necessary, set the deactivation and error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "Stellen Sie hier bei Bedarf die Deaktivierungs- und Fehlerzeit jeder Instanz für sich ein. Diese Einstellung überschreibt die globale Einstellung für die ausgewählte Instanz.",
160
+ "Global deactivation time": "Globale Deaktivierungszeit",
161
+ "Define the global instance deactivation and error time. The default value is 20 seconds.": "Definieren Sie die globale Instanz-Deaktivierungs- und Fehlerzeit. Der Standardwert ist 20 Sekunden.",
162
+ "Deactivation and Error Time for Instances": "Deaktivierungs- und Fehlerzeit für Instanzen"
154
163
  }
@@ -145,5 +145,14 @@
145
145
  "Get a message with an overview of all deactivated instances": "Get a message with an overview of all deactivated instances",
146
146
  "Choose the day(s) where you want to get the overview of deactivated instances:": "Choose the day(s) where you want to get the overview of deactivated instances:",
147
147
  "User/Group key (optional)": "User/Group key (optional)",
148
- "Choose your User/Group key for Pushmessage": "Choose your User/Group key for Pushmessage"
148
+ "Choose your User/Group key for Pushmessage": "Choose your User/Group key for Pushmessage",
149
+ "Global error time": "Global error time",
150
+ "If necessary, set the error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "If necessary, set the error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.",
151
+ "Define the globale error time of the instances. The standard value is 20 seconds.": "Define the globale error time of the instances. The standard value is 20 seconds.",
152
+ "Deactivation time in seconds": "Deactivation time in seconds",
153
+ "Error time in seconds": "Error time in seconds",
154
+ "If necessary, set the deactivation and error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "If necessary, set the deactivation and error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.",
155
+ "Global deactivation time": "Global deactivation time",
156
+ "Define the global instance deactivation and error time. The default value is 20 seconds.": "Define the global instance deactivation and error time. The default value is 20 seconds.",
157
+ "Deactivation and Error Time for Instances": "Deactivation and Error Time for Instances"
149
158
  }
@@ -150,5 +150,14 @@
150
150
  "Get a message with an overview of all deactivated instances": "Recibe un mensaje con una descripción general de todas las instancias desactivadas",
151
151
  "Choose the day(s) where you want to get the overview of deactivated instances:": "Elija los días en los que desea obtener la descripción general de las instancias desactivadas:",
152
152
  "User/Group key (optional)": "Clave de usuario/grupo (opcional)",
153
- "Choose your User/Group key for Pushmessage": "Elija su clave de usuario/grupo para Pushmessage"
153
+ "Choose your User/Group key for Pushmessage": "Elija su clave de usuario/grupo para Pushmessage",
154
+ "Global error time": "Tiempo de error global",
155
+ "If necessary, set the error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "Si es necesario, configure aquí el tiempo de error de cada instancia. Esta configuración sobrescribe la configuración global para la instancia seleccionada.",
156
+ "Define the globale error time of the instances. The standard value is 20 seconds.": "Defina el tiempo de error global de las instancias. El valor estándar es de 20 segundos.",
157
+ "Deactivation time in seconds": "Tiempo de desactivación en segundos",
158
+ "Error time in seconds": "Tiempo de error en segundos",
159
+ "If necessary, set the deactivation and error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "Si es necesario, establezca aquí la hora de desactivación y error de cada instancia. Esta configuración sobrescribe la configuración global para la instancia seleccionada.",
160
+ "Global deactivation time": "Tiempo de desactivación global",
161
+ "Define the global instance deactivation and error time. The default value is 20 seconds.": "Defina la desactivación de la instancia global y el tiempo de error. El valor predeterminado es 20 segundos.",
162
+ "Deactivation and Error Time for Instances": "Tiempo de desactivación y error para instancias"
154
163
  }
@@ -150,5 +150,14 @@
150
150
  "Get a message with an overview of all deactivated instances": "Recevez un message avec un aperçu de toutes les instances désactivées",
151
151
  "Choose the day(s) where you want to get the overview of deactivated instances:": "Choisissez le(s) jour(s) où vous souhaitez obtenir l'aperçu des instances désactivées :",
152
152
  "User/Group key (optional)": "Clé utilisateur/groupe (facultatif)",
153
- "Choose your User/Group key for Pushmessage": "Choisissez votre clé d'utilisateur/groupe pour Pushmessage"
153
+ "Choose your User/Group key for Pushmessage": "Choisissez votre clé d'utilisateur/groupe pour Pushmessage",
154
+ "Global error time": "Temps d'erreur global",
155
+ "If necessary, set the error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "Si nécessaire, définissez vous-même ici le temps d'erreur de chaque instance. Ce paramètre remplace le paramètre global de l'instance sélectionnée.",
156
+ "Define the globale error time of the instances. The standard value is 20 seconds.": "Définissez le temps d'erreur global des instances. La valeur standard est de 20 secondes.",
157
+ "Deactivation time in seconds": "Temps de désactivation en secondes",
158
+ "Error time in seconds": "Temps d'erreur en secondes",
159
+ "If necessary, set the deactivation and error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "Si nécessaire, définissez vous-même ici la durée de désactivation et d'erreur de chaque instance. Ce paramètre remplace le paramètre global de l'instance sélectionnée.",
160
+ "Global deactivation time": "Temps de désactivation global",
161
+ "Define the global instance deactivation and error time. The default value is 20 seconds.": "Définissez la désactivation globale de l'instance et l'heure d'erreur. La valeur par défaut est de 20 secondes.",
162
+ "Deactivation and Error Time for Instances": "Désactivation et temps d'erreur pour les instances"
154
163
  }
@@ -150,5 +150,14 @@
150
150
  "Get a message with an overview of all deactivated instances": "Ricevi un messaggio con una panoramica di tutte le istanze disattivate",
151
151
  "Choose the day(s) where you want to get the overview of deactivated instances:": "Scegli il giorno o i giorni in cui vuoi ottenere la panoramica delle istanze disattivate:",
152
152
  "User/Group key (optional)": "Chiave utente/gruppo (opzionale)",
153
- "Choose your User/Group key for Pushmessage": "Scegli la tua chiave utente/gruppo per Pushmessage"
153
+ "Choose your User/Group key for Pushmessage": "Scegli la tua chiave utente/gruppo per Pushmessage",
154
+ "Global error time": "Tempo di errore globale",
155
+ "If necessary, set the error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "Se necessario, impostare qui l'ora dell'errore di ogni istanza. Questa impostazione sovrascrive l'impostazione globale per l'istanza selezionata.",
156
+ "Define the globale error time of the instances. The standard value is 20 seconds.": "Definire il tempo di errore globale delle istanze. Il valore standard è 20 secondi.",
157
+ "Deactivation time in seconds": "Tempo di disattivazione in secondi",
158
+ "Error time in seconds": "Tempo di errore in secondi",
159
+ "If necessary, set the deactivation and error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "Se necessario, impostare qui la disattivazione e il tempo di errore di ogni istanza. Questa impostazione sovrascrive l'impostazione globale per l'istanza selezionata.",
160
+ "Global deactivation time": "Tempo di disattivazione globale",
161
+ "Define the global instance deactivation and error time. The default value is 20 seconds.": "Definire la disattivazione dell'istanza globale e il tempo di errore. Il valore predefinito è 20 secondi.",
162
+ "Deactivation and Error Time for Instances": "Disattivazione e tempo di errore per le istanze"
154
163
  }
@@ -150,5 +150,14 @@
150
150
  "Get a message with an overview of all deactivated instances": "Krijg een bericht met een overzicht van alle gedeactiveerde instanties",
151
151
  "Choose the day(s) where you want to get the overview of deactivated instances:": "Kies de dag(en) waarop u het overzicht van gedeactiveerde instanties wilt zien:",
152
152
  "User/Group key (optional)": "Gebruikers-/groepssleutel (optioneel)",
153
- "Choose your User/Group key for Pushmessage": "Kies uw gebruikers-/groepssleutel voor pushberichten"
153
+ "Choose your User/Group key for Pushmessage": "Kies uw gebruikers-/groepssleutel voor pushberichten",
154
+ "Global error time": "Globale fouttijd",
155
+ "If necessary, set the error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "Stel hier indien nodig de fouttijd van elke instantie voor jezelf in. Deze instelling overschrijft de algemene instelling voor de geselecteerde instantie.",
156
+ "Define the globale error time of the instances. The standard value is 20 seconds.": "Definieer de globale fouttijd van de instanties. De standaardwaarde is 20 seconden.",
157
+ "Deactivation time in seconds": "Deactivatietijd in seconden",
158
+ "Error time in seconds": "Fouttijd in seconden",
159
+ "If necessary, set the deactivation and error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "Stel hier eventueel voor jezelf de deactiverings- en fouttijd van elke instantie in. Deze instelling overschrijft de algemene instelling voor de geselecteerde instantie.",
160
+ "Global deactivation time": "Globale deactiveringstijd",
161
+ "Define the global instance deactivation and error time. The default value is 20 seconds.": "Definieer de globale deactivering van instanties en de fouttijd. De standaardwaarde is 20 seconden.",
162
+ "Deactivation and Error Time for Instances": "Deactivering en fouttijd voor instanties"
154
163
  }
@@ -150,5 +150,14 @@
150
150
  "Get a message with an overview of all deactivated instances": "Otrzymaj wiadomość z przeglądem wszystkich dezaktywowanych instancji",
151
151
  "Choose the day(s) where you want to get the overview of deactivated instances:": "Wybierz dni, w których chcesz uzyskać przegląd dezaktywowanych instancji:",
152
152
  "User/Group key (optional)": "Klucz użytkownika/grupy (opcjonalnie)",
153
- "Choose your User/Group key for Pushmessage": "Wybierz klucz użytkownika/grupy dla wiadomości Push"
153
+ "Choose your User/Group key for Pushmessage": "Wybierz klucz użytkownika/grupy dla wiadomości Push",
154
+ "Global error time": "Globalny czas błędu",
155
+ "If necessary, set the error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "W razie potrzeby ustaw tutaj czas błędu dla każdej instancji. To ustawienie zastępuje ustawienie globalne dla wybranej instancji.",
156
+ "Define the globale error time of the instances. The standard value is 20 seconds.": "Zdefiniuj globalny czas błędu instancji. Standardowa wartość to 20 sekund.",
157
+ "Deactivation time in seconds": "Czas dezaktywacji w sekundach",
158
+ "Error time in seconds": "Czas błędu w sekundach",
159
+ "If necessary, set the deactivation and error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "W razie potrzeby ustaw tutaj czas dezaktywacji i błędu każdej instancji. To ustawienie zastępuje ustawienie globalne dla wybranej instancji.",
160
+ "Global deactivation time": "Globalny czas dezaktywacji",
161
+ "Define the global instance deactivation and error time. The default value is 20 seconds.": "Zdefiniuj globalną dezaktywację instancji i czas błędu. Wartość domyślna to 20 sekund.",
162
+ "Deactivation and Error Time for Instances": "Dezaktywacja i czas błędu dla instancji"
154
163
  }
@@ -150,5 +150,14 @@
150
150
  "Get a message with an overview of all deactivated instances": "Receba uma mensagem com uma visão geral de todas as instâncias desativadas",
151
151
  "Choose the day(s) where you want to get the overview of deactivated instances:": "Escolha o(s) dia(s) em que deseja obter a visão geral das instâncias desativadas:",
152
152
  "User/Group key (optional)": "Tecla Usuário/Grupo (opcional)",
153
- "Choose your User/Group key for Pushmessage": "Escolha sua chave de usuário/grupo para Pushmessage"
153
+ "Choose your User/Group key for Pushmessage": "Escolha sua chave de usuário/grupo para Pushmessage",
154
+ "Global error time": "tempo de erro global",
155
+ "If necessary, set the error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "Se necessário, defina aqui o tempo de erro de cada instância. Essa configuração substitui a configuração global da instância selecionada.",
156
+ "Define the globale error time of the instances. The standard value is 20 seconds.": "Defina o tempo de erro global das instâncias. O valor padrão é 20 segundos.",
157
+ "Deactivation time in seconds": "Tempo de desativação em segundos",
158
+ "Error time in seconds": "Tempo de erro em segundos",
159
+ "If necessary, set the deactivation and error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "Se necessário, defina aqui a desativação e o tempo de erro de cada instância. Essa configuração substitui a configuração global da instância selecionada.",
160
+ "Global deactivation time": "Tempo de desativação global",
161
+ "Define the global instance deactivation and error time. The default value is 20 seconds.": "Defina a desativação da instância global e o tempo de erro. O valor padrão é 20 segundos.",
162
+ "Deactivation and Error Time for Instances": "Desativação e tempo de erro para instâncias"
154
163
  }
@@ -150,5 +150,14 @@
150
150
  "Get a message with an overview of all deactivated instances": "Получите сообщение с обзором всех деактивированных экземпляров",
151
151
  "Choose the day(s) where you want to get the overview of deactivated instances:": "Выберите день (дни), когда вы хотите получить обзор деактивированных экземпляров:",
152
152
  "User/Group key (optional)": "Ключ пользователя/группы (необязательно)",
153
- "Choose your User/Group key for Pushmessage": "Выберите ключ пользователя/группы для Pushmessage"
153
+ "Choose your User/Group key for Pushmessage": "Выберите ключ пользователя/группы для Pushmessage",
154
+ "Global error time": "Глобальное время ошибки",
155
+ "If necessary, set the error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "При необходимости установите здесь для себя время ошибки каждого экземпляра. Этот параметр перезаписывает глобальный параметр для выбранного экземпляра.",
156
+ "Define the globale error time of the instances. The standard value is 20 seconds.": "Определите глобальное время ошибки экземпляров. Стандартное значение составляет 20 секунд.",
157
+ "Deactivation time in seconds": "Время деактивации в секундах",
158
+ "Error time in seconds": "Время ошибки в секундах",
159
+ "If necessary, set the deactivation and error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "При необходимости установите здесь для себя время деактивации и ошибки каждого инстанса. Этот параметр перезаписывает глобальный параметр для выбранного экземпляра.",
160
+ "Global deactivation time": "Глобальное время деактивации",
161
+ "Define the global instance deactivation and error time. The default value is 20 seconds.": "Определите глобальную деактивацию экземпляра и время ошибки. Значение по умолчанию — 20 секунд.",
162
+ "Deactivation and Error Time for Instances": "Время деактивации и ошибки для экземпляров"
154
163
  }
@@ -150,5 +150,14 @@
150
150
  "Get a message with an overview of all deactivated instances": "Отримайте повідомлення з оглядом усіх дезактивованих екземплярів",
151
151
  "Choose the day(s) where you want to get the overview of deactivated instances:": "Виберіть день (дні), коли ви хочете отримати огляд дезактивованих екземплярів:",
152
152
  "User/Group key (optional)": "Ключ користувача/групи (необов'язково)",
153
- "Choose your User/Group key for Pushmessage": "Виберіть ключ користувача/групи для Pushmessage"
153
+ "Choose your User/Group key for Pushmessage": "Виберіть ключ користувача/групи для Pushmessage",
154
+ "Global error time": "Глобальний час помилки",
155
+ "If necessary, set the error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "За потреби встановіть тут для себе час помилки кожного екземпляра. Це налаштування перезаписує глобальне налаштування для вибраного екземпляра.",
156
+ "Define the globale error time of the instances. The standard value is 20 seconds.": "Визначте глобальний час помилки екземплярів. Стандартне значення - 20 секунд.",
157
+ "Deactivation time in seconds": "Час дезактивації в секундах",
158
+ "Error time in seconds": "Час помилки в секундах",
159
+ "If necessary, set the deactivation and error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "Якщо потрібно, тут можна встановити для себе час дезактивації та час помилки кожного екземпляра. Це налаштування перезаписує глобальне налаштування для вибраного екземпляра.",
160
+ "Global deactivation time": "Глобальний час дезактивації",
161
+ "Define the global instance deactivation and error time. The default value is 20 seconds.": "Визначте час дезактивації глобального екземпляра та час помилки. Значення за замовчуванням становить 20 секунд.",
162
+ "Deactivation and Error Time for Instances": "Деактивація та час помилки для екземплярів"
154
163
  }
@@ -150,5 +150,14 @@
150
150
  "Get a message with an overview of all deactivated instances": "获取包含所有已停用实例概览的消息",
151
151
  "Choose the day(s) where you want to get the overview of deactivated instances:": "选择您希望获得已停用实例概览的日期:",
152
152
  "User/Group key (optional)": "用户/组密钥(可选)",
153
- "Choose your User/Group key for Pushmessage": "为推送消息选择您的用户/组密钥"
153
+ "Choose your User/Group key for Pushmessage": "为推送消息选择您的用户/组密钥",
154
+ "Global error time": "全局错误时间",
155
+ "If necessary, set the error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "如果需要,可以在这里自行设置每个实例的错误时间。此设置会覆盖所选实例的全局设置。",
156
+ "Define the globale error time of the instances. The standard value is 20 seconds.": "定义实例的全局错误时间。标准值为 20 秒。",
157
+ "Deactivation time in seconds": "停用时间(秒)",
158
+ "Error time in seconds": "以秒为单位的错误时间",
159
+ "If necessary, set the deactivation and error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.": "如有必要,请在此处自行设置每个实例的停用和错误时间。此设置会覆盖所选实例的全局设置。",
160
+ "Global deactivation time": "全局停用时间",
161
+ "Define the global instance deactivation and error time. The default value is 20 seconds.": "定义全局实例停用和错误时间。默认值为 20 秒。",
162
+ "Deactivation and Error Time for Instances": "实例的停用和错误时间"
154
163
  }
@@ -1530,14 +1530,57 @@
1530
1530
  "items": {
1531
1531
  "_headerTimeInstances": {
1532
1532
  "type": "header",
1533
- "text": "Error Time for Instances",
1533
+ "text": "Deactivation and Error Time for Instances",
1534
1534
  "size": 2,
1535
1535
  "hidden": "!data.checkAdapterInstances",
1536
1536
  "hideOnlyControl": false
1537
1537
  },
1538
1538
  "_textTimeInstances": {
1539
1539
  "type": "staticText",
1540
- "text": "Here you can define the error time of each instance. The standard value is 20 seconds.",
1540
+ "text": "Define the global instance deactivation and error time. The default value is 20 seconds.",
1541
+ "sm": 12,
1542
+ "md": 12,
1543
+ "lg": 12,
1544
+ "hidden": "!data.checkAdapterInstances",
1545
+ "hideOnlyControl": false,
1546
+ "style": {
1547
+ "fontSize": 16,
1548
+ "marginBottom": 10
1549
+ }
1550
+ },
1551
+ "offlineTimeInstances": {
1552
+ "type": "number",
1553
+ "min": 20,
1554
+ "max": 100000,
1555
+ "sm": 6,
1556
+ "md": 6,
1557
+ "lg": 3,
1558
+ "label": "Global deactivation time",
1559
+ "help": "in seconds",
1560
+ "hidden": "!data.checkAdapterInstances",
1561
+ "hideOnlyControl": false
1562
+ },
1563
+ "errorTimeInstances": {
1564
+ "type": "number",
1565
+ "min": 20,
1566
+ "max": 100000,
1567
+ "sm": 6,
1568
+ "md": 6,
1569
+ "lg": 3,
1570
+ "label": "Global error time",
1571
+ "help": "in seconds",
1572
+ "hidden": "!data.checkAdapterInstances",
1573
+ "hideOnlyControl": false
1574
+ },
1575
+ "_divider": {
1576
+ "newLine": true,
1577
+ "type": "divider",
1578
+ "hidden": "!data.checkAdapterInstances",
1579
+ "hideOnlyControl": false
1580
+ },
1581
+ "_textTableTimeInstances": {
1582
+ "type": "staticText",
1583
+ "text": "If necessary, set the deactivation and error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.",
1541
1584
  "sm": 12,
1542
1585
  "md": 12,
1543
1586
  "lg": 12,
@@ -1573,7 +1616,16 @@
1573
1616
  "min": 20,
1574
1617
  "max": 1000000,
1575
1618
  "default": 20,
1576
- "title": "Time in seconds",
1619
+ "title": "Deactivation time in seconds",
1620
+ "attr": "deactivationTime",
1621
+ "width": "15%"
1622
+ },
1623
+ {
1624
+ "type": "number",
1625
+ "min": 20,
1626
+ "max": 1000000,
1627
+ "default": 20,
1628
+ "title": "Error time in seconds",
1577
1629
  "attr": "errorTime",
1578
1630
  "width": "15%"
1579
1631
  }
package/io-package.json CHANGED
@@ -1,8 +1,34 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "device-watcher",
4
- "version": "2.8.0",
4
+ "version": "2.8.2",
5
5
  "news": {
6
+ "2.8.2": {
7
+ "en": "Fixed: Don't handle id's which ends with fullstop\nAdded: Possibility for the user to select the global deactivation time for instances",
8
+ "de": "Behoben: Behandle nicht id's, die mit einem Punkt enden\nHinzugefügt: Möglichkeit für den Benutzer, die globale Deaktivierungszeit für Instanzen selbst zu wählen",
9
+ "ru": "Исправлено: Не обрабатывайте id's который заканчивается с fullstop\nДобавлена: Возможность для пользователя выбрать глобальное время деактивации для инстанций",
10
+ "pt": "Corrigido: Não manuseie id's que termina com fullstop\nAdicionado: Possibilidade para o usuário selecionar o tempo de desativação global para instâncias",
11
+ "nl": "Niet omgaan met ID's die eindigen met volledige stop\nToegevoegd, mogelijk voor de gebruiker om de wereldwijde deactiveringstijd te selecteren voor bijvoorbeeld",
12
+ "fr": "Fixé: Ne manipule pas l'id qui se termine avec le haut\nAjouté: Possibilité pour l'utilisateur de sélectionner le temps de désactivation global pour les instances",
13
+ "it": "Fisso: Non maneggiare id che termina con fullstop\nAggiunto: Possibilità per l'utente di selezionare il tempo di disattivazione globale per le istanze",
14
+ "es": "Arreglado: No maneje id's que termina con fullstop\nAñadido: Posibilidad para que el usuario seleccione el tiempo de desactivación global para los casos",
15
+ "pl": "Fixed: Don't handle id's (ang.)\nAdded: Possibility for the user to select the global deactivation time",
16
+ "uk": "Виправлено: Не робіть id's, які закінчуються повною поверхнею\nДодано: Можливість вибору глобального часу деактивації екземплярів",
17
+ "zh-cn": "九. 固定:捐税处理停止完全停战的叛国行为\n增 编:用户可以选择全球启动时间,以选择发生的情况"
18
+ },
19
+ "2.8.1": {
20
+ "en": "Added: Possibility for the user to select the global error time for instances",
21
+ "de": "Hinzugefügt: Möglichkeit der Auswahl der globalen Fehlerzeit für Instanzen durch den Benutzer",
22
+ "ru": "Добавлена: Возможность для пользователя выбрать глобальное время ошибки для инстанций",
23
+ "pt": "Adicionado: Possibilidade para o usuário selecionar o tempo de erro global para instâncias",
24
+ "nl": "Toegevoegd voor de gebruiker om de wereldwijde fouten uit te kiezen voor instituut",
25
+ "fr": "Ajouté: Possibilité pour l'utilisateur de sélectionner le temps d'erreur global pour les instances",
26
+ "it": "Aggiunto: Possibilità per l'utente di selezionare il tempo di errore globale per le istanze",
27
+ "es": "Añadido: Posibilidad para que el usuario seleccione el tiempo de error global para los casos",
28
+ "pl": "Added: Possibility for the user to select the global error time for instances",
29
+ "uk": "Додано: Можливість вибору часу глобальної помилки для екземплярів",
30
+ "zh-cn": "增加:用户选择全球错误时间的可能性"
31
+ },
6
32
  "2.8.0": {
7
33
  "en": "Added: Support for LOQED Smart Lock\nAdded: Option to add user/group api key for Pushover\nAdded: Option to send notification if an instance was stopped\nAdded: Option to send shedule notifications with overview of stopped instances\nFixed: Issue if notifications was send of stopped instance but the option wasn't choosen\nFixed: Ignore battery values 0% if they were not smaller than 5% before",
8
34
  "de": "Hinzugefügt: Unterstützung für LOQED Smart Lock\nHinzugefügt: Option zum Hinzufügen von Benutzer/Gruppen Api-Key für Pushover\nHinzugefügt: Option, um Benachrichtigung zu senden, wenn eine Instanz gestoppt wurde\nHinzugefügt: Option, um shedule Benachrichtigungen mit Überblick über gestoppte Instanzen zu senden\nFixed: Wenn Meldungen von einer gestoppten Instanz gesendet wurde, obwohl die Option nicht gewählt war\nFixed: Batteriewerte 0% ignorieren, wenn sie nicht kleiner als 5% vorher war",
@@ -67,32 +93,6 @@
67
93
  "pl": "Fixed: Instance error list (ang.)\nFix: Made Work Notification for adapter update software (ang.)\nAdded: Obiekty Delete automatycznie, jeśli nie są wybrane w ustawieniach.\nWzmocnienia Jeśli urządzenie podłączone jest stanem prawdziwym dla kilku sekund, aby zapobiec wielokrotnym urządzeniem\nAdded: Proxmox Adapter #123(https:/github.com/ciddi89/ioBroker.device-watcher/issues/123)\nFixed: Delete/Addd data of new or deleted instance without restart #125(https:/github.com/ciddi89/ioBroker.device-watcher/issues/125) (ang.)\nFixed: Delete/Addd data of new or deleted devices without restart #125(https:/github.com/ciddi89/ioBroker.device-watcher/issues/125) (ang.)\nLista państw: Schedule and State notification\nWzmocnienia Niektóre poprawy kodu",
68
94
  "uk": "Виправлено: Список помилок інстанцій і кількість не було скидання\nВиправлено: Зроблено робоче повідомлення для оновлення адаптера\nДодано: Видалити об'єкти автоматично, якщо він не вибраний в налаштуваннях.\nПідвищення: Перевірити, якщо загальний пристрій підключеного стану є більш ніж кілька секунд, щоб запобігти декількох повідомлень про стан пристрою\nДодано: Proxmox Adapter [#123](https://github.com/ciddi89/ioBroker.device-watcher/products/123)\nВиправлено: Видалити / додати дані нового або видаленого екземпляра без перезавантаження [#125](https://github.com/ciddi89/ioBroker.device-watcher/issues/125)\nВиправлено: Видалити / додати дані нових або видалених пристроїв без перезавантаження [#125](https://github.com/ciddi89/ioBroker.device-watcher/products/125)\nПідвищення: Графік та повідомлення про стан\nПідвищення: Деякі покращення коду",
69
95
  "zh-cn": "固定:案件错误清单和计值没有重新确定\n固定:供适应人员更新工作通知\n添加:如果在环境中没有选择,便自动删去物品。.\n加强: 如果一般装置相连,那么,防止多件装置状况信息的二倍多,则视情况而定。\n添加: Proxmox Adapter[#123](http://github.com/ciddi89/ioBroker.device-watcher/issues/123)\nIxed: Delete/Add data of new or 删除 例如, no reart [#125] (http://github.com/ciddi89/ioBroker.device-watcher/issues/125)\nFixed: Delete/Add data of new or被删除的设备,而不重作[第125](http://github.com/ciddi89/ioBroker.device-watcher/issues/125)\n加强:时间表和国家通知\n加强: 有些守则的改进"
70
- },
71
- "2.5.0": {
72
- "en": "Add Feature: Possibility to watch instances\nChange: Folder strukur. Instances and devices have got their own folders because of the overview. Please delete the instance folder and restart the instance.",
73
- "de": "Feature hinzufügen: Möglichkeit, Instanzen zu sehen\nÄnderung: Folder strukur. Instanzen und Geräte haben aufgrund der Übersicht eigene Ordner. Bitte löschen Sie den Instanzordner und starten Sie die Instanz neu.",
74
- "ru": "Добавить функцию: Возможность смотреть экземпляры\nИзменить: Folder strukur. Влияния и устройства получили собственные папки из-за обзора. Пожалуйста, удалите папку и перезагрузите экземпляр.",
75
- "pt": "Adicionar recurso: Possibilidade de assistir instâncias\nMudança: Folder strukur. Instâncias e dispositivos têm suas próprias pastas por causa da visão geral. Por favor, exclua a pasta de instância e reinicie a instância.",
76
- "nl": "Vermogen om toe te kijken\nFolder strukur. Instances en apparaten hebben hun eigen map vanwege de overzicht. Verwijder de instance map en herstel het instance.",
77
- "fr": "Ajouter Caractéristique: Possibilité de regarder les instances\nChangement: Folder strukur. Les instances et les dispositifs ont leurs propres dossiers en raison de l'aperçu. Veuillez supprimer le dossier d'instance et redémarrer l'instance.",
78
- "it": "Aggiungi caratteristica: Possibilità di guardare le istanze\nCambiamento: Piegatore strukur. istanze e dispositivi hanno le proprie cartelle a causa della panoramica. Si prega di eliminare la cartella delle istanze e riavviare l'istanza.",
79
- "es": "Add Feature: Posibilidad de ver casos\nCambio: Folder strukur. Instances y dispositivos tienen sus propias carpetas debido a la visión general. Por favor, eliminar la carpeta de instancia y reiniciar la instancia.",
80
- "pl": "Add Feature: Possibility to watch cases\nZmiana: Folder strukur. Instytucje i urządzenia otrzymały własne foldery z powodu przeglądu. Okazuje się, że usunie pliku folder i restartuje.",
81
- "uk": "Додати функцію: Можливість дивитися екземпляри\nЗміна: Складання пасту. З огляду на те, що інстанції та пристрої отримали власні папки через огляд. Будь ласка, видаліть папку екземпляра та перезавантажте екземпляр.",
82
- "zh-cn": "增加名称:观察案例的可信性\n变化:Folder strukur。 由于概览,案件和装置有自己的手。 请删除这一例子,并重新树立榜样。."
83
- },
84
- "2.4.1": {
85
- "en": "send online and offline notifications only, if the connection to device (zigbee stick etc.) is longer then few seconds. Should prevent multiple messages at a stroke\nfixed issue that all devices was listed even though only batterie devices was selected",
86
- "de": "senden Sie nur Online- und Offline-Benachrichtigungen, wenn die Verbindung zum Gerät (Zickbee-Stick etc.) länger ist, dann wenige Sekunden. Sollte mehrere Nachrichten bei einem Schlaganfall verhindern\nfestes problem, dass alle geräte aufgeführt wurden, obwohl nur batteriegeräte ausgewählt wurden",
87
- "ru": "отправлять онлайн и оффлайн уведомления только, если подключение к устройству (zigbee Stick и т.д.) дольше, чем несколько секунд. Должны предотвратить несколько сообщений в инсульте\nисправлена проблема, что все устройства были перечислены, хотя только батареи устройства были выбраны",
88
- "pt": "enviar notificações on-line e off-line apenas, se a conexão ao dispositivo (zigbee stick etc) é mais longo, em seguida, poucos segundos. Deve prevenir várias mensagens em um curso\nproblema fixo que todos os dispositivos foram listados mesmo que apenas dispositivos de batterie foram selecionados",
89
- "nl": "verstuur online en offline berichten alleen, als de connectie met apparaat (zigbee stok etc is langer dan een paar seconden. Moet meerdere berichten voorkomen bij een beroerte\nalhoewel alleen batterij apparatuur is geselecteerd",
90
- "fr": "envoyer des notifications en ligne et hors ligne seulement, si la connexion à l'appareil (colonne de zigbee etc.) est plus longue puis quelques secondes. Devrait prévenir plusieurs messages à un AVC\nproblème fixe que tous les appareils ont été répertoriés même si seuls les appareils à batterie ont été sélectionnés",
91
- "it": "inviare notifiche online e offline solo, se la connessione al dispositivo (zigbee stick ecc.) è più lunga allora pochi secondi. Dovrebbe impedire più messaggi a un ictus\nproblema fisso che tutti i dispositivi sono stati elencati anche se solo i dispositivi batterie sono stati selezionati",
92
- "es": "enviar notificaciones en línea y fuera de línea solamente, si la conexión al dispositivo (pegamento de zigbee etc.) es más largo entonces pocos segundos. Debe prevenir múltiples mensajes en un accidente cerebrovascular\ncuestión fija que todos los dispositivos fueron listados a pesar de que sólo los dispositivos de batterie fueron seleccionados",
93
- "pl": "wysyłanie notyfikacji online i offline tylko wtedy, gdy połączenie z urządzeniem (zigbee stick etc.) jest dłuższe, wtedy kilka sekund. W razie potrzeby zapobiegać wielokrotnym wiadomościom w wyniku udaru\nzastrzeżenie, że wszystkie urządzenia zostały wymienione, mimo że wybrano tylko urządzenia fałszerskie",
94
- "uk": "надсилайте онлайн і офлайн повідомлення тільки, якщо підключення до пристрою (зигніть палицю і т.д.) довший час, потім кілька секунд. Не допустити декількох повідомлень при інсульті\nвиправлено проблему, що всі пристрої були перераховані, хоча тільки пристрої баттері були вибрані",
95
- "zh-cn": "只发出在线和线外通知,如果与装置(zigbee stick等)的联系较短。 如果能防止在场上的多条信息。\n尽管只选定电池器,但所有装置都列入了固定问题。"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -399,6 +399,8 @@
399
399
  "checkFailedInstancesSaturday": false,
400
400
  "checkFailedInstancesSunday": false,
401
401
  "checkSendInstanceFailedTime": "12:20",
402
+ "errorTimeInstances": 20,
403
+ "offlineTimeInstances": 20,
402
404
  "tableTimeInstance": []
403
405
  },
404
406
  "objects": [],
package/main.js CHANGED
@@ -850,6 +850,7 @@ class DeviceWatcher extends utils.Adapter {
850
850
  if (userTimeListInstances[i].errorTime) {
851
851
  this.userTimeInstancesList.set(userTimeListparse.path, {
852
852
  instanceName: userTimeListparse.instanceName,
853
+ deactivationTime: userTimeListInstances[i].deactivationTime,
853
854
  errorTime: userTimeListInstances[i].errorTime,
854
855
  });
855
856
  }
@@ -871,6 +872,8 @@ class DeviceWatcher extends utils.Adapter {
871
872
 
872
873
  /*---------- Start of loop ----------*/
873
874
  for (const [id] of Object.entries(devices)) {
875
+ if (id.endsWith('.')) continue;
876
+
874
877
  /*=============================================
875
878
  = get Instanz =
876
879
  =============================================*/
@@ -2128,6 +2131,31 @@ class DeviceWatcher extends utils.Adapter {
2128
2131
  return instance;
2129
2132
  }
2130
2133
 
2134
+ /**
2135
+ * Check if instance is alive
2136
+ * @param {string | number | boolean | null | undefined} isAlive
2137
+ * @param {any} instanceAlivePath
2138
+ * @param {number} instanceDeactivationTime
2139
+ */
2140
+ async checkIsAlive(isAlive, instanceAlivePath, instanceDeactivationTime) {
2141
+ isAlive = await this.getInitValue(instanceAlivePath);
2142
+ if (isAlive) return isAlive;
2143
+
2144
+ await this.delay(instanceDeactivationTime);
2145
+ isAlive = await this.getInitValue(instanceAlivePath);
2146
+ if (!isAlive) {
2147
+ await this.delay(instanceDeactivationTime);
2148
+ isAlive = await this.getInitValue(instanceAlivePath);
2149
+ if (!isAlive) {
2150
+ return false; // if instance is turned off
2151
+ } else {
2152
+ return isAlive;
2153
+ }
2154
+ } else {
2155
+ return isAlive;
2156
+ }
2157
+ }
2158
+
2131
2159
  /**
2132
2160
  * set status for instance
2133
2161
  * @param {string} instanceMode
@@ -2139,15 +2167,16 @@ class DeviceWatcher extends utils.Adapter {
2139
2167
  async setInstanceStatus(instanceMode, scheduleTime, instanceAlivePath, hostConnectedPath, isDeviceConnctedPath) {
2140
2168
  const isAliveSchedule = await this.getForeignStateAsync(instanceAlivePath);
2141
2169
  let isHostConnected = await this.getInitValue(hostConnectedPath);
2142
- let isAlive = await this.getInitValue(instanceAlivePath);
2143
2170
  let isDeviceConnected = await this.getInitValue(isDeviceConnctedPath);
2144
2171
  let instanceStatusString = 'Instance deactivated';
2145
2172
  let lastUpdate;
2146
2173
  let lastCronRun;
2147
2174
  let diff;
2175
+ let isAlive;
2148
2176
  let previousCronRun = null;
2149
2177
  let isHealthy = false;
2150
- let instanceErrorTime = 20000 / 2;
2178
+ let instanceDeactivationTime = (this.config.offlineTimeInstances * 1000) / 2;
2179
+ let instanceErrorTime = (this.config.errorTimeInstances * 1000) / 2;
2151
2180
 
2152
2181
  switch (instanceMode) {
2153
2182
  case 'schedule':
@@ -2167,14 +2196,23 @@ class DeviceWatcher extends utils.Adapter {
2167
2196
  }
2168
2197
  break;
2169
2198
  case 'daemon':
2170
- if (!isAlive) return ['Instanz deaktiviert', false, null]; // if instance is turned off
2171
2199
  if (isDeviceConnected === undefined) isDeviceConnected = true;
2172
2200
 
2173
2201
  if (this.userTimeInstancesList.has(instanceAlivePath)) {
2202
+ // User set own setting for deactivation time
2203
+ instanceDeactivationTime = this.userTimeInstancesList.get(instanceAlivePath).deactivationTime;
2204
+ instanceDeactivationTime = (instanceDeactivationTime * 1000) / 2; // calculate sec to ms and divide into two
2205
+
2206
+ // User set own setting for error time
2174
2207
  instanceErrorTime = this.userTimeInstancesList.get(instanceAlivePath).errorTime;
2175
2208
  instanceErrorTime = (instanceErrorTime * 1000) / 2; // calculate sec to ms and divide into two
2176
2209
  }
2177
2210
 
2211
+ // if instance was deactivated
2212
+ isAlive = await this.checkIsAlive(isAlive, instanceAlivePath, instanceDeactivationTime);
2213
+ if (!isAlive) return ['Instanz deaktiviert', false, null]; // if instance is turned off
2214
+
2215
+ // if instance has an error
2178
2216
  if (isHostConnected && isDeviceConnected) {
2179
2217
  // In case of (re)start, connection may take some time. We take 3 attempts.
2180
2218
  // Attempt 1/3 - immediately
@@ -2184,7 +2222,7 @@ class DeviceWatcher extends utils.Adapter {
2184
2222
  // 2/3 - after 15 seconds
2185
2223
  await this.delay(instanceErrorTime);
2186
2224
 
2187
- isAlive = await this.getInitValue(instanceAlivePath);
2225
+ isAlive = await this.checkIsAlive(isAlive, instanceAlivePath, instanceDeactivationTime);
2188
2226
  if (!isAlive) return ['Instanz deaktiviert', false, null]; // if instance is turned off
2189
2227
 
2190
2228
  isDeviceConnected = await this.getInitValue(isDeviceConnctedPath);
@@ -2197,7 +2235,7 @@ class DeviceWatcher extends utils.Adapter {
2197
2235
  // 3/3 - after 30 seconds in total or user time setting
2198
2236
  await this.delay(instanceErrorTime);
2199
2237
 
2200
- isAlive = await this.getInitValue(instanceAlivePath);
2238
+ isAlive = await this.checkIsAlive(isAlive, instanceAlivePath, instanceDeactivationTime);
2201
2239
  if (!isAlive) return ['Instanz deaktiviert', false, null]; // if instance is turned off
2202
2240
 
2203
2241
  isDeviceConnected = await this.getInitValue(isDeviceConnctedPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.device-watcher",
3
- "version": "2.8.0",
3
+ "version": "2.8.2",
4
4
  "description": "Watchdog for devices",
5
5
  "author": {
6
6
  "name": "Christian Behrends",