iobroker.ring 6.4.0 → 7.0.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.
Files changed (50) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +29 -418
  3. package/admin/assets/index-QX4NxbDg.js +693 -0
  4. package/admin/i18n/de.json +3 -1
  5. package/admin/i18n/en.json +3 -1
  6. package/admin/i18n/es.json +3 -2
  7. package/admin/i18n/fr.json +3 -1
  8. package/admin/i18n/it.json +3 -1
  9. package/admin/i18n/nl.json +5 -3
  10. package/admin/i18n/pl.json +3 -1
  11. package/admin/i18n/pt.json +3 -1
  12. package/admin/i18n/ru.json +3 -1
  13. package/admin/i18n/uk.json +3 -1
  14. package/admin/i18n/zh-cn.json +3 -1
  15. package/admin/tab_m.html +13 -34
  16. package/build/lib/constants.js +204 -204
  17. package/build/lib/constants.js.map +1 -1
  18. package/build/lib/lastAction.js +2 -0
  19. package/build/lib/lastAction.js.map +1 -1
  20. package/build/lib/ownRingCamera.js +269 -237
  21. package/build/lib/ownRingCamera.js.map +1 -1
  22. package/build/lib/ownRingDevice.js +57 -44
  23. package/build/lib/ownRingDevice.js.map +1 -1
  24. package/build/lib/ownRingIntercom.js +45 -40
  25. package/build/lib/ownRingIntercom.js.map +1 -1
  26. package/build/lib/ownRingLocation.js +27 -19
  27. package/build/lib/ownRingLocation.js.map +1 -1
  28. package/build/lib/ringApiClient.js +61 -49
  29. package/build/lib/ringApiClient.js.map +1 -1
  30. package/build/lib/services/event-blocker.js +13 -10
  31. package/build/lib/services/event-blocker.js.map +1 -1
  32. package/build/lib/services/file-service.js +29 -27
  33. package/build/lib/services/file-service.js.map +1 -1
  34. package/build/lib/services/image-service.js +8 -4
  35. package/build/lib/services/image-service.js.map +1 -1
  36. package/build/lib/services/text-service.js +169 -85
  37. package/build/lib/services/text-service.js.map +1 -1
  38. package/build/main.js +84 -100
  39. package/build/main.js.map +1 -1
  40. package/io-package.json +26 -25
  41. package/package.json +42 -89
  42. package/admin/admin.d.ts +0 -112
  43. package/admin/convert.js +0 -447
  44. package/admin/index_m.html +0 -318
  45. package/admin/style.css +0 -33
  46. package/admin/tab_m.js +0 -154
  47. package/admin/tsconfig.json +0 -11
  48. package/admin/words.js +0 -470
  49. package/build/lib/tools.js +0 -98
  50. package/build/lib/tools.js.map +0 -1
package/LICENSE CHANGED
@@ -1,5 +1,6 @@
1
1
  MIT License
2
2
 
3
+ Copyright (c) 2026 iobroker-community-adapters <iobroker-community-adapters@gmx.de>
3
4
  Copyright (c) 2018-2025 Thorsten Stueben <thorsten@stueben.de>
4
5
 
5
6
  Permission is hereby granted, free of charge, to any person obtaining a copy
package/README.md CHANGED
@@ -25,7 +25,7 @@ npx -p ring-client-api ring-auth-cli
25
25
 
26
26
  or
27
27
 
28
- ```
28
+ ```bash
29
29
  # Unix
30
30
  cd /opt/iobroker/node_modules/iobroker.ring/
31
31
  npm i ring-client-api
@@ -63,7 +63,7 @@ the fault of this adapter.
63
63
 
64
64
  1. Some datapoints got renamed to be more consistent (e.g. `livestream_request` got reduced to `request` as it already
65
65
  is in channel `livestream`).
66
- 2. You can now configure wether you want to react on events (with recording, snapshot, ...) or not.
66
+ 2. You can now configure whether you want to react on events (with recording, snapshot, ...) or not.
67
67
  3. Binary states got removed.
68
68
 
69
69
  ### V3 Rewrite Breaking Changes
@@ -97,6 +97,30 @@ doorbell recorded video.
97
97
  Placeholder for the next version (at the beginning of the line):
98
98
  ### **WORK IN PROGRESS**
99
99
  -->
100
+ ### 7.0.0 (2026-09-04)
101
+ - (bluefox) The admin tab was rewritten in React (`src-tab/`), replacing the materialize page - doorbell cameras are listed now, they were silently skipped before
102
+ - (bluefox) The tab no longer assumes the web adapter runs on port 8082; it derives host, port and protocol from the URL states
103
+ - (bluefox) The adapter was refactored: TypeScript 6, @iobroker/eslint-config, gulp removed
104
+ - (bluefox) **BREAKING:** `build/` is no longer committed and `common.nogit` is set - the adapter can only be installed from npm, no longer directly from GitHub
105
+ - (bluefox) `ring-client-api` is ESM only and is loaded dynamically now, which fixes `ERR_REQUIRE_ESM` on Node.js 22.0 - 22.11
106
+ - (bluefox) All backend timers are managed by js-controller now and are stopped when the instance unloads
107
+ - (bluefox) Scheduled jobs (daily sun calculation, auto save) are cancelled on unload and no longer collide between instances
108
+ - (bluefox) Fixed: the health state was never refreshed after switching a camera light
109
+ - (bluefox) Fixed: a failing livestream target preparation still deleted the target file and never reported the error to the caller
110
+ - (bluefox) Fixed: several `async` methods returned before the work they started was finished
111
+ - (bluefox) Removed the unused config values `email`, `password`, `pollsec`, `sentry_enable`, `timeout` and `twofaceauth`; `renew_registration` has a default now
112
+ - (bluefox) Removed the leftover `admin/index_m.html` - the configuration dialog has been JsonConfig for a while
113
+ - (Speedbreaker12) #993 Add doorbell_sunray (Battery Video Doorbell 2K) as doorbell
114
+ - (Speedbreaker12) #993 #854 Add stickup_cam_mini_ptz_v1 (Pan-Tilt Indoor Cam) as stickup cam
115
+ - (Speedbreaker12) #993 Unsupported device logging no longer dumps the whole device object (could expose the Ring refresh token in the log)
116
+ - (GermanBluefox) Devices previously created below `unknown_<id>` are recreated below `doorbell_<id>` / `stickup_<id>`; the old objects stay behind and have to be deleted manually
117
+ - (copilot) Adapter requires node.js >= 22 now
118
+ - (copilot) Adapter requires admin >= 7.7.22 now
119
+ - (copilot) Adapter requires js-controller >= 6.0.11 now
120
+ - (copilot) Adapter requires admin >= 7.6.17 now
121
+
122
+ * (copilot) **CI/CD**: Updated ioBroker Copilot Instructions template from v0.4.0 to v0.4.2
123
+
100
124
  ### 6.4.0 (2025-06-27)
101
125
 
102
126
  * (theimo1221) #820 Support Node-JS 22
@@ -118,427 +142,14 @@ doorbell recorded video.
118
142
  * (theimo1221) Update iobroker test package
119
143
  * (theimo1221) Update some test packages regarding mocha
120
144
 
121
- ### 6.2.2 (2024-10-31)
122
-
123
- * (theimo1221) Update pipelines to stop using node 18.x
124
- * (theimo1221) #746 Fix license information in io-package.json
125
- * (theimo1221) #746 Add tier in io-package.json
126
- * (theimo1221) #746 Remove deprecated property 'materializeTab' in io-package.json
127
- * (theimo1221) #746 Remove deprecated property 'main' in io-package.json
128
- * (theimo1221) #746 Bump minimum js-controller in io-package.json
129
- * (theimo1221) #746 Remove specific version reference to camera utils
130
- * (theimo1221) #746 Add @alcalzone/release-script-plugin-manual-review
131
-
132
- ### 6.2.1 (2024-10-09)
133
-
134
- * (Speedbreaker12) js-controller7 compatibility #707
135
-
136
- ### 6.2.0 (2024-10-08)
137
-
138
- * (Speedbreaker12) Added siren trigger functionality to cameras
139
- * (Speedbreaker12) Add battery status support for Ring Intercom
140
- * (theimo1221) Some minor package updates
141
-
142
- ### 6.1.0 (2024-09-20)
143
-
144
- * (theimo1221) Some package updates
145
- * (theimo1221) #749 Bump minimal Node Version to 20
146
-
147
- ### 6.0.0 (2024-08-17)
148
-
149
- * (crocri) Multiple fixes
150
- * (theimo1221) Update Ring-Api to V13
151
-
152
- ### 5.1.0 (2024-06-22)
153
-
154
- * (SFGJK) #710 Enhancement of filename placeholder feature
155
- * (theimo1221) Updated Packages
156
-
157
- ### 5.0.10 (2023-11-06)
158
-
159
- * (theimo1221) #614 Enforce @homebridge/camera-utils version 2.2.4
160
-
161
- ### 5.0.8 (2023-11-05)
162
-
163
- * (crocri) Code cleanup
164
- * (theimo1221) #614 Add @homebridge/camera-utils as direct depency to mitigate import issue
165
-
166
- ### 5.0.7 (2023-11-02)
167
-
168
- * (theimo1221) Updated Packages
169
- * (theimo1221) Include missing build artifacts
170
-
171
- ### 5.0.6 (2023-10-29)
172
-
173
- * (theimo1221) Updated Packages
174
- * (crocri) Make event debouncing configurable
175
-
176
- ### 5.0.5 (2023-10-28)
177
-
178
- * (theimo1221) #602 Debounce Motion Events by 25 seconds. This prevents multiple events within a short time.
179
-
180
- ### 5.0.4 (2023-10-27)
181
-
182
- * (theimo1221) #603 Add rxjs to normal dependencies instead of dev-dependencies
183
-
184
- ### 5.0.3 (2023-10-26)
185
-
186
- * (theimo1221) #603 Change rxjs import to resolve awkward js build result.
187
-
188
- ### 5.0.2 (2023-10-25)
189
-
190
- * (theimo1221) Remove mixup of callback and async within same function
191
- * (theimo1221) #603 Harden usage of "firstValueFrom"
192
-
193
- ### 5.0.1 (2023-10-20)
194
-
195
- * (theimo1221) Updated Packages
196
- * (theimo1221) Remove legacy states
197
- * (theimo1221) Add stickup_cam_mini_v2
198
-
199
- ### 5.0.0 (2023-10-10)
200
-
201
- * (bluefox) migrated the configuration to JSON
202
- * (crocri) many changes for livestream and high-definition screenshots
203
- * (theimo1221) Refactoring and cleanup
204
- * (crocri) Ding event is now working again for Ring-Intercom
205
- * (crocri) auto livestream creation takes now value from config, before fix
206
- * (crocri) snapshot now async, because snapshot and livestream in parallel do not work
207
- * (crocri) livestream duration now settable via tree entry will be auto reset via livestream request.
208
- * (crocri) two new config entries auto_livestream and auto_snapshot to disable auto creation of livestream and snapshot.
209
- * (crocri) some minor corrections to code
210
- * (crocri) Removed binary States
211
- * (crocri) Improvements for vis compatibility done
212
- * (theimo1221) Refactoring and cleanup
213
-
214
- ### 4.0.0 (2023-08-22)
215
-
216
- * (theimo1221) !!Breaking Change!! From now on Node 18 or 20 is required, Node 16 is not supported anymore
217
- * (theimo1221) Updated Ring-Api to v12 which needs Node 18 or 20
218
- * (theimo1221) Updated Packages
219
-
220
- ### 3.4.1 (2023-08-06)
221
-
222
- * (theimo1221) Compliance to adapter-checker
223
- * (theimo1221) Updated Packages
224
- * (theimo1221) Debounce Doorbell Presses
225
- * (theimo1221) Added Support for cocoa_doorbell_v2
226
- * (theimo1221) Added Support for stickup_cam_longfin
227
- * (theimo1221) Fixed compatibility and recompile
228
-
229
- ### 3.4.0 (2023-06-09)
230
-
231
- * (theimo1221) Updated Packages (which allows node 20 now)
232
-
233
- ### 3.3.1 (2023-05-18)
234
-
235
- * (theimo1221) Updated Packages
236
-
237
- ### 3.3.0 (2023-04-02)
238
-
239
- * (theimo1221) Updated Packages
240
- * (theimo1221) Device with Type stickup_cam_longfin didn't yet support #483
241
-
242
- ### 3.2.7 (2023-03-22)
243
-
244
- * (foxriver76) prepared js-controller v5
245
-
246
- ### 3.2.6 (2023-02-18)
247
-
248
- * (theimo1221) Improve behavior on initial Location load fail
249
- * (theimo1221) Updated Packages
250
-
251
- ### 3.2.5 (2023-01-28)
252
-
253
- * (theimo1221) Updated Packages
254
-
255
- ### 3.2.4 (2022-12-15)
256
-
257
- * (theimo1221) #385 Fix for Unlock Request on intercoms
258
-
259
- ### 3.2.3 (2022-12-15)
260
-
261
- * (theimo1221) Updated Packages
262
- * (theimo1221) #385 Experimental Ring Intercom support
263
-
264
- ### 3.2.2 (2022-12-02)
265
-
266
- * (theimo1221) #373 Fix event receiving for iobroker instances without a unique hostname
267
-
268
- ### 3.2.1 (2022-12-02)
269
-
270
- * (theimo1221) Redeploy
271
-
272
- ### 3.2.0 (2022-12-02)
273
-
274
- * (theimo1221) Updated Packages
275
- * (theimo1221) #373 Increase logging and change recording order on Doorbell Event
276
-
277
- ### 3.1.9 (2022-11-20)
278
-
279
- * (theimo1221) #395 Resolve Package-lock.json issues
280
-
281
- ### 3.1.8 (2022-11-20)
282
-
283
- * (theimo1221) Updated Packages
284
- * (theimo1221) Compliance to the newest ring api version
285
-
286
- ### 3.1.7 (2022-10-28)
287
-
288
- * (theimo1221) Updated Packages
289
-
290
- ### 3.1.6 (2022-10-28)
291
-
292
- * (theimo1221) Inline subscription instead of properties for Event observer
293
-
294
- ### 3.1.5 (2022-10-16)
295
-
296
- * (theimo1221) Updated Packages
297
-
298
- ### 3.1.4 (2022-10-16)
299
-
300
- * (theimo1221) #376 Handling when reconnect fails
301
-
302
- ### 3.1.3 (2022-10-04)
303
-
304
- * (theimo1221) Updated Packages
305
-
306
- ### 3.1.2 (2022-09-22)
307
-
308
- * (theimo1221) Updated Packages
309
- * (theimo1221) Fixed an issue with floodlight control
310
-
311
- ### 3.1.1 (2022-08-11)
312
-
313
- * (theimo1221) Improved Doorbell Event Logging
314
-
315
- ### 3.1.0 (2022-08-04)
316
-
317
- * (bluefox) Allowed to be used with node.js 18
318
-
319
- ### 3.0.5 (2022-07-05)
320
-
321
- * (theimo1221) Improved Log Message on failed Snapshots during event handling
322
- * (theimo1221) Added Support for doorbell oyster
323
-
324
- ### 3.0.4 (2022-06-17)
325
-
326
- * (theimo1221) Fixed Edge Case resulting in lamps being permanently on
327
-
328
- ### 3.0.3 (2022-06-16)
329
-
330
- * (theimo1221) Implemented location mode
331
-
332
- ### 3.0.1 (2022-06-08)
333
-
334
- * (bluefox) Changed the russian translations
335
-
336
- ### 3.0.0-beta.13 (2022-05-30)
337
-
338
- * (theimo1221) Prevented missing of events, due to a socket drop within ring-api-client
339
- * (theimo1221) Improved device logging readability
340
-
341
- ### 3.0.0-beta.12 (2022-05-28)
342
-
343
- * (theimo1221) Fixed error in beta.11 in regard to new installations
344
- * (theimo1221) Harden Event Handling to prevent rare permanent busy occasions
345
- * (theimo1221) Added support for doorbell device `doorbell_graham_cracker`
346
-
347
- ### 3.0.0-beta.11 (2022-05-24)
348
-
349
- * (theimo1221) Added processing of new token provided by ring.
350
-
351
- ### 3.0.0-beta.10 (2022-05-24)
352
-
353
- * (theimo1221) Added `lpd_v4` Doorbell
354
-
355
- ### 3.0.0-beta.9 (2022-05-21)
356
-
357
- * (theimo1221) For stability reasons, perform an active refresh every 2 hours.
358
-
359
- ### 3.0.0-beta.8 (2022-05-17)
360
-
361
- * (theimo1221) Fixed writing to iobroker-data/files folder (thx to Apollon)
362
-
363
- ### 3.0.0-beta.7 (2022-05-16)
364
-
365
- * (theimo1221) Prevent Crashes on unsupported devices
366
-
367
- ### 3.0.0-beta.6 (2022-05-16)
368
-
369
- * (theimo1221) Record more events (without recording twice)
370
- * (theimo1221) Improved snapshot deleting for initial snapshot after restart
371
-
372
- ### 3.0.0-beta.5 (2022-05-14)
373
-
374
- * (theimo1221) Prevented crashes during installation by clearer enforcing of node 16
375
-
376
- ### 3.0.0-beta.4 (2022-05-14)
377
-
378
- * (theimo1221) Changes in io-package.json for release workflow
379
-
380
- ### 3.0.0-beta.3 (2022-05-14)
381
-
382
- * (theimo1221) Rewrote V3 (Breaking Changes listed below)
383
- * (theimo1221) Updated packages
384
- * (theimo1221) Fixed in GitHub release workflow
385
-
386
- ### 2.0.0-beta.3 (2022-02-08)
387
-
388
- * (theimo1221) Fixed adapter checker issues
389
-
390
- ### 2.0.0-beta.0 (2022-02-05)
391
-
392
- * (theimo1221) Updated packages
393
- * (theimo1221) Added JS-Controller 4.0 dependency
394
- * (theimo1221) On ding --> First take snapshot then livestream
395
-
396
- ### 1.2.8 (2021-10-14)
397
-
398
- * (theimo1221) Updated packages
399
-
400
- ### 1.2.6 (2021-09-05)
401
-
402
- * (theimo1221) Updated packages
403
- * (theimo1221) Stopped adapter on unhandled Error
404
- * (theimo1221) Terminated adapter on invalid ring credentials
405
-
406
- ### 1.2.4-1 (2021-08-12)
407
-
408
- * (theimo1221) Updated packages
409
-
410
- ### 1.2.4-0 (2021-08-07)
411
-
412
- * (theimo1221) Refactoring
413
- * (theimo1221) Updated packages
414
-
415
- ### 1.2.3 (2021-07-30)
416
-
417
- * (theimo1221) Updated packages
418
- * (theimo1221) Fixed compatibility issues with new ring api
419
-
420
- ### 1.2.2 (2021-05-05)
421
-
422
- * (theimo1221) Updated packages due to security patches
423
-
424
- ### 1.2.1 (2021-04-09)
425
-
426
- * (theimo1221) Bumped version
427
-
428
- ### 1.2.0 (2021-04-08)
429
-
430
- * (theimo1221) Added new device type spotlightw as doorbell
431
- * (theimo1221) Updated dependencies (ringapi, node-schedule, etc.)
432
-
433
- ### 1.1.6-3 (2021-03-29)
434
-
435
- * (theimo1221) Fixed typo preventing Livestream recordings after motion detection
436
- * (theimo1221) Reduced Levels of Log Messages, to not spam iobroker Log
437
-
438
- ### 1.1.6-2 (2021-03-29)
439
-
440
- * (theimo1221) Fixing some Issues while saving snapshots and place Snapshots within 'iobroker-data' Folder.
441
-
442
- ### 1.1.6-1 (2021-03-26)
443
-
444
- * (theimo1221) Support for Floodlight V2
445
- * (theimo1221) Control Floodlight by Switch
446
-
447
- ### 1.1.5 (04.11.2020)
448
-
449
- * (Stübi) Added floodlight
450
-
451
- ### 1.1.4 (23.05.2020)
452
-
453
- * (Stübi) Added new libraries
454
-
455
- ### 1.1.3 (06.05.2020)
456
-
457
- * (Stübi) Fixed error of missing objects
458
-
459
- ### 1.1.2 (02.05.2020)
460
-
461
- * (Stübi) Fixed health info like missing battery status (Issue #22, Issue #25)
462
- * (Stübi) Change error handling
463
- * (Stübi) Providing Stick Up Cam (BETA)
464
- * (Stübi) Using variables in the filename of the livestream or snapshot
465
-
466
- ### 1.1.1 (02.05.2020)
467
-
468
- * (Stübi) Bugfixing
469
- * (Stübi) User can enable/disable external sentry logging
470
-
471
- ### 1.1.0 (01.05.2020)
472
-
473
- * (Stübi) Node 10 is now required, Node 12 recommended. If you use Node 8 or less, the adapter will stop immediately.
474
- * (Stübi) Tested with js-controller 3. I recommend using js-controller 3 or higher because of sentry logging and more
475
- features in the future
476
- * (Stübi) Snapshot link will be shown as https or http in state (Issue #18)
477
- * (Stübi) Livestream link added and a request button added to get new livestream
478
- * (Stübi) Old snapshots and livestreams can be deleted on the filesystem
479
- * (Stübi) Sentry logging added
480
- * (Stübi) Small improvements and bugfixing
481
- * (Stübi) Added a Two-Factor Auth (2fa) description (Issue #14, Issue #13, Issue #19)
482
-
483
- ### 1.0.7 (24.12.2019)
484
-
485
- * (Stübi) Bugfixing
486
-
487
- ### 1.0.6 (20.12.2019)
488
-
489
- * (Stübi) Bugfixing: Login with username and password changed
490
- * (Stübi) New feature (BETA): Now you can make snapshots in jpg and a livestream in mp4 format. Unfortunately, the
491
- snapshot / livestream does not always work!
492
-
493
- ### 1.0.5 (18.04.2019)
494
-
495
- * (Stübi) Bugfixing
496
- * (Stübi) Using new API. With this API livestreaming and snapshots are possible (work still in progress and not
497
- supported in this version)
498
- * (Stübi) Fixed an error with js-controller 2.0. You need at least this version with js-controller 2.0
499
- * (Stübi) Added two factory authentications
500
-
501
- ### 1.0.4 (17.04.2019)
502
-
503
- * (Stübi) Bugfixing for Ring Pro
504
-
505
- ### 1.0.3 (09.03.2019)
506
-
507
- * (Stübi) Major change! I had to change the used ring.com API to another API. The old one did not work anymore. For this
508
- reason, a lot has to be redesigned.
509
-
510
- ### 1.0.2 (01.02.2019)
511
-
512
- * (Stübi) More debug information
513
-
514
- ### 1.0.1 (05.01.2019)
515
-
516
- * (Stübi) Support js-controller compact mode
517
-
518
- ### 1.0.0 (04.01.2018)
519
-
520
- * (Stübi) Added a camera device. For this reason, the device name changed from doorbot to doorbell.
521
-
522
- ### 0.1.3 (20.12.2018)
523
-
524
- * (Stübi) Update error handling
525
-
526
- ### 0.1.2 (17.12.2018)
527
-
528
- * (Stübi) Update error handling
529
-
530
- ### 0.1.1 (15.12.2018)
531
-
532
- * (Stübi) Improvements
533
-
534
- ### 0.1.0 (14.12.2018)
535
-
536
- * (Stübi) First Version
145
+ [Older changelogs can be found there](CHANGELOG_OLD.md)
537
146
 
538
147
  ## License
539
148
 
540
149
  MIT License
541
150
 
151
+
152
+ Copyright (c) 2026 iobroker-community-adapters <iobroker-community-adapters@gmx.de>
542
153
  Copyright (c) 2018-2025 Thorsten <thorsten@stueben.de> / <https://github.com/schmupu>
543
154
 
544
155
  Permission is hereby granted, free of charge, to any person obtaining a copy