iobroker.device-watcher 2.10.5 → 2.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -0
- package/README.md +52 -40
- package/admin/jsonConfig.json5 +19 -0
- package/io-package.json +66 -61
- package/lib/arrApart.js +13 -0
- package/main.js +43 -30
- package/package.json +15 -15
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
# ioBroker.device-watcher
|
|
4
4
|
|
|
5
|
-
[](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/blob/main/LICENSE)
|
|
6
6
|
[](https://www.npmjs.com/package/iobroker.device-watcher)
|
|
7
|
-

|
|
8
8
|
[](https://weblate.iobroker.net/engage/adapters/?utm_source=widget)</br>
|
|
9
|
-
](https://img.shields.io/github/commits-since/
|
|
11
|
-

|
|
10
|
+

|
|
11
|
+

|
|
12
|
+

|
|
13
13
|
</br>
|
|
14
14
|
**Version:** </br>
|
|
15
15
|
[](https://www.npmjs.com/package/iobroker.device-watcher)
|
|
@@ -17,9 +17,8 @@
|
|
|
17
17
|

|
|
18
18
|
</br>
|
|
19
19
|
**Tests:** </br>
|
|
20
|
-
](https://snyk.io/test/github/ciddi89/ioBroker.device-watcher)
|
|
20
|
+

|
|
21
|
+
[](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/actions/workflows/codeql.yml)
|
|
23
22
|
|
|
24
23
|
## Sentry
|
|
25
24
|
|
|
@@ -143,7 +142,7 @@ It's also counting them in the same categories. You can use the lists and states
|
|
|
143
142
|
</table>
|
|
144
143
|
|
|
145
144
|
A list with more information about the supported adapters can be found here: [in German](docs/de/listSupportAdapter.md) or [in English](docs/en/listSupportAdapter.md).</br>
|
|
146
|
-
**If one adapter is missing, feel free to open an request [issue](https://github.com/
|
|
145
|
+
**If one adapter is missing, feel free to open an request [issue](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/new/choose) to add it.**
|
|
147
146
|
|
|
148
147
|
### Notifications:
|
|
149
148
|
|
|
@@ -183,25 +182,37 @@ It's possible to select:
|
|
|
183
182
|

|
|
184
183
|

|
|
185
184
|
|
|
185
|
+
## Credits
|
|
186
|
+
This adapter would not have been possible without the great work of Christian Behrends <mail@christian-behrends.de> who implemented the initial releases of this adapter.
|
|
187
|
+
|
|
186
188
|
## Changelog
|
|
187
189
|
|
|
188
190
|
<!--
|
|
189
191
|
Placeholder for the next version (at the beginning of the line):
|
|
190
192
|
### **WORK IN PROGRESS**
|
|
191
193
|
-->
|
|
194
|
+
### 2.12.0 (2024-04-05)
|
|
195
|
+
- (mcm1957) Adapter requires nodeJS >= 18 and js-controller >= 5 now
|
|
196
|
+
- (mcm1957) Adpter has been migrated to iobroker-community-adapters organisation
|
|
197
|
+
- (mcm1957) Dependencies have been updated
|
|
198
|
+
|
|
199
|
+
### 2.11.0 (2024-03-18)
|
|
200
|
+
|
|
201
|
+
- (ciddi89) Added [#323](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/323): Support for Ring Cameras
|
|
202
|
+
|
|
192
203
|
### 2.10.5 (2024-02-29)
|
|
193
204
|
|
|
194
|
-
- (ciddi89) Fixed [#262](https://github.com/
|
|
205
|
+
- (ciddi89) Fixed [#262](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/262) & [#292](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/292): Phantom Messages
|
|
195
206
|
|
|
196
207
|
### 2.10.4 (2024-02-26)
|
|
197
208
|
|
|
198
209
|
- (ciddi89) Added: Option to set language for messages and tables
|
|
199
|
-
- (ciddi89) Fixed [#312](https://github.com/
|
|
210
|
+
- (ciddi89) Fixed [#312](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/312): Schedule messages were not emptied after they were sent
|
|
200
211
|
- (ciddi89) Fixed: Too many messages were sent about online / offline devices when an instance was started or ended
|
|
201
212
|
|
|
202
213
|
### 2.10.3 (2024-01-27)
|
|
203
214
|
|
|
204
|
-
- (ciddi89) Fixed [#299](https://github.com/
|
|
215
|
+
- (ciddi89) Fixed [#299](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/299): blacklisted devices was shown in html-list
|
|
205
216
|
|
|
206
217
|
### 2.10.2 (2024-01-20)
|
|
207
218
|
|
|
@@ -215,9 +226,9 @@ It's possible to select:
|
|
|
215
226
|
|
|
216
227
|
### 2.10.0 (2024-01-13)
|
|
217
228
|
|
|
218
|
-
- (ciddi89) Fixed: Batterie value for shelly plus Gen2 devices [#282](https://github.com/
|
|
219
|
-
- (ciddi89) Added: Option to display the last signal strength value when the device is offline [#282](https://github.com/
|
|
220
|
-
- (ciddi89) Added: Translation for JSON lists, HTML lists and notifications [#245](https://github.com/
|
|
229
|
+
- (ciddi89) Fixed: Batterie value for shelly plus Gen2 devices [#282](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/282)
|
|
230
|
+
- (ciddi89) Added: Option to display the last signal strength value when the device is offline [#282](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/282)
|
|
231
|
+
- (ciddi89) Added: Translation for JSON lists, HTML lists and notifications [#245](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/245)
|
|
221
232
|
- (ciddi89) Other: clean up code
|
|
222
233
|
|
|
223
234
|
### 2.9.14 (2024-01-04)
|
|
@@ -226,12 +237,12 @@ It's possible to select:
|
|
|
226
237
|
|
|
227
238
|
### 2.9.13 (2024-01-03)
|
|
228
239
|
|
|
229
|
-
- (ciddi89) Fixed: Issues from v2.9.12 [#283](https://github.com/
|
|
230
|
-
- (ciddi89) Fixed: High CPU usage at object and state changes [#283](https://github.com/
|
|
240
|
+
- (ciddi89) Fixed: Issues from v2.9.12 [#283](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/283)
|
|
241
|
+
- (ciddi89) Fixed: High CPU usage at object and state changes [#283](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/283)
|
|
231
242
|
|
|
232
243
|
### 2.9.12 (2024-01-02)
|
|
233
244
|
|
|
234
|
-
- (ciddi89) Fixed: Changed handling for state changes and subscriptions [#283](https://github.com/
|
|
245
|
+
- (ciddi89) Fixed: Changed handling for state changes and subscriptions [#283](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/283)
|
|
235
246
|
|
|
236
247
|
### 2.9.11 (2023-12-12)
|
|
237
248
|
|
|
@@ -248,13 +259,13 @@ It's possible to select:
|
|
|
248
259
|
|
|
249
260
|
### 2.9.8 (2023-11-26)
|
|
250
261
|
|
|
251
|
-
- (ciddi89) Fixed: Added additional check for instance states [#262](https://github.com/
|
|
262
|
+
- (ciddi89) Fixed: Added additional check for instance states [#262](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/262)
|
|
252
263
|
- (ciddi89) Fixed: Execute adapter even if no device adapter is selected
|
|
253
264
|
|
|
254
265
|
### 2.9.7 (2023-11-23)
|
|
255
266
|
|
|
256
267
|
- (ciddi89) Added: Support for Wifilight
|
|
257
|
-
- (ciddi89) Fixed: Multiple messages if Sonoff devices reachable [#244](https://github.com/
|
|
268
|
+
- (ciddi89) Fixed: Multiple messages if Sonoff devices reachable [#244](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/244)
|
|
258
269
|
|
|
259
270
|
### 2.9.6 (2023-11-12)
|
|
260
271
|
|
|
@@ -272,8 +283,8 @@ It's possible to select:
|
|
|
272
283
|
|
|
273
284
|
### 2.9.4 (2023-10-16)
|
|
274
285
|
|
|
275
|
-
- (ciddi89) Added: Fallback for HmIp-eTRV-2 batterie devices [#218](https://github.com/
|
|
276
|
-
- (@mango1402) Fixed: Proxmox VM/CT online status [#241](https://github.com/
|
|
286
|
+
- (ciddi89) Added: Fallback for HmIp-eTRV-2 batterie devices [#218](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/218)
|
|
287
|
+
- (@mango1402) Fixed: Proxmox VM/CT online status [#241](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/241)
|
|
277
288
|
- (ciddi89) Updated: Dependencies
|
|
278
289
|
|
|
279
290
|
### 2.9.3 (2023-07-21)
|
|
@@ -302,17 +313,17 @@ It's possible to select:
|
|
|
302
313
|
|
|
303
314
|
### 2.8.5 (2023-04-20)
|
|
304
315
|
|
|
305
|
-
- (ciddi89) Fixed: Error that instances can not be added to the blacklist because of the popup message [#172](https://github.com/
|
|
306
|
-
- (ciddi89) Fixed: That messages have been sent when the instance has briefly jumped from Enabled to Disabled and back to Enabled [#173](https://github.com/
|
|
316
|
+
- (ciddi89) Fixed: Error that instances can not be added to the blacklist because of the popup message [#172](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/172)
|
|
317
|
+
- (ciddi89) Fixed: That messages have been sent when the instance has briefly jumped from Enabled to Disabled and back to Enabled [#173](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/173)
|
|
307
318
|
|
|
308
319
|
### 2.8.4 (2023-04-16)
|
|
309
320
|
|
|
310
|
-
- (ciddi89) Fixed: Functions for instance status completely renewed ([#170](https://github.com/
|
|
311
|
-
- (ciddi89) Added: 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/
|
|
321
|
+
- (ciddi89) Fixed: Functions for instance status completely renewed ([#170](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/170))
|
|
322
|
+
- (ciddi89) Added: 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/iobroker-community-adapters/ioBroker.device-watcher/issues/170))
|
|
312
323
|
|
|
313
324
|
### 2.8.3 (2023-04-13)
|
|
314
325
|
|
|
315
|
-
- (ciddi89) Fixed: Multiple push messages when restarting an instance ([#170](https://github.com/
|
|
326
|
+
- (ciddi89) Fixed: Multiple push messages when restarting an instance ([#170](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/170))
|
|
316
327
|
|
|
317
328
|
### 2.8.2 (2023-04-13)
|
|
318
329
|
|
|
@@ -354,10 +365,10 @@ It's possible to select:
|
|
|
354
365
|
|
|
355
366
|
- (ciddi89) Added: Signal adapter for notifications
|
|
356
367
|
- (ciddi89) Added: Raw-List with all data of devices
|
|
357
|
-
- (ciddi89) Added: FHEM TFA sensors [#137](https://github.com/
|
|
368
|
+
- (ciddi89) Added: FHEM TFA sensors [#137](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/137)
|
|
358
369
|
- (ciddi89) Improvement: Objecthandling of devices/instances
|
|
359
370
|
- (ciddi89) Improvement: Adapter update data
|
|
360
|
-
- (ciddi89) Fixed: HM-CC-RT-DN battery [#128](https://github.com/
|
|
371
|
+
- (ciddi89) Fixed: HM-CC-RT-DN battery [#128](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/128)
|
|
361
372
|
- (ciddi89) Added/Changed: some texts in instance config
|
|
362
373
|
|
|
363
374
|
### 2.6.0 (2023-02-06)
|
|
@@ -366,9 +377,9 @@ It's possible to select:
|
|
|
366
377
|
- (ciddi89) Fixed: Made working notification for adapter update
|
|
367
378
|
- (ciddi89) Added: Delete objects automatically if it is not selected in settings.
|
|
368
379
|
- (ciddi89) Enhancement: Check if general device connected state is true for more then few seconds to prevent multiple device status messages
|
|
369
|
-
- (ciddi89) Added: Proxmox Adapter ([#123](https://github.com/
|
|
370
|
-
- (ciddi89) Fixed: Delete/Add data of new or deleted instance without restart ([#125](https://github.com/
|
|
371
|
-
- (ciddi89) Fixed: Delete/Add data of new or deleted devices without restart ([#125](https://github.com/
|
|
380
|
+
- (ciddi89) Added: Proxmox Adapter ([#123](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/123))
|
|
381
|
+
- (ciddi89) Fixed: Delete/Add data of new or deleted instance without restart ([#125](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/125))
|
|
382
|
+
- (ciddi89) Fixed: Delete/Add data of new or deleted devices without restart ([#125](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/125))
|
|
372
383
|
- (ciddi89) Enhancement: Schedule and State notifications
|
|
373
384
|
- (ciddi89) Enhancement: Some code improvements
|
|
374
385
|
|
|
@@ -401,8 +412,8 @@ It's possible to select:
|
|
|
401
412
|
|
|
402
413
|
- (ciddi89) sorting for device selection in the blacklist added
|
|
403
414
|
- (ciddi89) Devices can now also be blacklisted in adapter own list
|
|
404
|
-
- (ciddi89) booleans for lowbat, offline and upgradable added ([#105](https://github.com/
|
|
405
|
-
- (ciddi89) euSec adapter added ([#73](https://github.com/
|
|
415
|
+
- (ciddi89) booleans for lowbat, offline and upgradable added ([#105](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/105))
|
|
416
|
+
- (ciddi89) euSec adapter added ([#73](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/73))
|
|
406
417
|
|
|
407
418
|
### 2.2.2 (2022-12-29)
|
|
408
419
|
|
|
@@ -428,13 +439,13 @@ It's possible to select:
|
|
|
428
439
|
### 2.1.0 (2022-12-19)
|
|
429
440
|
|
|
430
441
|
- (Scrounger) optionally show adapter name in notification
|
|
431
|
-
- (ciddi89) optionally receive a message when an update for an device is available [#87](https://github.com/
|
|
442
|
+
- (ciddi89) optionally receive a message when an update for an device is available [#87](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/87)
|
|
432
443
|
- (Scrounger) update message for shelly adapter added
|
|
433
444
|
- (Scrounger) Yamaha MusicCast adapter added
|
|
434
445
|
- (ciddi89) update message for unifi devices added
|
|
435
|
-
- (ciddi89) fixed devices are not reported in case battery is 0% [#86](https://github.com/
|
|
436
|
-
- (ciddi89) SynoChat added [#85](https://github.com/
|
|
437
|
-
- (ciddi89) MQTT NukiHub, MQTT-Clien Zigbee2MQTT added ([#82](https://github.com/
|
|
446
|
+
- (ciddi89) fixed devices are not reported in case battery is 0% [#86](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/86)
|
|
447
|
+
- (ciddi89) SynoChat added [#85](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/85)
|
|
448
|
+
- (ciddi89) MQTT NukiHub, MQTT-Clien Zigbee2MQTT added ([#82](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/82))
|
|
438
449
|
|
|
439
450
|
### 2.0.3 (2022-11-26)
|
|
440
451
|
|
|
@@ -451,7 +462,7 @@ It's possible to select:
|
|
|
451
462
|
- small improvements of translations
|
|
452
463
|
- offline time settings: you can use 0 instead of -1 (it will be the new standard)
|
|
453
464
|
- improvements of adaptername
|
|
454
|
-
- fixed issues [#66](https://github.com/
|
|
465
|
+
- fixed issues [#66](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/66) & [#67](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/67)
|
|
455
466
|
- repaired blacklist notifications
|
|
456
467
|
- added handling for blacklist object
|
|
457
468
|
|
|
@@ -566,6 +577,7 @@ It's possible to select:
|
|
|
566
577
|
|
|
567
578
|
MIT License
|
|
568
579
|
|
|
580
|
+
Copyright (c) 2024 iobroker-community-adapters <iobroker-community-adapters@gmx.de>
|
|
569
581
|
Copyright (c) 2024 Christian Behrends <mail@christian-behrends.de>
|
|
570
582
|
|
|
571
583
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
package/admin/jsonConfig.json5
CHANGED
|
@@ -289,6 +289,13 @@
|
|
|
289
289
|
lg: 3,
|
|
290
290
|
label: 'Proxmox',
|
|
291
291
|
},
|
|
292
|
+
ringDevices: {
|
|
293
|
+
type: 'checkbox',
|
|
294
|
+
sm: 6,
|
|
295
|
+
md: 6,
|
|
296
|
+
lg: 3,
|
|
297
|
+
label: 'Ring',
|
|
298
|
+
},
|
|
292
299
|
roombaDevices: {
|
|
293
300
|
type: 'checkbox',
|
|
294
301
|
sm: 6,
|
|
@@ -2215,6 +2222,18 @@
|
|
|
2215
2222
|
hidden: '!data.proxmoxDevices',
|
|
2216
2223
|
hideOnlyControl: false,
|
|
2217
2224
|
},
|
|
2225
|
+
ringMaxMinutes: {
|
|
2226
|
+
type: 'number',
|
|
2227
|
+
min: -1,
|
|
2228
|
+
max: 100000,
|
|
2229
|
+
sm: 6,
|
|
2230
|
+
md: 6,
|
|
2231
|
+
lg: 3,
|
|
2232
|
+
label: 'Ring',
|
|
2233
|
+
help: 'in minutes',
|
|
2234
|
+
hidden: '!data.ringDevices',
|
|
2235
|
+
hideOnlyControl: false,
|
|
2236
|
+
},
|
|
2218
2237
|
roombaMaxMinutes: {
|
|
2219
2238
|
type: 'number',
|
|
2220
2239
|
min: -1,
|
package/io-package.json
CHANGED
|
@@ -1,46 +1,72 @@
|
|
|
1
1
|
{
|
|
2
2
|
"common": {
|
|
3
3
|
"name": "device-watcher",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.12.0",
|
|
5
5
|
"news": {
|
|
6
|
+
"2.12.0": {
|
|
7
|
+
"en": "Adapter requires nodeJS >= 18 and js-controller >= 5 now\nAdpter has been migrated to iobroker-community-adapters organisation\nDependencies have been updated",
|
|
8
|
+
"de": "Adapter benötigt KnotenJS >= 18 und js-controller >= 5 jetzt\nAdpter wurde zu iobroker-community-Adapter Organisation migriert\nAbhängigkeiten wurden aktualisiert",
|
|
9
|
+
"ru": "Адаптер требует nodeJS >= 18 и js-контроллер >= 5 сейчас\nAdpter был перенесен в организацию iobroker-community-adapters\nЗависимость обновлена",
|
|
10
|
+
"pt": "Adapter requer nodeJS >= 18 e js-controller >= 5 agora\nAdpter foi migrado para a organização iobroker-community-adapters\nAs dependências foram atualizadas",
|
|
11
|
+
"nl": "Adapter vereist nodeJS < 18 en js-controller <= Nu 5\nAdpter is gemigreerd naar iobroker-community-adapters organisatie\nAfhankelijkheden zijn bijgewerkt",
|
|
12
|
+
"fr": "Adaptateur nécessite noeudJS >= 18 et js-controller >= 5 maintenant\nAdpter a été transféré à l'organisation iobroker-community-adapters\nLes dépendances ont été actualisées",
|
|
13
|
+
"it": "Adattatore richiede nodeJS >= 18 e js-controller >= 5 ora\nAdpter è stato migrato per l'organizzazione di adattatori della comunità\nLe dipendenze sono state aggiornate",
|
|
14
|
+
"es": "Adaptador requiere nodeJS ю= 18 y js-controller 5 ahora\nAdpter ha sido migrado a la organización de ibroker-community-adapters\nSe han actualizado las dependencias",
|
|
15
|
+
"pl": "Adapter wymaga nodeJS > = 18 i sterownika js- > = 5 teraz\nAdresat został przeniesiony do organizacji adapterów dla społeczności iobrokerskiej\nZaktualizowano zależności",
|
|
16
|
+
"uk": "Адаптер вимагає nodeJS >= 18 і js-controller >= 5 тепер\nAdpter був мігрований до організації iobroker-community-adapters\nЗалежність було оновлено",
|
|
17
|
+
"zh-cn": "适配器需要节点JS QQ 18和js控制器 QQ 现在5号\n接受者已迁移到经济经纪人-社区适应者组织\n依赖关系已更新"
|
|
18
|
+
},
|
|
19
|
+
"2.11.0": {
|
|
20
|
+
"en": "Added [#323](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/323): Support for Ring Cameras",
|
|
21
|
+
"de": "Hinzugefügt [#323](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/323): Unterstützung für Ring Kameras",
|
|
22
|
+
"ru": "Добавлено [#323] (https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/323): Поддержка кольцевых камер",
|
|
23
|
+
"pt": "Adicionado [#323](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/323): Suporte para câmeras de anel",
|
|
24
|
+
"nl": "Toegevoegd [#323](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/323): Ondersteuning voor Ring camera's",
|
|
25
|
+
"fr": "Ajouté [#323](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/323): Prise en charge des caméras Ring",
|
|
26
|
+
"it": "Aggiunto [#323](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/323): Supporto per telecamere anelli",
|
|
27
|
+
"es": "[#323](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/323): Soporte para cámaras de anillo",
|
|
28
|
+
"pl": "Dodano [# 323] (https: / / github.com / ciddi89 / ioBroker.device- watcher / issues / 323): Wsparcie dla kamer pierścieniowych",
|
|
29
|
+
"uk": "Додано [#323](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/products/323): Підтримка камери кільця",
|
|
30
|
+
"zh-cn": "添加 [# 323] (https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/323): 中文(简体) ). 环相机支持"
|
|
31
|
+
},
|
|
6
32
|
"2.10.5": {
|
|
7
|
-
"en": "Fixed [#262](https://github.com/
|
|
8
|
-
"de": "Behoben [#262](https://github.com/
|
|
9
|
-
"ru": "Fixed [#262] (https://github.com/
|
|
10
|
-
"pt": "Corrigido [#262](https://github.com/
|
|
11
|
-
"nl": "Vast [#262](https://github.com/
|
|
12
|
-
"fr": "Correction [#262](https://github.com/
|
|
13
|
-
"it": "[#262](https://github.com/
|
|
14
|
-
"es": "[#262](https://github.com/
|
|
33
|
+
"en": "Fixed [#262](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/262) & [#292](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/292): Phantom Messages",
|
|
34
|
+
"de": "Behoben [#262](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/262) & [#292](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/292): Phantom-Nachrichten",
|
|
35
|
+
"ru": "Fixed [#262] (https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/262) & [#292] (https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/292): Фантомные сообщения",
|
|
36
|
+
"pt": "Corrigido [#262](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/262) & [#292](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/292): Mensagens de Fantasma",
|
|
37
|
+
"nl": "Vast [#262](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/262) & [#292](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/292): Phantom messages",
|
|
38
|
+
"fr": "Correction [#262](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/262) et [#292](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/292) : Messages fantômes",
|
|
39
|
+
"it": "[#262](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/262) & [#292](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/292): Messaggi fantasma",
|
|
40
|
+
"es": "[#262](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/262) & [#292](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/292): Mensajes Fantasma",
|
|
15
41
|
"pl": "Fixed [# 262] (https: / / github.com / ciddi89 / ioBroker.device- watcher / issues / 262) & [# 292] (https: / / github.com / ciddi89 / iBroker.device- watcher / issues / 292): Wiadomości Phantom",
|
|
16
|
-
"uk": "Виправлено [#262](https://github.com/
|
|
17
|
-
"zh-cn": "固定 [262] (https://github.com/
|
|
42
|
+
"uk": "Виправлено [#262](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/262) & [#292](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/products/292): Повідомлення",
|
|
43
|
+
"zh-cn": "固定 [262] (https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/262) 和 [292] (https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/292): 幽灵消息"
|
|
18
44
|
},
|
|
19
45
|
"2.10.4": {
|
|
20
|
-
"en": "Added: Option to set language for messages and tables\nFixed [#312](https://github.com/
|
|
21
|
-
"de": "Hinzugefügt: Option zur Einstellung der Sprache für Nachrichten und Tabellen\nBehoben [#312](https://github.com/
|
|
22
|
-
"ru": "Добавлено: Возможность установки языка для сообщений и таблиц\nFixed [#312] (https://github.com/
|
|
23
|
-
"pt": "Adicionado: Opção para definir o idioma para mensagens e tabelas\nCorrigido [#312](https://github.com/
|
|
24
|
-
"nl": "Toegevoegd: optie om taal voor berichten en tabellen in te stellen\nVaste [#312](https://github.com/
|
|
25
|
-
"fr": "Ajouté : Option pour définir la langue des messages et des tables\nCorrection [#312](https://github.com/
|
|
26
|
-
"it": "Aggiunto: Opzione per impostare la lingua per i messaggi e le tabelle\n[#312](https://github.com/
|
|
27
|
-
"es": "Añadido: Opción de establecer el lenguaje para mensajes y tablas\n[#312](https://github.com/
|
|
46
|
+
"en": "Added: Option to set language for messages and tables\nFixed [#312](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/312): Schedule messages were not emptied after they were sent\nFixed: Too many messages were sent about online / offline devices when an instance was started or ended",
|
|
47
|
+
"de": "Hinzugefügt: Option zur Einstellung der Sprache für Nachrichten und Tabellen\nBehoben [#312](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/312): Nachrichten wurden nicht entleert, nachdem sie gesendet wurden\nFix: Zu viele Nachrichten wurden über Online / Offline-Geräte gesendet, wenn eine Instanz gestartet oder beendet wurde",
|
|
48
|
+
"ru": "Добавлено: Возможность установки языка для сообщений и таблиц\nFixed [#312] (https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/312): Расписание сообщений не было опустошено после их отправки\nИсправлено: слишком много сообщений было отправлено о онлайн-/офлайн-устройствах, когда экземпляр был запущен или закончился",
|
|
49
|
+
"pt": "Adicionado: Opção para definir o idioma para mensagens e tabelas\nCorrigido [#312](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/312): Mensagens de agendamento não foram esvaziadas após serem enviadas\nCorrigido: Muitas mensagens foram enviadas sobre dispositivos online / offline quando uma instância foi iniciada ou terminada",
|
|
50
|
+
"nl": "Toegevoegd: optie om taal voor berichten en tabellen in te stellen\nVaste [#312](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/312): Schemaberichten werden niet geleegd nadat ze werden verzonden\nFixed: Te veel berichten werden verzonden over online / offline apparaten wanneer een instantie werd gestart of beëindigd",
|
|
51
|
+
"fr": "Ajouté : Option pour définir la langue des messages et des tables\nCorrection [#312](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/312) : Les messages ne sont pas vidés après leur envoi\nCorrection : Trop de messages ont été envoyés sur les appareils en ligne / hors ligne quand une instance a été lancée ou terminée",
|
|
52
|
+
"it": "Aggiunto: Opzione per impostare la lingua per i messaggi e le tabelle\n[#312](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/312): I messaggi di pianificazione non sono stati svuotati dopo che sono stati inviati\nFisso: Troppi messaggi sono stati inviati su dispositivi online / offline quando un'istanza è stata avviata o terminata",
|
|
53
|
+
"es": "Añadido: Opción de establecer el lenguaje para mensajes y tablas\n[#312](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/312): Los mensajes programados no fueron vaciados después de ser enviados\nFijo: Demasiados mensajes fueron enviados sobre dispositivos en línea / offline cuando una instancia se inició o terminó",
|
|
28
54
|
"pl": "Dodano: Opcja ustawienia języka dla wiadomości i tabel\nData umieszczenia w wykazie Wiadomości nie zostały opróżnione po wysłaniu\nNaprawiono: zbyt wiele wiadomości zostało wysłanych o urządzeniach online / offline, gdy instancja została uruchomiona lub zakończona",
|
|
29
|
-
"uk": "Додано: Варіант встановити мову для повідомлень і таблиць\nВиправлено [#312](https://github.com/
|
|
30
|
-
"zh-cn": "添加: 设置信件和表格语言的选项\n固定 [# 312] (https://github.com/
|
|
55
|
+
"uk": "Додано: Варіант встановити мову для повідомлень і таблиць\nВиправлено [#312](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/products/312): Після того, як вони відправили\nВиправлено: Занадто багато повідомлень надіслали про онлайн / офлайн-пристрої, коли було запущено екземпляр або закінчився",
|
|
56
|
+
"zh-cn": "添加: 设置信件和表格语言的选项\n固定 [# 312] (https://github.com/iobroker-community-adapters/ioBroker.device-watcher/isses/312): (中文(简体) ). 发送后未清空调度信件\n固定: 当一个实例开始或结束时, 关于在线/ 离线设备的邮件过多"
|
|
31
57
|
},
|
|
32
58
|
"2.10.3": {
|
|
33
|
-
"en": "Fixed [#299](https://github.com/
|
|
34
|
-
"de": "Behoben [#299](https://github.com/
|
|
59
|
+
"en": "Fixed [#299](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/299): blacklisted devices was shown in html-list",
|
|
60
|
+
"de": "Behoben [#299](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/299): In der Blacklist aufgeführte Geräte wurden in html-list angezeigt",
|
|
35
61
|
"ru": "Fixed [#299] (http://github.com/ciddi89/ioBroker.device-watcher/issues/299): blacklisted devices was shown in html-list",
|
|
36
|
-
"pt": "Corrigido [#299](https://github.com/
|
|
37
|
-
"nl": "Fixed [#299](https://github.com/
|
|
38
|
-
"fr": "Correction [#299](https://github.com/
|
|
39
|
-
"it": "Fisso [#299](https://github.com/
|
|
40
|
-
"es": "Fixed [#299](https://github.com/
|
|
62
|
+
"pt": "Corrigido [#299](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/299): dispositivos listados em pretos foram mostrados em html-list",
|
|
63
|
+
"nl": "Fixed [#299](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/299): blacklisted devices werd getoond in html-list",
|
|
64
|
+
"fr": "Correction [#299](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/299): les appareils sur liste noire sont affichés dans la liste html",
|
|
65
|
+
"it": "Fisso [#299](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/299): la lista nera è stata mostrata nella lista html",
|
|
66
|
+
"es": "Fixed [#299](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/299): blacklisted devices was shown in html-list",
|
|
41
67
|
"pl": "Poprawiono [# 299] (https: / / github.com / ciddi89 / ioBroker.device- watcher / issues / 299): na liście html- pokazano na czarnej liście urządzenia",
|
|
42
|
-
"uk": "Виправлено [#299](https://github.com/
|
|
43
|
-
"zh-cn": "固定 [299] (https://github.com/
|
|
68
|
+
"uk": "Виправлено [#299](https://github.com/iobroker-community-adapters/ioBroker.device-watcher/products/299): Чорнелистові пристрої були показані в html-list",
|
|
69
|
+
"zh-cn": "固定 [299] (https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues/299):列入黑名单的设备在html列表中显示"
|
|
44
70
|
},
|
|
45
71
|
"2.10.2": {
|
|
46
72
|
"en": "Fixed: typeError for available adapter update messages\nFixed: Lists for updatable adapter",
|
|
@@ -67,32 +93,6 @@
|
|
|
67
93
|
"pl": "Naprawiono: kilka błędów z ostatniej wersji\nDodano: tłumaczenie gotowe",
|
|
68
94
|
"uk": "Виправлено: кілька помилок з останньої версії\nДодано: закінчені переклади",
|
|
69
95
|
"zh-cn": "固定: 上一个版本的一些错误\n添加:完成翻译"
|
|
70
|
-
},
|
|
71
|
-
"2.10.0": {
|
|
72
|
-
"en": "Fixed: Batterie value for shelly plus Gen2 devices [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nAdded: Option to display the last signal strength value when the device is offline [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nAdded: Translation for JSON lists, HTML lists and notifications [#245](https://github.com/ciddi89/ioBroker.device-watcher/issues/245)\nOther: clean up code",
|
|
73
|
-
"de": "Behoben: Batteriewert für Shelly plus Gen2 Geräte [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nHinzugefügt: Option, den letzten Signalstärkewert anzuzeigen, wenn das Gerät offline ist [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nHinzugefügt: Übersetzung für JSON-Listen, HTML-Listen und Benachrichtigungen [#245](https://github.com/ciddi89/ioBroker.device-watcher/issues/245)\nAndere: Code aufgeräumt",
|
|
74
|
-
"ru": "Исправлено: Значение батареи для устройств Shelly и Gen2 [#282] (https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nДобавлено: Возможность отображения последнего значения силы сигнала, когда устройство отключено [#282] (https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nДобавлено: Перевод для списков JSON, HTML списков и уведомлений [#245] (https://github.com/ciddi89/ioBroker.device-watcher/issues/245)\nДругое: очистить код",
|
|
75
|
-
"pt": "Corrigido: Valor da Batterie para dispositivos shelly plus Gen2 [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nAdicionado: Opção para exibir o último valor de força de sinal quando o dispositivo está offline [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nAdicionado: Tradução para listas JSON, listas e notificações HTML [#245](https://github.com/ciddi89/ioBroker.device-watcher/issues/245)\nOutros: limpar o código",
|
|
76
|
-
"nl": "Vast: Batterijwaarde voor Shelly plus Gen2-apparaten [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nToegevoegd: optie om de laatste signaalsterktewaarde weer te geven wanneer het apparaat offline is [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nToegevoegd: Vertaling voor JSON lijsten, HTML lijsten en meldingen [#245](https://github.com/ciddi89/ioBroker.device-watcher/issues/245)\nOverig: code opruimen",
|
|
77
|
-
"fr": "Correction : Valeur de la batterie pour les périphériques shelly plus Gen2 [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nAjout : Option pour afficher la dernière valeur de résistance du signal lorsque le périphérique est hors ligne [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nAjouté : Traduction pour les listes JSON, les listes HTML et les notifications [#245](https://github.com/ciddi89/ioBroker.device-watcher/issues/245)\nAutres: code de nettoyage",
|
|
78
|
-
"it": "Fisso: Valore di Batterie per lo shelly più dispositivi Gen2 [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nAggiunto: Opzione per visualizzare l'ultimo valore di resistenza del segnale quando il dispositivo è offline [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nAggiunto: Traduzione per elenchi JSON, elenchi HTML e notifiche [#245](https://github.com/ciddi89/ioBroker.device-watcher/issues/245)\nAltro: codice di pulizia",
|
|
79
|
-
"es": "Fijación: valor de Batterie para dispositivos shelly más Gen2 [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nAñadido: Opción para mostrar el último valor de fuerza de señal cuando el dispositivo está fuera de línea [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nAñadido: Traducción para listas JSON, listas HTML y notificaciones [#245](https://github.com/ciddi89/ioBroker.device-watcher/issues/245)\nOtros: limpiar código",
|
|
80
|
-
"pl": "Poprawiono: wartość Batterie dla urządzeń shelly plus Gen2 [# 282] (https: / / github.com / ciddi89 / joBroker.device- watcher / issues / 282)\nDodano: Opcja wyświetlenia ostatniej wartości mocy sygnału, gdy urządzenie jest wyłączone [# 282] (https: / / github.com / ciddi89 / iBroker.device- watcher / issues / 282)\nDodano: Tłumaczenie list JSON, list HTML i powiadomień [# 245] (https: / / github.com / ciddi89 / iBroker.device- watcher / issues / 245)\nPozostałe: kod porządkowy",
|
|
81
|
-
"uk": "Виправлено: значення Batterie для оболонок плюс Gen2 пристрої [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nДодано: Опція відображення останнього значення міцності сигналу при вимкненні пристрою [#282](https://github.com/ciddi89/ioBroker.device-watcher/issues/282)\nДодано: Переклад для списку JSON, HTML списку та повідомлення [#245](https://github.com/ciddi89/ioBroker.device-watcher/issues/245)\nІнше: очищення коду",
|
|
82
|
-
"zh-cn": "固定: Shelly + Gen2 设备的电池值 [# 282] (https://github.com/ciddi89/ioBroker.device-watcher/isses/282)\n添加: 设备下线时显示最后一个信号强度值的选项 [# 282] (https://github.com/ciddi89/ioBroker.device-watcher/isses/282)\n添加:JSON列表、HTML列表和通知的翻译[#245](https://github.com/ciddi89/ioBroker.device-watcher/issues/245)\n其他:清理代码"
|
|
83
|
-
},
|
|
84
|
-
"2.9.14": {
|
|
85
|
-
"en": "Fixed: This schould fixed the bugs with high cpu and ram load, finally. Sorry about the last two buggy versions.",
|
|
86
|
-
"de": "Behoben: Damit sollten die Fehler mit hoher CPU- und Ram-Last endlich behoben sein. Entschuldigung für die letzten beiden fehlerhaften Versionen.",
|
|
87
|
-
"ru": "Исправлено: Этот щит исправил ошибки с высокой загрузкой cpu и ram, наконец. Извините за последние две версии buggy.",
|
|
88
|
-
"pt": "Corrigido: Este schould corrigiu os insetos com alta carga cpu e ram, finalmente. Lamento as duas últimas versões.",
|
|
89
|
-
"nl": "Gerepareerd: Deze schould heeft de insecten gemaakt met hoge cpu en ramlading, eindelijk. Sorry voor de laatste twee rotversieën.",
|
|
90
|
-
"fr": "Correction : Ce schould a réparé les bogues avec une charge de cpu et de bélier élevée, enfin. Désolé pour les deux dernières versions de buggy.",
|
|
91
|
-
"it": "Risolto: Questa schould ha fissato i bug con un alto carico di cpu e raggi, finalmente. Mi dispiace per le ultime due versioni buggy.",
|
|
92
|
-
"es": "Arreglado: Esto podría arreglar los bichos con alta carga de cpu y carnero, finalmente. Siento lo de las últimas dos versiones.",
|
|
93
|
-
"pl": "Fixed: Ten schemat mógł naprawić błędy o wysokim cpu i załadowaniu ramy, w końcu. O ostatnich dwóch wersjach.",
|
|
94
|
-
"uk": "Виправлено: Цей schould зафіксував помилки з високою cpu і ram навантаження, нарешті. Про нас.",
|
|
95
|
-
"zh-cn": "固定: 最终,这就将固定在高棉和泥石头。 关于最后两个走私版本。."
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"titleLang": {
|
|
@@ -135,14 +135,17 @@
|
|
|
135
135
|
"link-quality",
|
|
136
136
|
"lists"
|
|
137
137
|
],
|
|
138
|
-
"
|
|
138
|
+
"licenseInformation": {
|
|
139
|
+
"license": "MIT",
|
|
140
|
+
"type": "free"
|
|
141
|
+
},
|
|
139
142
|
"platform": "Javascript/Node.js",
|
|
140
|
-
"main": "main.js",
|
|
141
143
|
"icon": "device-watcher.png",
|
|
142
144
|
"enabled": true,
|
|
143
|
-
"extIcon": "https://raw.githubusercontent.com/
|
|
144
|
-
"readme": "https://github.com/
|
|
145
|
+
"extIcon": "https://raw.githubusercontent.com/iobroker-community-adapters/ioBroker.device-watcher/main/admin/device-watcher.png",
|
|
146
|
+
"readme": "https://github.com/iobroker-community-adapters/ioBroker.device-watcher/blob/main/README.md",
|
|
145
147
|
"loglevel": "info",
|
|
148
|
+
"tier": 2,
|
|
146
149
|
"mode": "daemon",
|
|
147
150
|
"type": "misc-data",
|
|
148
151
|
"compact": true,
|
|
@@ -167,7 +170,7 @@
|
|
|
167
170
|
},
|
|
168
171
|
"dependencies": [
|
|
169
172
|
{
|
|
170
|
-
"js-controller": ">=
|
|
173
|
+
"js-controller": ">=5.0.0"
|
|
171
174
|
}
|
|
172
175
|
],
|
|
173
176
|
"globalDependencies": [
|
|
@@ -299,6 +302,8 @@
|
|
|
299
302
|
"pingMaxMinutes": 0,
|
|
300
303
|
"proxmoxDevices": false,
|
|
301
304
|
"proxmoxMaxMinutes": 0,
|
|
305
|
+
"ringDevices": false,
|
|
306
|
+
"ringMaxMinutes": 300,
|
|
302
307
|
"roombaDevices": false,
|
|
303
308
|
"roombaMaxMinutes": 0,
|
|
304
309
|
"shellyDevices": false,
|
package/lib/arrApart.js
CHANGED
|
@@ -430,6 +430,19 @@ const arrApart = {
|
|
|
430
430
|
reach: '.status',
|
|
431
431
|
isLowBat: 'none',
|
|
432
432
|
},
|
|
433
|
+
ring: {
|
|
434
|
+
Selektor: 'ring.*.latest_signal_strength',
|
|
435
|
+
timeSelector: '.latest_signal_strength',
|
|
436
|
+
adapterID: 'ring',
|
|
437
|
+
adapter: 'Ring',
|
|
438
|
+
rssiState: '.latest_signal_strength',
|
|
439
|
+
battery: '.battery_percentage',
|
|
440
|
+
charger: '.external_connection',
|
|
441
|
+
reach: 'none',
|
|
442
|
+
isLowBat: 'none',
|
|
443
|
+
id: 'none',
|
|
444
|
+
upgrade: '.firmware',
|
|
445
|
+
},
|
|
433
446
|
roomba: {
|
|
434
447
|
Selektor: 'roomba.*.signal',
|
|
435
448
|
timeSelector: '.signal',
|
package/main.js
CHANGED
|
@@ -7,7 +7,7 @@ const arrApart = require('./lib/arrApart.js'); // list of supported adapters
|
|
|
7
7
|
const translations = require('./lib/translations.js');
|
|
8
8
|
const cronParser = require('cron-parser');
|
|
9
9
|
|
|
10
|
-
// indicator if the adapter is running
|
|
10
|
+
// indicator if the adapter is running (for intervall/shedule)
|
|
11
11
|
let isUnloaded = false;
|
|
12
12
|
|
|
13
13
|
class DeviceWatcher extends utils.Adapter {
|
|
@@ -151,6 +151,7 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
151
151
|
nut: this.config.nutDevices,
|
|
152
152
|
ping: this.config.pingDevices,
|
|
153
153
|
proxmox: this.config.proxmoxDevices,
|
|
154
|
+
ring: this.config.ringDevices,
|
|
154
155
|
roomba: this.config.roombaDevices,
|
|
155
156
|
shelly: this.config.shellyDevices,
|
|
156
157
|
smartgarden: this.config.smartgardenDevices,
|
|
@@ -212,6 +213,7 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
212
213
|
nut: this.config.nutMaxMinutes,
|
|
213
214
|
ping: this.config.pingMaxMinutes,
|
|
214
215
|
proxmox: this.config.proxmoxMaxMinutes,
|
|
216
|
+
ring: this.config.ringMaxMinutes,
|
|
215
217
|
roomba: this.config.roombaMaxMinutes,
|
|
216
218
|
shelly: this.config.shellyMaxMinutes,
|
|
217
219
|
smartgarden: this.config.smartgardenMaxMinutes,
|
|
@@ -997,6 +999,7 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
997
999
|
case 'loqedSmartLock':
|
|
998
1000
|
case 'viessmann':
|
|
999
1001
|
case 'homekitController':
|
|
1002
|
+
case 'ring':
|
|
1000
1003
|
if (shortDeviceObject && typeof shortDeviceObject === 'object' && shortDeviceObject.common) {
|
|
1001
1004
|
deviceName = shortDeviceObject.common.name;
|
|
1002
1005
|
}
|
|
@@ -1138,41 +1141,44 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
1138
1141
|
let batteryHealthRaw;
|
|
1139
1142
|
let batteryHealthUnitRaw;
|
|
1140
1143
|
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
if (
|
|
1144
|
-
|
|
1145
|
-
isBatteryDevice = true;
|
|
1146
|
-
} else if (deviceLowBatState !== undefined && deviceLowBatState !== 1) {
|
|
1147
|
-
batteryHealth = 'ok';
|
|
1148
|
-
isBatteryDevice = true;
|
|
1149
|
-
} else if (deviceLowBatState !== undefined) {
|
|
1150
|
-
batteryHealth = 'low';
|
|
1151
|
-
isBatteryDevice = true;
|
|
1152
|
-
}
|
|
1153
|
-
} else if (deviceBatteryState !== 0 && deviceBatteryState < 6) {
|
|
1154
|
-
batteryHealth = `${deviceBatteryState}V`;
|
|
1155
|
-
batteryHealthRaw = deviceBatteryState;
|
|
1156
|
-
batteryHealthUnitRaw = 'V';
|
|
1157
|
-
isBatteryDevice = true;
|
|
1158
|
-
}
|
|
1159
|
-
} else {
|
|
1160
|
-
if (deviceBatteryState === undefined) {
|
|
1161
|
-
if (deviceLowBatState !== undefined) {
|
|
1162
|
-
if (deviceLowBatState !== true && deviceLowBatState !== 'NORMAL' && deviceLowBatState !== 1) {
|
|
1144
|
+
switch (adapterID) {
|
|
1145
|
+
case 'hmrpc':
|
|
1146
|
+
if (deviceBatteryState === undefined) {
|
|
1147
|
+
if (faultReportingState !== undefined && faultReportingState !== 6) {
|
|
1163
1148
|
batteryHealth = 'ok';
|
|
1164
1149
|
isBatteryDevice = true;
|
|
1165
|
-
} else if (deviceLowBatState !==
|
|
1150
|
+
} else if (deviceLowBatState !== undefined && deviceLowBatState !== 1) {
|
|
1151
|
+
batteryHealth = 'ok';
|
|
1152
|
+
isBatteryDevice = true;
|
|
1153
|
+
} else if (deviceLowBatState !== undefined) {
|
|
1166
1154
|
batteryHealth = 'low';
|
|
1167
1155
|
isBatteryDevice = true;
|
|
1168
1156
|
}
|
|
1157
|
+
} else if (deviceBatteryState !== 0 && deviceBatteryState < 6) {
|
|
1158
|
+
batteryHealth = `${deviceBatteryState}V`;
|
|
1159
|
+
batteryHealthRaw = deviceBatteryState;
|
|
1160
|
+
batteryHealthUnitRaw = 'V';
|
|
1161
|
+
isBatteryDevice = true;
|
|
1169
1162
|
}
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1163
|
+
break;
|
|
1164
|
+
default:
|
|
1165
|
+
if (deviceBatteryState === undefined) {
|
|
1166
|
+
if (deviceLowBatState !== undefined) {
|
|
1167
|
+
if (deviceLowBatState !== true && deviceLowBatState !== 'NORMAL' && deviceLowBatState !== 1) {
|
|
1168
|
+
batteryHealth = 'ok';
|
|
1169
|
+
isBatteryDevice = true;
|
|
1170
|
+
} else if (deviceLowBatState !== true) {
|
|
1171
|
+
batteryHealth = 'low';
|
|
1172
|
+
isBatteryDevice = true;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
} else {
|
|
1176
|
+
batteryHealth = `${deviceBatteryState}%`;
|
|
1177
|
+
batteryHealthRaw = deviceBatteryState;
|
|
1178
|
+
batteryHealthUnitRaw = '%';
|
|
1179
|
+
isBatteryDevice = true;
|
|
1180
|
+
}
|
|
1181
|
+
break;
|
|
1176
1182
|
}
|
|
1177
1183
|
|
|
1178
1184
|
return [batteryHealth, isBatteryDevice, batteryHealthRaw, batteryHealthUnitRaw];
|
|
@@ -1459,6 +1465,13 @@ class DeviceWatcher extends utils.Adapter {
|
|
|
1459
1465
|
isUpgradable = false;
|
|
1460
1466
|
}
|
|
1461
1467
|
break;
|
|
1468
|
+
case 'ring':
|
|
1469
|
+
if (deviceUpdateSelector !== 'Up to Date') {
|
|
1470
|
+
isUpgradable = true;
|
|
1471
|
+
} else {
|
|
1472
|
+
isUpgradable = false;
|
|
1473
|
+
}
|
|
1474
|
+
break;
|
|
1462
1475
|
default:
|
|
1463
1476
|
if (deviceUpdateSelector !== null && typeof deviceUpdateSelector === 'boolean') {
|
|
1464
1477
|
if (deviceUpdateSelector) {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.device-watcher",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "Watchdog for devices",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Christian Behrends",
|
|
7
7
|
"email": "mail@christian-behrends.de"
|
|
8
8
|
},
|
|
9
|
-
"homepage": "https://github.com/
|
|
9
|
+
"homepage": "https://github.com/iobroker-community-adapters/ioBroker.device-watcher",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"keywords": [
|
|
12
12
|
"device",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
],
|
|
20
20
|
"repository": {
|
|
21
21
|
"type": "git",
|
|
22
|
-
"url": "https://github.com/
|
|
22
|
+
"url": "https://github.com/iobroker-community-adapters/ioBroker.device-watcher"
|
|
23
23
|
},
|
|
24
24
|
"engines": {
|
|
25
|
-
"node": ">=
|
|
25
|
+
"node": ">=18"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@iobroker/adapter-core": "^3.0.
|
|
28
|
+
"@iobroker/adapter-core": "^3.0.6"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@alcalzone/release-script": "^3.7.0",
|
|
@@ -33,30 +33,30 @@
|
|
|
33
33
|
"@alcalzone/release-script-plugin-license": "^3.7.0",
|
|
34
34
|
"@alcalzone/release-script-plugin-manual-review": "^3.7.0",
|
|
35
35
|
"@iobroker/adapter-dev": "^1.3.0",
|
|
36
|
-
"@iobroker/testing": "^4.1.
|
|
36
|
+
"@iobroker/testing": "^4.1.1",
|
|
37
37
|
"@types/chai": "^4.3.11",
|
|
38
38
|
"@types/chai-as-promised": "^7.1.8",
|
|
39
39
|
"@types/mocha": "^10.0.6",
|
|
40
|
-
"@types/node": "^20.
|
|
41
|
-
"@types/node-schedule": "^2.1.
|
|
40
|
+
"@types/node": "^20.12.4",
|
|
41
|
+
"@types/node-schedule": "^2.1.7",
|
|
42
42
|
"@types/proxyquire": "^1.3.31",
|
|
43
43
|
"@types/sinon": "^17.0.3",
|
|
44
44
|
"@types/sinon-chai": "^3.2.12",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
46
|
-
"@typescript-eslint/parser": "^
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^7.0.0",
|
|
46
|
+
"@typescript-eslint/parser": "^7.4.0",
|
|
47
47
|
"chai": "^4.4.1",
|
|
48
48
|
"chai-as-promised": "^7.1.1",
|
|
49
49
|
"cron-parser": "^4.9.0",
|
|
50
|
-
"eslint": "^8.
|
|
50
|
+
"eslint": "^8.57.0",
|
|
51
51
|
"eslint-config-prettier": "^9.1.0",
|
|
52
52
|
"eslint-plugin-prettier": "^5.1.3",
|
|
53
|
-
"mocha": "^10.
|
|
53
|
+
"mocha": "^10.4.0",
|
|
54
54
|
"node-schedule": "^2.1.1",
|
|
55
|
-
"prettier": "^3.2.
|
|
55
|
+
"prettier": "^3.2.5",
|
|
56
56
|
"proxyquire": "^2.1.3",
|
|
57
57
|
"sinon": "^17.0.1",
|
|
58
58
|
"sinon-chai": "^3.7.0",
|
|
59
|
-
"typescript": "~5.
|
|
59
|
+
"typescript": "~5.4.4"
|
|
60
60
|
},
|
|
61
61
|
"main": "main.js",
|
|
62
62
|
"files": [
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"release": "release-script"
|
|
79
79
|
},
|
|
80
80
|
"bugs": {
|
|
81
|
-
"url": "https://github.com/
|
|
81
|
+
"url": "https://github.com/iobroker-community-adapters/ioBroker.device-watcher/issues"
|
|
82
82
|
},
|
|
83
83
|
"readmeFilename": "README.md"
|
|
84
84
|
}
|