iobroker.device-watcher 2.9.4 → 2.9.5

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,13 @@ 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.9.5 (2023-11-03)
193
+
194
+ - (ciddi89) Added: if available use deviceName datapoint for sonoff devices
195
+ - (arteck) Fixed: Changed zwave to zwave2
196
+ - (ciddi89) Fixed: minor bugfixes
197
+ - (ciddi89) Added: FullyBrowser > v3
198
+
192
199
  ### 2.9.4 (2023-10-16)
193
200
 
194
201
  - (ciddi89) Added: Fallback for HmIp-eTRV-2 batterie devices [#218](https://github.com/ciddi89/ioBroker.device-watcher/issues/218)
@@ -100,6 +100,13 @@
100
100
  "lg": 3,
101
101
  "label": "fullyBrowser"
102
102
  },
103
+ "fullybrowserV3Devices": {
104
+ "type": "checkbox",
105
+ "sm": 6,
106
+ "md": 6,
107
+ "lg": 3,
108
+ "label": "fullyBrowser > v3"
109
+ },
103
110
  "fullyMQTTDevices": {
104
111
  "type": "checkbox",
105
112
  "sm": 6,
@@ -415,7 +422,7 @@
415
422
  "hideOnlyControl": false
416
423
  },
417
424
  "checkSendAdapterUpdateMsg": {
418
- "newLine": "true",
425
+ "newLine": true,
419
426
  "type": "checkbox",
420
427
  "sm": 12,
421
428
  "md": 12,
@@ -511,7 +518,7 @@
511
518
  "hideOnlyControl": false
512
519
  },
513
520
  "checkSendInstanceDeactivatedMsg": {
514
- "newLine": "true",
521
+ "newLine": true,
515
522
  "type": "checkbox",
516
523
  "sm": 12,
517
524
  "md": 12,
@@ -607,7 +614,7 @@
607
614
  "hideOnlyControl": false
608
615
  },
609
616
  "checkSendInstanceFailedMsg": {
610
- "newLine": "true",
617
+ "newLine": true,
611
618
  "type": "checkbox",
612
619
  "sm": 12,
613
620
  "md": 12,
@@ -791,7 +798,7 @@
791
798
  "type": "divider"
792
799
  },
793
800
  "checkSendBatteryMsg": {
794
- "newLine": "true",
801
+ "newLine": true,
795
802
  "type": "checkbox",
796
803
  "sm": 12,
797
804
  "md": 12,
@@ -881,7 +888,7 @@
881
888
  "type": "divider"
882
889
  },
883
890
  "checkSendDeviceUpgrade": {
884
- "newLine": "true",
891
+ "newLine": true,
885
892
  "type": "checkbox",
886
893
  "sm": 12,
887
894
  "md": 12,
@@ -973,7 +980,7 @@
973
980
  "hidden": "!data.checkSendBatteryMsg && !data.checkSendBatteryMsgDaily && !data.checkSendOfflineMsgDaily && !data.checkSendOfflineMsg && !data.checkSendDeviceUpgrade && !data.checkSendUpgradeMsgDaily"
974
981
  },
975
982
  "showAdapterNameinMsg": {
976
- "newLine": "true",
983
+ "newLine": true,
977
984
  "type": "checkbox",
978
985
  "sm": 12,
979
986
  "md": 6,
@@ -1063,7 +1070,7 @@
1063
1070
  "hideOnlyControl": false
1064
1071
  },
1065
1072
  "headerJarvis": {
1066
- "newLine": "true",
1073
+ "newLine": true,
1067
1074
  "type": "header",
1068
1075
  "text": "Jarvis Notification",
1069
1076
  "size": 2,
@@ -1095,7 +1102,7 @@
1095
1102
  "hideOnlyControl": false
1096
1103
  },
1097
1104
  "headerLovelace": {
1098
- "newLine": "true",
1105
+ "newLine": true,
1099
1106
  "type": "header",
1100
1107
  "text": "Lovelace Notification",
1101
1108
  "size": 2,
@@ -1127,7 +1134,7 @@
1127
1134
  "hideOnlyControl": false
1128
1135
  },
1129
1136
  "headerMatrix": {
1130
- "newLine": "true",
1137
+ "newLine": true,
1131
1138
  "type": "header",
1132
1139
  "text": "Matrix",
1133
1140
  "size": 2,
@@ -1226,7 +1233,7 @@
1226
1233
  "hideOnlyControl": false
1227
1234
  },
1228
1235
  "headerSignal": {
1229
- "newLine": "true",
1236
+ "newLine": true,
1230
1237
  "type": "header",
1231
1238
  "text": "Signal",
1232
1239
  "size": 2,
@@ -1258,7 +1265,7 @@
1258
1265
  "hideOnlyControl": false
1259
1266
  },
1260
1267
  "headerSynochat": {
1261
- "newLine": "true",
1268
+ "newLine": true,
1262
1269
  "type": "header",
1263
1270
  "text": "Synochat",
1264
1271
  "size": 2,
@@ -1290,7 +1297,7 @@
1290
1297
  "hideOnlyControl": false
1291
1298
  },
1292
1299
  "headerTelegram": {
1293
- "newLine": "true",
1300
+ "newLine": true,
1294
1301
  "type": "header",
1295
1302
  "text": "Telegram",
1296
1303
  "size": 2,
@@ -1332,7 +1339,7 @@
1332
1339
  "hideOnlyControl": false
1333
1340
  },
1334
1341
  "headerWhatsapp": {
1335
- "newLine": "true",
1342
+ "newLine": true,
1336
1343
  "type": "header",
1337
1344
  "text": "Whatsapp",
1338
1345
  "size": 2,
@@ -1370,7 +1377,7 @@
1370
1377
  "label": "Blacklist",
1371
1378
  "items": {
1372
1379
  "_headerBlacklistInstances": {
1373
- "newLine": "true",
1380
+ "newLine": true,
1374
1381
  "type": "header",
1375
1382
  "text": "Instances Blacklist",
1376
1383
  "size": 2,
@@ -1420,7 +1427,7 @@
1420
1427
  ]
1421
1428
  },
1422
1429
  "_headerDevices": {
1423
- "newLine": "true",
1430
+ "newLine": true,
1424
1431
  "type": "header",
1425
1432
  "text": "Devices/Services Blacklist",
1426
1433
  "size": 2
@@ -1817,6 +1824,18 @@
1817
1824
  "hidden": "!data.fullybrowserDevices",
1818
1825
  "hideOnlyControl": false
1819
1826
  },
1827
+ "fullybrowserV3MaxMinutes": {
1828
+ "type": "number",
1829
+ "min": -1,
1830
+ "max": 100000,
1831
+ "sm": 6,
1832
+ "md": 6,
1833
+ "lg": 3,
1834
+ "label": "fullyBrowser > v3",
1835
+ "help": "in minutes",
1836
+ "hidden": "!data.fullybrowserV3Devices",
1837
+ "hideOnlyControl": false
1838
+ },
1820
1839
  "fullyMQTTMaxMinutes": {
1821
1840
  "type": "number",
1822
1841
  "min": -1,
package/io-package.json CHANGED
@@ -1,8 +1,21 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "device-watcher",
4
- "version": "2.9.4",
4
+ "version": "2.9.5",
5
5
  "news": {
6
+ "2.9.5": {
7
+ "en": "Added: if available use deviceName datapoint for sonoff devices\nFixed: Changed zwave to zwave2\nFixed: minor bugfixes\nAdded: FullyBrowser > v3",
8
+ "de": "Hinzugefügt: Wenn verfügbar benutze deviceName Datenpunkt für Sonoff Geräte\nBehoben: Zwave zu zwave2 geändert\nBehoben: kleinere Bugfixes\nHinzugefügt: FullyBrowser > V3",
9
+ "ru": "Добавлена: если доступно использование устройстваName datapoint для устройств sonoff\nИсправлено: Изменено zwave в zwave2\nИсправлено: незначительные багфиксы\nДобавлено: FullyBrowser > В3",
10
+ "pt": "Adicionado: se disponível use deviceName datapoint for sonoff devices\nCorrigido: Alterado zwave para zwave2\nCorrigido: pequenos bugfixes\nAdicionado: FullyBrowser > v3",
11
+ "nl": "Toegegeven:\nQuality over Quantity (QoQ) Releases Vertaling:\nQuality over Quantity (QoQ) Releases Vertaling:\nVertaling: Vertaling:",
12
+ "fr": "Ajouté: si le dispositif d'utilisation disponibleNom datapoint pour les appareils à sonoff\nFixé: Zwave changée en zwave2\nCorrection : corrections mineures\nAjouté: FullyBrowser phy v3",
13
+ "it": "Aggiunto: if available use deviceName datapoint for sonoff devices\nFisso: Cambiato zwave a zwave2\nRisolto: bugfix minori\nAggiunto: FullyBrowser > V",
14
+ "es": "Añadido: si está disponible el punto de datos del dispositivoName para dispositivos sonoff\nFijo: Cambio de onda de zwave2\nFijación: bugfixes menores\nAñadido: FullyBrowser v3",
15
+ "pl": "Addd: jeśli urządzenie użyte do transmisji danych\nFixed: Changed zwave to zwave2 (ang.)\nFixed: minor bugfixes\nAdded: FullyBrowser> (ang.). v3",
16
+ "uk": "Додано: якщо доступний пристрій useName для пристроїв sonoff\nВиправлено: Змінено zwave to zwave2\nВиправлено: незначні виправлення\nДоданий: FullyBrowser > в3",
17
+ "zh-cn": "增删:如果能用装置Name数据点用于子壳装置\n九. 固定:对兹瓦韦的改变\n固定:小额配件\n增 编:全页 评 注"
18
+ },
6
19
  "2.9.4": {
7
20
  "en": "Added: Fallback for HmIp-eTRV-2 batterie devices [#218](https://github.com/ciddi89/ioBroker.device-watcher/issues/218)\n(@mango1402) Fixed: Proxmox VM/CT online status [#241](https://github.com/ciddi89/ioBroker.device-watcher/issues/241)\nUpdated: Dependencies",
8
21
  "de": "Hinzugefügt: Fallback für HmIp-eTRV-2 Batterie-Geräte [#218](https://github.com/ciddi89/ioBroker.device-watcher/issues/218)\n(@mango1402) Behoben: Proxmox VM/CT Online-Status [#241](https://github.com/ciddi89/ioBroker.device-watcher/issues/241)\nAktualisiert: Abhängigkeiten",
@@ -80,19 +93,6 @@
80
93
  "pl": "Error, że instancje nie mogą być dodane do czarnej listy z powodu popupu #172(https:/github.com/ciddi89/ioBroker.device-watcher/issues/172)\nFixed: Wiadomości te zostały wysłane, gdy instancja przeskakuje z Enabled do Disabled #173 (https:/github.com/ciddi89/ioBroker.device-watcher/issues/173)",
81
94
  "uk": "Виправлено: помилка, що екземпляри не можуть бути додані в чорний список через повідомлення електронної пошти [#172] (https://github.com/ciddi89/ioBroker.device-watcher/issues/172)\nВиправлено: Що повідомлення було відправлено, коли екземпляр коротко стрибнув з Увімкненого і назад до Увімкненого [#173] (https://github.com/ciddi89/ioBroker.device-watcher/issues/173)",
82
95
  "zh-cn": "固定:由于人口信息[第172号](http://github.com/ciddi89/ioBroker.device-watcher/issues/172)而无法增加黑名单。\n固定: 这一信息是在以下情况下发出的:从便携起降到残疾人,回到了可居住的[第173号](http://github.com/ciddi89/ioBroker.device-watcher/issues/173)。"
83
- },
84
- "2.8.4": {
85
- "en": "Fixed: Functions for instance status completely renewed ([#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170))\nAdded: Popup message when the instance is not running and the user tries to select a device/instance in the settings tables ([#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170))",
86
- "de": "Behoben: Funktionen für Instanzen Status vollständig erneuert [#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170)\nHinzugefügt: Popup-Nachricht, wenn die Instanz nicht läuft und der Benutzer versucht ein Gerät/Instance in den Einstellungstabellen auszuwählen [#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170)",
87
- "ru": "Исправлено: Функции для статуса экземпляра полностью обновлены [#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170)\nДобавлена: Всплывающее сообщение, когда экземпляр не работает, и пользователь пытается выбрать устройство/инстанция в таблицах настроек [#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170)",
88
- "pt": "Corrigido: Funções por exemplo, estado completamente renovado [#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170)\nAdicionado: Popup message when the instance is not running and the user try to select a device/instance in the settings table [#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170)",
89
- "nl": "Functies voor instance-status volledig hernieuwd 70) (htub,com/ciddi89/ioBroker\nVertaling:",
90
- "fr": "Fixed: Functions for instance status completely renewed [#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170)\nAjouté : Message popup lorsque l ' instance ne fonctionne pas et que l ' utilisateur essaie de sélectionner un dispositif/instance dans les tableaux de configuration [#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170)",
91
- "it": "Fisso: Funzioni per esempio stato completamente rinnovato [#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170)\nAggiunto: messaggio popup quando l'istanza non è in esecuzione e l'utente cerca di selezionare un dispositivo/instanza nelle tabelle delle impostazioni [#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170)",
92
- "es": "Fijo: Funciones para el estado de la instancia completamente renovadas [#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170)\nAñadido: Mensaje de Popup cuando la instancia no se ejecuta y el usuario intenta seleccionar un dispositivo/instancia en los cuadros de configuración [#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170)",
93
- "pl": "Fixed: Functions for example full new #170(https:/github.com/ciddi89/ioBroker,device-watcher/issues/170) (ang.)\nAdded: wiadomość Popup, gdy instancja nie jest uruchomiona, a użytkownik próbuje wybrać urządzenie/instance in the settings table #170(https:/github.com/ciddi89/ioBrokerdevice-watcher/issues/170)",
94
- "uk": "Виправлено: Функції статусу екземпляра повністю оновлено [#170] (https://github.com/ciddi89/ioBroker.device-watcher/issues/170)\nДодано: Поповнення повідомлення, коли екземпляр не працює, і користувач намагається вибрати пристрій/інстанцію в таблицях налаштувань [#170](https://github.com/ciddi89/ioBroker.device-watcher/issues/170)",
95
- "zh-cn": "固定:举例身份功能完全延长[第170](http://github.com/ciddi89/ioBroker.device-watcher/issues/170)\n添加:当事没有运行时,Popup讯息和用户在表格[第170](http://github.com/ciddi89/ioBroker.device-watcher/issues/170)中选择一种装置/装置。"
96
96
  }
97
97
  },
98
98
  "titleLang": {
@@ -222,6 +222,8 @@
222
222
  "fritzdectMaxMinutes": 0,
223
223
  "fullybrowserDevices": false,
224
224
  "fullybrowserMaxMinutes": 0,
225
+ "fullybrowserV3Devices": false,
226
+ "fullybrowserV3MaxMinutes": 0,
225
227
  "fullyMQTTDevices": false,
226
228
  "fullyMQTTMaxMinutes": 0,
227
229
  "hamDevices": false,
package/lib/arrApart.js CHANGED
@@ -143,6 +143,18 @@ const arrApart = {
143
143
  id: '.Info.hostname4',
144
144
  id2: '.Info.deviceModel',
145
145
  },
146
+ fullybrowserV3: {
147
+ Selektor: 'fullybrowser.*.alive',
148
+ timeSelector: '.alive',
149
+ adapterID: 'fullybrowserV3',
150
+ adapter: 'fullyBrowser',
151
+ rssiState: '.Info.wifiSignalLevel',
152
+ battery: '.Info.batteryLevel',
153
+ reach: '.alive',
154
+ isLowBat: 'none',
155
+ id: '.Info.hostname4',
156
+ id2: '.Info.deviceModel',
157
+ },
146
158
  fullyMQTT: {
147
159
  Selektor: 'fully-mqtt.*.alive',
148
160
  timeSelector: '.alive',
@@ -465,6 +477,7 @@ const arrApart = {
465
477
  reach: '.alive',
466
478
  uptime: '.Uptime',
467
479
  isLowBat: 'none',
480
+ id: '.DeviceName',
468
481
  },
469
482
  sonos: {
470
483
  Selektor: 'sonos.*.alive',
@@ -591,10 +604,10 @@ const arrApart = {
591
604
  reach: '.available',
592
605
  isLowBat: '.battery_low',
593
606
  },
594
- zwave: {
607
+ zwave2: {
595
608
  Selektor: 'zwave2.*.ready',
596
- timeSelector: '.ready',
597
- adapterID: 'zwave',
609
+ timeSelector: '.status',
610
+ adapterID: 'zwave2',
598
611
  adapter: 'Z-wave 2',
599
612
  battery: '.Battery.level',
600
613
  reach: '.ready',
package/main.js CHANGED
@@ -109,6 +109,7 @@ class DeviceWatcher extends utils.Adapter {
109
109
  fhemTFAsensors: this.config.fhemTFAsensorsDevices,
110
110
  fritzdect: this.config.fritzdectDevices,
111
111
  fullybrowser: this.config.fullybrowserDevices,
112
+ fullybrowserV3: this.config.fullybrowserV3Devices,
112
113
  fullyMQTT: this.config.fullyMQTTDevices,
113
114
  ham: this.config.hamDevices,
114
115
  harmony: this.config.harmonyDevices,
@@ -152,7 +153,7 @@ class DeviceWatcher extends utils.Adapter {
152
153
  yeelight: this.config.yeelightDevices,
153
154
  zigbee: this.config.zigbeeDevices,
154
155
  zigbee2MQTT: this.config.zigbee2mqttDevices,
155
- zwave: this.config.zwaveDevices,
156
+ zwave2: this.config.zwaveDevices,
156
157
  };
157
158
 
158
159
  this.configMaxMinutes = {
@@ -167,6 +168,7 @@ class DeviceWatcher extends utils.Adapter {
167
168
  fhemTFAsensors: this.config.fhemTFAsensorsMaxMinutes,
168
169
  fritzdect: this.config.fritzdectMaxMinutes,
169
170
  fullybrowser: this.config.fullybrowserMaxMinutes,
171
+ fullybrowserV3: this.config.fullybrowserV3MaxMinutes,
170
172
  fullyMQTT: this.config.fullyMQTTMaxMinutes,
171
173
  ham: this.config.hamMaxMinutes,
172
174
  harmony: this.config.harmonyMaxMinutes,
@@ -210,7 +212,7 @@ class DeviceWatcher extends utils.Adapter {
210
212
  yeelight: this.config.yeelightMaxMinutes,
211
213
  zigbee: this.config.zigbeeMaxMinutes,
212
214
  zigbee2MQTT: this.config.zigbee2mqttMaxMinutes,
213
- zwave: this.config.zwaveMaxMinutes,
215
+ zwave2: this.config.zwaveMaxMinutes,
214
216
  };
215
217
 
216
218
  try {
@@ -1102,6 +1104,7 @@ class DeviceWatcher extends utils.Adapter {
1102
1104
 
1103
1105
  switch (this.selAdapter[i].adapterID) {
1104
1106
  case 'fullybrowser':
1107
+ case 'fullybrowserV3':
1105
1108
  deviceName = (await this.getInitValue(currDeviceString + this.selAdapter[i].id)) + ' ' + (await this.getInitValue(currDeviceString + this.selAdapter[i].id2));
1106
1109
  break;
1107
1110
 
@@ -1114,14 +1117,14 @@ class DeviceWatcher extends utils.Adapter {
1114
1117
  case 'loqedSmartLock':
1115
1118
  case 'viessmann':
1116
1119
  case 'homekitController':
1117
- if (shortDeviceObject && typeof shortDeviceObject === 'object') {
1120
+ if (shortDeviceObject && typeof shortDeviceObject === 'object' && shortDeviceObject.common) {
1118
1121
  deviceName = shortDeviceObject.common.name;
1119
1122
  }
1120
1123
  break;
1121
1124
 
1122
1125
  // Get ID with short short currDeviceString from objectjson (HMiP Devices)
1123
1126
  case 'hmiP':
1124
- if (shortshortDeviceObject && typeof shortshortDeviceObject === 'object') {
1127
+ if (shortshortDeviceObject && typeof shortshortDeviceObject === 'object' && shortshortDeviceObject.common) {
1125
1128
  deviceName = shortshortDeviceObject.common.name;
1126
1129
  }
1127
1130
  break;
@@ -1141,7 +1144,7 @@ class DeviceWatcher extends utils.Adapter {
1141
1144
 
1142
1145
  // Format Device name
1143
1146
  case 'sureflap':
1144
- if (deviceObject && typeof deviceObject === 'object') {
1147
+ if (deviceObject && typeof deviceObject === 'object' && deviceObject.common) {
1145
1148
  deviceName = deviceObject.common.name
1146
1149
  // @ts-ignore FIXME: fix syntax error
1147
1150
  .replace(/'/g, '')
@@ -1161,7 +1164,7 @@ class DeviceWatcher extends utils.Adapter {
1161
1164
  default:
1162
1165
  if (this.selAdapter[i].id !== 'none' || this.selAdapter[i].id !== undefined) deviceName = await this.getInitValue(currDeviceString + this.selAdapter[i].id);
1163
1166
  if (deviceName === null || deviceName === undefined) {
1164
- if (deviceObject && typeof deviceObject === 'object') {
1167
+ if (deviceObject && typeof deviceObject === 'object' && deviceObject.common) {
1165
1168
  deviceName = deviceObject.common.name;
1166
1169
  }
1167
1170
  }
@@ -2513,6 +2516,7 @@ class DeviceWatcher extends utils.Adapter {
2513
2516
  it: 'Adattatore e istanze',
2514
2517
  es: 'Adaptador e instalaciones',
2515
2518
  pl: 'Adapter and Instances',
2519
+ // @ts-ignore
2516
2520
  uk: 'Адаптер та інстанції',
2517
2521
  'zh-cn': '道歉和案',
2518
2522
  },
@@ -2534,6 +2538,7 @@ class DeviceWatcher extends utils.Adapter {
2534
2538
  it: 'JSON Elenco di tutte le istanze',
2535
2539
  es: 'JSON Lista de todos los casos',
2536
2540
  pl: 'JSON Lista wszystkich instancji',
2541
+ // @ts-ignore
2537
2542
  uk: 'Сонце Список всіх екземплярів',
2538
2543
  'zh-cn': '附 件 所有事例一览表',
2539
2544
  },
@@ -2557,6 +2562,7 @@ class DeviceWatcher extends utils.Adapter {
2557
2562
  it: 'Numero di tutte le istanze',
2558
2563
  es: 'Número de casos',
2559
2564
  pl: 'Liczba wszystkich instancji',
2565
+ // @ts-ignore
2560
2566
  uk: 'Кількість всіх екземплярів',
2561
2567
  'zh-cn': '各类案件数目',
2562
2568
  },
@@ -2581,6 +2587,7 @@ class DeviceWatcher extends utils.Adapter {
2581
2587
  it: 'JSON Elenco di tutte le istanze attive',
2582
2588
  es: 'JSON Lista de todos los casos activos',
2583
2589
  pl: 'JSON Lista wszystkich aktywnych instancji',
2590
+ // @ts-ignore
2584
2591
  uk: 'Сонце Список всіх активних екземплярів',
2585
2592
  'zh-cn': '附 件 所有积极事件清单',
2586
2593
  },
@@ -2604,6 +2611,7 @@ class DeviceWatcher extends utils.Adapter {
2604
2611
  it: 'Numero di tutte le istanze attive',
2605
2612
  es: 'Número de casos activos',
2606
2613
  pl: 'Liczba wszystkich czynnych przypadków',
2614
+ // @ts-ignore
2607
2615
  uk: 'Кількість всіх активних екземплярів',
2608
2616
  'zh-cn': '所有积极事件的数目',
2609
2617
  },
@@ -2627,6 +2635,7 @@ class DeviceWatcher extends utils.Adapter {
2627
2635
  it: 'JSON Elenco delle istanze disattivate',
2628
2636
  es: 'JSON Lista de casos desactivados',
2629
2637
  pl: 'JSON Lista przypadków deaktywowanych',
2638
+ // @ts-ignore
2630
2639
  uk: 'Сонце Перелік деактивованих екземплярів',
2631
2640
  'zh-cn': '附 件 被动事例清单',
2632
2641
  },
@@ -2650,6 +2659,7 @@ class DeviceWatcher extends utils.Adapter {
2650
2659
  it: 'Numero di istanze disattivate',
2651
2660
  es: 'Número de casos desactivados',
2652
2661
  pl: 'Liczba deaktywowanych instancji',
2662
+ // @ts-ignore
2653
2663
  uk: 'Кількість деактивованих екземплярів',
2654
2664
  'zh-cn': 'A. 递解事件的数目',
2655
2665
  },
@@ -2673,6 +2683,7 @@ class DeviceWatcher extends utils.Adapter {
2673
2683
  it: 'Elenco JSON delle istanze con errore',
2674
2684
  es: 'JSON lista de casos con error',
2675
2685
  pl: 'Lista błędów JSON',
2686
+ // @ts-ignore
2676
2687
  uk: 'JSON список екземплярів з помилкою',
2677
2688
  'zh-cn': '联合工作组办公室错误事件清单',
2678
2689
  },
@@ -2696,6 +2707,7 @@ class DeviceWatcher extends utils.Adapter {
2696
2707
  it: 'Conteggio di istanze con errore',
2697
2708
  es: 'Cuenta de casos con error',
2698
2709
  pl: 'Liczba przykładów w przypadku błędów',
2710
+ // @ts-ignore
2699
2711
  uk: 'Кількість екземплярів з помилкою',
2700
2712
  'zh-cn': '发生错误的情况',
2701
2713
  },
@@ -2721,6 +2733,7 @@ class DeviceWatcher extends utils.Adapter {
2721
2733
  it: 'Elenco di adattatori JSON con aggiornamenti disponibili',
2722
2734
  es: 'JSON lista de adaptadores con actualizaciones disponibles',
2723
2735
  pl: 'JSON lista adapterów z dostępnymi aktualizacjami',
2736
+ // @ts-ignore
2724
2737
  uk: 'JSON список адаптерів з доступними оновленнями',
2725
2738
  'zh-cn': '附录A',
2726
2739
  },
@@ -2744,6 +2757,7 @@ class DeviceWatcher extends utils.Adapter {
2744
2757
  it: 'Numero di adattatori con aggiornamenti disponibili',
2745
2758
  es: 'Número de adaptadores con actualizaciones disponibles',
2746
2759
  pl: 'Liczba adapterów z dostępną aktualizacją',
2760
+ // @ts-ignore
2747
2761
  uk: 'Кількість адаптерів з доступними оновленнями',
2748
2762
  'zh-cn': '更新的适应者人数',
2749
2763
  },
@@ -2973,7 +2987,7 @@ class DeviceWatcher extends utils.Adapter {
2973
2987
  let objectData;
2974
2988
  let list = '';
2975
2989
  let message = '';
2976
- const setMessage = async (message) => {
2990
+ const setMessage = async (/** @type {string} */ message) => {
2977
2991
  this.log.info(`${message}`);
2978
2992
  await this.setStateAsync('lastNotification', `${message}`, true);
2979
2993
  await this.sendNotification(`${message}`);
@@ -3672,6 +3686,7 @@ class DeviceWatcher extends utils.Adapter {
3672
3686
  it: 'È un dispositivo con offline',
3673
3687
  es: 'Es un dispositivo sin conexión',
3674
3688
  pl: 'Jest to jeden urządzenie z offlinem',
3689
+ // @ts-ignore
3675
3690
  uk: 'Є один пристрій з автономним',
3676
3691
  'zh-cn': '一处有线装置',
3677
3692
  },
@@ -3697,6 +3712,7 @@ class DeviceWatcher extends utils.Adapter {
3697
3712
  it: 'JSON RAW Elenco di tutti i dispositivi',
3698
3713
  es: 'JSON RAW Lista de todos los dispositivos',
3699
3714
  pl: 'JSON RAW Lista wszystkich urządzeń',
3715
+ // @ts-ignore
3700
3716
  uk: 'ДЖСОН РАВ Список всіх пристроїв',
3701
3717
  'zh-cn': 'JSONRAW 所有装置清单',
3702
3718
  },
@@ -3859,6 +3875,7 @@ class DeviceWatcher extends utils.Adapter {
3859
3875
  it: 'È un dispositivo con batteria bassa',
3860
3876
  es: 'Es un dispositivo con batería baja',
3861
3877
  pl: 'Jest to jeden urządzenie z niską baterią',
3878
+ // @ts-ignore
3862
3879
  uk: 'Є одним пристроєм з низьких акумуляторів',
3863
3880
  'zh-cn': '低电池的装置',
3864
3881
  },
@@ -3907,6 +3924,7 @@ class DeviceWatcher extends utils.Adapter {
3907
3924
  it: 'Numero di dispositivi con aggiornamenti disponibili',
3908
3925
  es: 'Número de dispositivos con actualizaciones disponibles',
3909
3926
  pl: 'Liczba urządzeń z dostępną aktualizacją',
3927
+ // @ts-ignore
3910
3928
  uk: 'Кількість пристроїв з доступними оновленнями',
3911
3929
  'zh-cn': '现有更新的装置数目',
3912
3930
  },
@@ -3931,6 +3949,7 @@ class DeviceWatcher extends utils.Adapter {
3931
3949
  it: 'JSON Elenco dei dispositivi con aggiornamenti disponibili',
3932
3950
  es: 'JSON Lista de dispositivos con actualizaciones disponibles',
3933
3951
  pl: 'JSON Lista urządzeń korzystających z aktualizacji',
3952
+ // @ts-ignore
3934
3953
  uk: 'Сонце Перелік пристроїв з доступними оновленнями',
3935
3954
  'zh-cn': '附 件 现有最新设备清单',
3936
3955
  },
@@ -3955,6 +3974,7 @@ class DeviceWatcher extends utils.Adapter {
3955
3974
  it: 'È un dispositivo updatable',
3956
3975
  es: 'Es un dispositivo actualizado',
3957
3976
  pl: 'Jest to jedno urządzenie updatable',
3977
+ // @ts-ignore
3958
3978
  uk: 'Є одним пристроєм',
3959
3979
  'zh-cn': '一台装置',
3960
3980
  },
@@ -4133,6 +4153,7 @@ class DeviceWatcher extends utils.Adapter {
4133
4153
  it: 'Elenchi HTML per adattatore e istanze',
4134
4154
  es: 'Listas HTML para adaptador y casos',
4135
4155
  pl: 'Listy HTML dla adaptera i instancji',
4156
+ // @ts-ignore
4136
4157
  uk: 'Списки HTML для адаптерів та екземплярів',
4137
4158
  'zh-cn': 'HTML名单',
4138
4159
  },
@@ -4152,6 +4173,7 @@ class DeviceWatcher extends utils.Adapter {
4152
4173
  it: 'HTML Elenco di tutte le istanze',
4153
4174
  es: 'HTML Lista de todos los casos',
4154
4175
  pl: 'HTML Lista wszystkich instancji',
4176
+ // @ts-ignore
4155
4177
  uk: 'Українська Список всіх екземплярів',
4156
4178
  'zh-cn': 'HTML 所有事例一览表',
4157
4179
  },
@@ -4176,6 +4198,7 @@ class DeviceWatcher extends utils.Adapter {
4176
4198
  it: 'HTML Elenco di tutte le istanze attive',
4177
4199
  es: 'HTML Lista de todos los casos activos',
4178
4200
  pl: 'HTML Lista wszystkich aktywnych instancji',
4201
+ // @ts-ignore
4179
4202
  uk: 'Українська Список всіх активних екземплярів',
4180
4203
  'zh-cn': 'HTML 所有积极事件清单',
4181
4204
  },
@@ -4200,6 +4223,7 @@ class DeviceWatcher extends utils.Adapter {
4200
4223
  it: 'HTML Elenco di tutte le istanze disattivate',
4201
4224
  es: 'HTML Lista de todos los casos desactivados',
4202
4225
  pl: 'HTML Lista wszystkich przypadków deaktywowanych',
4226
+ // @ts-ignore
4203
4227
  uk: 'Українська Список всіх деактивованих екземплярів',
4204
4228
  'zh-cn': 'HTML 所有违犯事件清单',
4205
4229
  },
@@ -4224,6 +4248,7 @@ class DeviceWatcher extends utils.Adapter {
4224
4248
  it: 'HTML Elenco delle istanze con errore',
4225
4249
  es: 'HTML Lista de casos con error',
4226
4250
  pl: 'HTML Lista przykładów z błądem',
4251
+ // @ts-ignore
4227
4252
  uk: 'Українська Список екземплярів з помилкою',
4228
4253
  'zh-cn': 'HTML 出现错误的情况清单',
4229
4254
  },
@@ -4247,6 +4272,7 @@ class DeviceWatcher extends utils.Adapter {
4247
4272
  it: 'Elenco HTML degli adattatori con aggiornamenti disponibili',
4248
4273
  es: 'Lista HTML de adaptadores con actualizaciones disponibles',
4249
4274
  pl: 'Lista adapterów HTML z dostępnymi aktualizacjami',
4275
+ // @ts-ignore
4250
4276
  uk: 'HTML список адаптерів з доступними оновленнями',
4251
4277
  'zh-cn': 'HTML 可供更新的适应者名单',
4252
4278
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.device-watcher",
3
- "version": "2.9.4",
3
+ "version": "2.9.5",
4
4
  "description": "Watchdog for devices",
5
5
  "author": {
6
6
  "name": "Christian Behrends",
@@ -21,8 +21,11 @@
21
21
  "type": "git",
22
22
  "url": "https://github.com/ciddi89/ioBroker.device-watcher"
23
23
  },
24
+ "engines": {
25
+ "node": ">= 16"
26
+ },
24
27
  "dependencies": {
25
- "@iobroker/adapter-core": "^3.0.3"
28
+ "@iobroker/adapter-core": "^3.0.4"
26
29
  },
27
30
  "devDependencies": {
28
31
  "@alcalzone/release-script": "^3.6.0",
@@ -31,25 +34,25 @@
31
34
  "@alcalzone/release-script-plugin-manual-review": "^3.5.9",
32
35
  "@iobroker/adapter-dev": "^1.2.0",
33
36
  "@iobroker/testing": "^4.1.0",
34
- "@types/chai": "^4.3.6",
35
- "@types/chai-as-promised": "^7.1.6",
36
- "@types/mocha": "^10.0.2",
37
- "@types/node": "^20.8.0",
38
- "@types/node-schedule": "^2.1.1",
39
- "@types/proxyquire": "^1.3.29",
37
+ "@types/chai": "^4.3.9",
38
+ "@types/chai-as-promised": "^7.1.7",
39
+ "@types/mocha": "^10.0.3",
40
+ "@types/node": "^20.8.10",
41
+ "@types/node-schedule": "^2.1.2",
42
+ "@types/proxyquire": "^1.3.30",
40
43
  "@types/sinon": "^10.0.16",
41
- "@types/sinon-chai": "^3.2.10",
44
+ "@types/sinon-chai": "^3.2.11",
42
45
  "chai": "^4.3.10",
43
46
  "chai-as-promised": "^7.1.1",
44
47
  "cron-parser": "^4.9.0",
45
- "eslint": "^8.50.0",
48
+ "eslint": "^8.52.0",
46
49
  "eslint-config-prettier": "^9.0.0",
47
- "eslint-plugin-prettier": "^5.0.0",
50
+ "eslint-plugin-prettier": "^5.0.1",
48
51
  "mocha": "^10.2.0",
49
52
  "node-schedule": "^2.1.1",
50
53
  "prettier": "^3.0.3",
51
54
  "proxyquire": "^2.1.3",
52
- "sinon": "^16.0.0",
55
+ "sinon": "^17.0.0",
53
56
  "sinon-chai": "^3.7.0",
54
57
  "typescript": "~5.2.2"
55
58
  },