iobroker.device-watcher 2.8.1 → 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,11 @@ 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
+
192
197
  ### 2.8.1 (2023-04-09)
193
198
 
194
199
  - (ciddi89) Added: Possibility for the user to select the global error time for instances
@@ -153,5 +153,11 @@
153
153
  "Choose your User/Group key for Pushmessage": "Wählen Sie Ihren Benutzer-/Gruppenschlüssel für die Push-Nachricht",
154
154
  "Global error time": "Globale Fehlerzeit",
155
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."
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"
157
163
  }
@@ -148,5 +148,11 @@
148
148
  "Choose your User/Group key for Pushmessage": "Choose your User/Group key for Pushmessage",
149
149
  "Global error time": "Global error time",
150
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."
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"
152
158
  }
@@ -153,5 +153,11 @@
153
153
  "Choose your User/Group key for Pushmessage": "Elija su clave de usuario/grupo para Pushmessage",
154
154
  "Global error time": "Tiempo de error global",
155
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."
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"
157
163
  }
@@ -153,5 +153,11 @@
153
153
  "Choose your User/Group key for Pushmessage": "Choisissez votre clé d'utilisateur/groupe pour Pushmessage",
154
154
  "Global error time": "Temps d'erreur global",
155
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."
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"
157
163
  }
@@ -153,5 +153,11 @@
153
153
  "Choose your User/Group key for Pushmessage": "Scegli la tua chiave utente/gruppo per Pushmessage",
154
154
  "Global error time": "Tempo di errore globale",
155
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."
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"
157
163
  }
@@ -153,5 +153,11 @@
153
153
  "Choose your User/Group key for Pushmessage": "Kies uw gebruikers-/groepssleutel voor pushberichten",
154
154
  "Global error time": "Globale fouttijd",
155
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."
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"
157
163
  }
@@ -153,5 +153,11 @@
153
153
  "Choose your User/Group key for Pushmessage": "Wybierz klucz użytkownika/grupy dla wiadomości Push",
154
154
  "Global error time": "Globalny czas błędu",
155
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."
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"
157
163
  }
@@ -153,5 +153,11 @@
153
153
  "Choose your User/Group key for Pushmessage": "Escolha sua chave de usuário/grupo para Pushmessage",
154
154
  "Global error time": "tempo de erro global",
155
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."
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"
157
163
  }
@@ -153,5 +153,11 @@
153
153
  "Choose your User/Group key for Pushmessage": "Выберите ключ пользователя/группы для Pushmessage",
154
154
  "Global error time": "Глобальное время ошибки",
155
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 секунд."
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": "Время деактивации и ошибки для экземпляров"
157
163
  }
@@ -153,5 +153,11 @@
153
153
  "Choose your User/Group key for Pushmessage": "Виберіть ключ користувача/групи для Pushmessage",
154
154
  "Global error time": "Глобальний час помилки",
155
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 секунд."
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": "Деактивація та час помилки для екземплярів"
157
163
  }
@@ -153,5 +153,11 @@
153
153
  "Choose your User/Group key for Pushmessage": "为推送消息选择您的用户/组密钥",
154
154
  "Global error time": "全局错误时间",
155
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 秒。"
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": "实例的停用和错误时间"
157
163
  }
@@ -1530,14 +1530,14 @@
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": "Define the globale error time of the instances. The standard value is 20 seconds.",
1540
+ "text": "Define the global instance deactivation and error time. The default value is 20 seconds.",
1541
1541
  "sm": 12,
1542
1542
  "md": 12,
1543
1543
  "lg": 12,
@@ -1548,6 +1548,18 @@
1548
1548
  "marginBottom": 10
1549
1549
  }
1550
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
+ },
1551
1563
  "errorTimeInstances": {
1552
1564
  "type": "number",
1553
1565
  "min": 20,
@@ -1568,7 +1580,7 @@
1568
1580
  },
1569
1581
  "_textTableTimeInstances": {
1570
1582
  "type": "staticText",
1571
- "text": "If necessary, set the error time of each instance for yourself here. This setting overwrites the global setting for the selected instance.",
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.",
1572
1584
  "sm": 12,
1573
1585
  "md": 12,
1574
1586
  "lg": 12,
@@ -1604,7 +1616,16 @@
1604
1616
  "min": 20,
1605
1617
  "max": 1000000,
1606
1618
  "default": 20,
1607
- "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",
1608
1629
  "attr": "errorTime",
1609
1630
  "width": "15%"
1610
1631
  }
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "device-watcher",
4
- "version": "2.8.1",
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
+ },
6
19
  "2.8.1": {
7
20
  "en": "Added: Possibility for the user to select the global error time for instances",
8
21
  "de": "Hinzugefügt: Möglichkeit der Auswahl der globalen Fehlerzeit für Instanzen durch den Benutzer",
@@ -80,19 +93,6 @@
80
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",
81
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Підвищення: Деякі покращення коду",
82
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加强: 有些守则的改进"
83
- },
84
- "2.5.0": {
85
- "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.",
86
- "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.",
87
- "ru": "Добавить функцию: Возможность смотреть экземпляры\nИзменить: Folder strukur. Влияния и устройства получили собственные папки из-за обзора. Пожалуйста, удалите папку и перезагрузите экземпляр.",
88
- "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.",
89
- "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.",
90
- "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.",
91
- "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.",
92
- "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.",
93
- "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.",
94
- "uk": "Додати функцію: Можливість дивитися екземпляри\nЗміна: Складання пасту. З огляду на те, що інстанції та пристрої отримали власні папки через огляд. Будь ласка, видаліть папку екземпляра та перезавантажте екземпляр.",
95
- "zh-cn": "增加名称:观察案例的可信性\n变化:Folder strukur。 由于概览,案件和装置有自己的手。 请删除这一例子,并重新树立榜样。."
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -400,6 +400,7 @@
400
400
  "checkFailedInstancesSunday": false,
401
401
  "checkSendInstanceFailedTime": "12:20",
402
402
  "errorTimeInstances": 20,
403
+ "offlineTimeInstances": 20,
403
404
  "tableTimeInstance": []
404
405
  },
405
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,14 +2167,15 @@ 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;
2178
+ let instanceDeactivationTime = (this.config.offlineTimeInstances * 1000) / 2;
2150
2179
  let instanceErrorTime = (this.config.errorTimeInstances * 1000) / 2;
2151
2180
 
2152
2181
  switch (instanceMode) {
@@ -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.1",
3
+ "version": "2.8.2",
4
4
  "description": "Watchdog for devices",
5
5
  "author": {
6
6
  "name": "Christian Behrends",