iobroker.ring 6.3.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 +2 -1
  2. package/README.md +34 -419
  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 +286 -244
  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 -90
  39. package/build/main.js.map +1 -1
  40. package/io-package.json +39 -38
  41. package/package.json +43 -90
  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,6 +1,7 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2018-2024 Thorsten Stueben <thorsten@stueben.de>
3
+ Copyright (c) 2026 iobroker-community-adapters <iobroker-community-adapters@gmx.de>
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
6
7
  of this software and associated documentation files (the "Software"), to deal
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,34 @@ 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
+
124
+ ### 6.4.0 (2025-06-27)
125
+
126
+ * (theimo1221) #820 Support Node-JS 22
127
+
100
128
  ### 6.3.0 (2024-11-08)
101
129
 
102
130
  * (theimo1221) #768 Add df_doorbell_clownfish
@@ -114,428 +142,15 @@ doorbell recorded video.
114
142
  * (theimo1221) Update iobroker test package
115
143
  * (theimo1221) Update some test packages regarding mocha
116
144
 
117
- ### 6.2.2 (2024-10-31)
118
-
119
- * (theimo1221) Update pipelines to stop using node 18.x
120
- * (theimo1221) #746 Fix license information in io-package.json
121
- * (theimo1221) #746 Add tier in io-package.json
122
- * (theimo1221) #746 Remove deprecated property 'materializeTab' in io-package.json
123
- * (theimo1221) #746 Remove deprecated property 'main' in io-package.json
124
- * (theimo1221) #746 Bump minimum js-controller in io-package.json
125
- * (theimo1221) #746 Remove specific version reference to camera utils
126
- * (theimo1221) #746 Add @alcalzone/release-script-plugin-manual-review
127
-
128
- ### 6.2.1 (2024-10-09)
129
-
130
- * (Speedbreaker12) js-controller7 compatibility #707
131
-
132
- ### 6.2.0 (2024-10-08)
133
-
134
- * (Speedbreaker12) Added siren trigger functionality to cameras
135
- * (Speedbreaker12) Add battery status support for Ring Intercom
136
- * (theimo1221) Some minor package updates
137
-
138
- ### 6.1.0 (2024-09-20)
139
-
140
- * (theimo1221) Some package updates
141
- * (theimo1221) #749 Bump minimal Node Version to 20
142
-
143
- ### 6.0.0 (2024-08-17)
144
-
145
- * (crocri) Multiple fixes
146
- * (theimo1221) Update Ring-Api to V13
147
-
148
- ### 5.1.0 (2024-06-22)
149
-
150
- * (SFGJK) #710 Enhancement of filename placeholder feature
151
- * (theimo1221) Updated Packages
152
-
153
- ### 5.0.10 (2023-11-06)
154
-
155
- * (theimo1221) #614 Enforce @homebridge/camera-utils version 2.2.4
156
-
157
- ### 5.0.8 (2023-11-05)
158
-
159
- * (crocri) Code cleanup
160
- * (theimo1221) #614 Add @homebridge/camera-utils as direct depency to mitigate import issue
161
-
162
- ### 5.0.7 (2023-11-02)
163
-
164
- * (theimo1221) Updated Packages
165
- * (theimo1221) Include missing build artifacts
166
-
167
- ### 5.0.6 (2023-10-29)
168
-
169
- * (theimo1221) Updated Packages
170
- * (crocri) Make event debouncing configurable
171
-
172
- ### 5.0.5 (2023-10-28)
173
-
174
- * (theimo1221) #602 Debounce Motion Events by 25 seconds. This prevents multiple events within a short time.
175
-
176
- ### 5.0.4 (2023-10-27)
177
-
178
- * (theimo1221) #603 Add rxjs to normal dependencies instead of dev-dependencies
179
-
180
- ### 5.0.3 (2023-10-26)
181
-
182
- * (theimo1221) #603 Change rxjs import to resolve awkward js build result.
183
-
184
- ### 5.0.2 (2023-10-25)
185
-
186
- * (theimo1221) Remove mixup of callback and async within same function
187
- * (theimo1221) #603 Harden usage of "firstValueFrom"
188
-
189
- ### 5.0.1 (2023-10-20)
190
-
191
- * (theimo1221) Updated Packages
192
- * (theimo1221) Remove legacy states
193
- * (theimo1221) Add stickup_cam_mini_v2
194
-
195
- ### 5.0.0 (2023-10-10)
196
-
197
- * (bluefox) migrated the configuration to JSON
198
- * (crocri) many changes for livestream and high-definition screenshots
199
- * (theimo1221) Refactoring and cleanup
200
- * (crocri) Ding event is now working again for Ring-Intercom
201
- * (crocri) auto livestream creation takes now value from config, before fix
202
- * (crocri) snapshot now async, because snapshot and livestream in parallel do not work
203
- * (crocri) livestream duration now settable via tree entry will be auto reset via livestream request.
204
- * (crocri) two new config entries auto_livestream and auto_snapshot to disable auto creation of livestream and snapshot.
205
- * (crocri) some minor corrections to code
206
- * (crocri) Removed binary States
207
- * (crocri) Improvements for vis compatibility done
208
- * (theimo1221) Refactoring and cleanup
209
-
210
- ### 4.0.0 (2023-08-22)
211
-
212
- * (theimo1221) !!Breaking Change!! From now on Node 18 or 20 is required, Node 16 is not supported anymore
213
- * (theimo1221) Updated Ring-Api to v12 which needs Node 18 or 20
214
- * (theimo1221) Updated Packages
215
-
216
- ### 3.4.1 (2023-08-06)
217
-
218
- * (theimo1221) Compliance to adapter-checker
219
- * (theimo1221) Updated Packages
220
- * (theimo1221) Debounce Doorbell Presses
221
- * (theimo1221) Added Support for cocoa_doorbell_v2
222
- * (theimo1221) Added Support for stickup_cam_longfin
223
- * (theimo1221) Fixed compatibility and recompile
224
-
225
- ### 3.4.0 (2023-06-09)
226
-
227
- * (theimo1221) Updated Packages (which allows node 20 now)
228
-
229
- ### 3.3.1 (2023-05-18)
230
-
231
- * (theimo1221) Updated Packages
232
-
233
- ### 3.3.0 (2023-04-02)
234
-
235
- * (theimo1221) Updated Packages
236
- * (theimo1221) Device with Type stickup_cam_longfin didn't yet support #483
237
-
238
- ### 3.2.7 (2023-03-22)
239
-
240
- * (foxriver76) prepared js-controller v5
241
-
242
- ### 3.2.6 (2023-02-18)
243
-
244
- * (theimo1221) Improve behavior on initial Location load fail
245
- * (theimo1221) Updated Packages
246
-
247
- ### 3.2.5 (2023-01-28)
248
-
249
- * (theimo1221) Updated Packages
250
-
251
- ### 3.2.4 (2022-12-15)
252
-
253
- * (theimo1221) #385 Fix for Unlock Request on intercoms
254
-
255
- ### 3.2.3 (2022-12-15)
256
-
257
- * (theimo1221) Updated Packages
258
- * (theimo1221) #385 Experimental Ring Intercom support
259
-
260
- ### 3.2.2 (2022-12-02)
261
-
262
- * (theimo1221) #373 Fix event receiving for iobroker instances without a unique hostname
263
-
264
- ### 3.2.1 (2022-12-02)
265
-
266
- * (theimo1221) Redeploy
267
-
268
- ### 3.2.0 (2022-12-02)
269
-
270
- * (theimo1221) Updated Packages
271
- * (theimo1221) #373 Increase logging and change recording order on Doorbell Event
272
-
273
- ### 3.1.9 (2022-11-20)
274
-
275
- * (theimo1221) #395 Resolve Package-lock.json issues
276
-
277
- ### 3.1.8 (2022-11-20)
278
-
279
- * (theimo1221) Updated Packages
280
- * (theimo1221) Compliance to the newest ring api version
281
-
282
- ### 3.1.7 (2022-10-28)
283
-
284
- * (theimo1221) Updated Packages
285
-
286
- ### 3.1.6 (2022-10-28)
287
-
288
- * (theimo1221) Inline subscription instead of properties for Event observer
289
-
290
- ### 3.1.5 (2022-10-16)
291
-
292
- * (theimo1221) Updated Packages
293
-
294
- ### 3.1.4 (2022-10-16)
295
-
296
- * (theimo1221) #376 Handling when reconnect fails
297
-
298
- ### 3.1.3 (2022-10-04)
299
-
300
- * (theimo1221) Updated Packages
301
-
302
- ### 3.1.2 (2022-09-22)
303
-
304
- * (theimo1221) Updated Packages
305
- * (theimo1221) Fixed an issue with floodlight control
306
-
307
- ### 3.1.1 (2022-08-11)
308
-
309
- * (theimo1221) Improved Doorbell Event Logging
310
-
311
- ### 3.1.0 (2022-08-04)
312
-
313
- * (bluefox) Allowed to be used with node.js 18
314
-
315
- ### 3.0.5 (2022-07-05)
316
-
317
- * (theimo1221) Improved Log Message on failed Snapshots during event handling
318
- * (theimo1221) Added Support for doorbell oyster
319
-
320
- ### 3.0.4 (2022-06-17)
321
-
322
- * (theimo1221) Fixed Edge Case resulting in lamps being permanently on
323
-
324
- ### 3.0.3 (2022-06-16)
325
-
326
- * (theimo1221) Implemented location mode
327
-
328
- ### 3.0.1 (2022-06-08)
329
-
330
- * (bluefox) Changed the russian translations
331
-
332
- ### 3.0.0-beta.13 (2022-05-30)
333
-
334
- * (theimo1221) Prevented missing of events, due to a socket drop within ring-api-client
335
- * (theimo1221) Improved device logging readability
336
-
337
- ### 3.0.0-beta.12 (2022-05-28)
338
-
339
- * (theimo1221) Fixed error in beta.11 in regard to new installations
340
- * (theimo1221) Harden Event Handling to prevent rare permanent busy occasions
341
- * (theimo1221) Added support for doorbell device `doorbell_graham_cracker`
342
-
343
- ### 3.0.0-beta.11 (2022-05-24)
344
-
345
- * (theimo1221) Added processing of new token provided by ring.
346
-
347
- ### 3.0.0-beta.10 (2022-05-24)
348
-
349
- * (theimo1221) Added `lpd_v4` Doorbell
350
-
351
- ### 3.0.0-beta.9 (2022-05-21)
352
-
353
- * (theimo1221) For stability reasons, perform an active refresh every 2 hours.
354
-
355
- ### 3.0.0-beta.8 (2022-05-17)
356
-
357
- * (theimo1221) Fixed writing to iobroker-data/files folder (thx to Apollon)
358
-
359
- ### 3.0.0-beta.7 (2022-05-16)
360
-
361
- * (theimo1221) Prevent Crashes on unsupported devices
362
-
363
- ### 3.0.0-beta.6 (2022-05-16)
364
-
365
- * (theimo1221) Record more events (without recording twice)
366
- * (theimo1221) Improved snapshot deleting for initial snapshot after restart
367
-
368
- ### 3.0.0-beta.5 (2022-05-14)
369
-
370
- * (theimo1221) Prevented crashes during installation by clearer enforcing of node 16
371
-
372
- ### 3.0.0-beta.4 (2022-05-14)
373
-
374
- * (theimo1221) Changes in io-package.json for release workflow
375
-
376
- ### 3.0.0-beta.3 (2022-05-14)
377
-
378
- * (theimo1221) Rewrote V3 (Breaking Changes listed below)
379
- * (theimo1221) Updated packages
380
- * (theimo1221) Fixed in GitHub release workflow
381
-
382
- ### 2.0.0-beta.3 (2022-02-08)
383
-
384
- * (theimo1221) Fixed adapter checker issues
385
-
386
- ### 2.0.0-beta.0 (2022-02-05)
387
-
388
- * (theimo1221) Updated packages
389
- * (theimo1221) Added JS-Controller 4.0 dependency
390
- * (theimo1221) On ding --> First take snapshot then livestream
391
-
392
- ### 1.2.8 (2021-10-14)
393
-
394
- * (theimo1221) Updated packages
395
-
396
- ### 1.2.6 (2021-09-05)
397
-
398
- * (theimo1221) Updated packages
399
- * (theimo1221) Stopped adapter on unhandled Error
400
- * (theimo1221) Terminated adapter on invalid ring credentials
401
-
402
- ### 1.2.4-1 (2021-08-12)
403
-
404
- * (theimo1221) Updated packages
405
-
406
- ### 1.2.4-0 (2021-08-07)
407
-
408
- * (theimo1221) Refactoring
409
- * (theimo1221) Updated packages
410
-
411
- ### 1.2.3 (2021-07-30)
412
-
413
- * (theimo1221) Updated packages
414
- * (theimo1221) Fixed compatibility issues with new ring api
415
-
416
- ### 1.2.2 (2021-05-05)
417
-
418
- * (theimo1221) Updated packages due to security patches
419
-
420
- ### 1.2.1 (2021-04-09)
421
-
422
- * (theimo1221) Bumped version
423
-
424
- ### 1.2.0 (2021-04-08)
425
-
426
- * (theimo1221) Added new device type spotlightw as doorbell
427
- * (theimo1221) Updated dependencies (ringapi, node-schedule, etc.)
428
-
429
- ### 1.1.6-3 (2021-03-29)
430
-
431
- * (theimo1221) Fixed typo preventing Livestream recordings after motion detection
432
- * (theimo1221) Reduced Levels of Log Messages, to not spam iobroker Log
433
-
434
- ### 1.1.6-2 (2021-03-29)
435
-
436
- * (theimo1221) Fixing some Issues while saving snapshots and place Snapshots within 'iobroker-data' Folder.
437
-
438
- ### 1.1.6-1 (2021-03-26)
439
-
440
- * (theimo1221) Support for Floodlight V2
441
- * (theimo1221) Control Floodlight by Switch
442
-
443
- ### 1.1.5 (04.11.2020)
444
-
445
- * (Stübi) Added floodlight
446
-
447
- ### 1.1.4 (23.05.2020)
448
-
449
- * (Stübi) Added new libraries
450
-
451
- ### 1.1.3 (06.05.2020)
452
-
453
- * (Stübi) Fixed error of missing objects
454
-
455
- ### 1.1.2 (02.05.2020)
456
-
457
- * (Stübi) Fixed health info like missing battery status (Issue #22, Issue #25)
458
- * (Stübi) Change error handling
459
- * (Stübi) Providing Stick Up Cam (BETA)
460
- * (Stübi) Using variables in the filename of the livestream or snapshot
461
-
462
- ### 1.1.1 (02.05.2020)
463
-
464
- * (Stübi) Bugfixing
465
- * (Stübi) User can enable/disable external sentry logging
466
-
467
- ### 1.1.0 (01.05.2020)
468
-
469
- * (Stübi) Node 10 is now required, Node 12 recommended. If you use Node 8 or less, the adapter will stop immediately.
470
- * (Stübi) Tested with js-controller 3. I recommend using js-controller 3 or higher because of sentry logging and more
471
- features in the future
472
- * (Stübi) Snapshot link will be shown as https or http in state (Issue #18)
473
- * (Stübi) Livestream link added and a request button added to get new livestream
474
- * (Stübi) Old snapshots and livestreams can be deleted on the filesystem
475
- * (Stübi) Sentry logging added
476
- * (Stübi) Small improvements and bugfixing
477
- * (Stübi) Added a Two-Factor Auth (2fa) description (Issue #14, Issue #13, Issue #19)
478
-
479
- ### 1.0.7 (24.12.2019)
480
-
481
- * (Stübi) Bugfixing
482
-
483
- ### 1.0.6 (20.12.2019)
484
-
485
- * (Stübi) Bugfixing: Login with username and password changed
486
- * (Stübi) New feature (BETA): Now you can make snapshots in jpg and a livestream in mp4 format. Unfortunately, the
487
- snapshot / livestream does not always work!
488
-
489
- ### 1.0.5 (18.04.2019)
490
-
491
- * (Stübi) Bugfixing
492
- * (Stübi) Using new API. With this API livestreaming and snapshots are possible (work still in progress and not
493
- supported in this version)
494
- * (Stübi) Fixed an error with js-controller 2.0. You need at least this version with js-controller 2.0
495
- * (Stübi) Added two factory authentications
496
-
497
- ### 1.0.4 (17.04.2019)
498
-
499
- * (Stübi) Bugfixing for Ring Pro
500
-
501
- ### 1.0.3 (09.03.2019)
502
-
503
- * (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
504
- reason, a lot has to be redesigned.
505
-
506
- ### 1.0.2 (01.02.2019)
507
-
508
- * (Stübi) More debug information
509
-
510
- ### 1.0.1 (05.01.2019)
511
-
512
- * (Stübi) Support js-controller compact mode
513
-
514
- ### 1.0.0 (04.01.2018)
515
-
516
- * (Stübi) Added a camera device. For this reason, the device name changed from doorbot to doorbell.
517
-
518
- ### 0.1.3 (20.12.2018)
519
-
520
- * (Stübi) Update error handling
521
-
522
- ### 0.1.2 (17.12.2018)
523
-
524
- * (Stübi) Update error handling
525
-
526
- ### 0.1.1 (15.12.2018)
527
-
528
- * (Stübi) Improvements
529
-
530
- ### 0.1.0 (14.12.2018)
531
-
532
- * (Stübi) First Version
145
+ [Older changelogs can be found there](CHANGELOG_OLD.md)
533
146
 
534
147
  ## License
535
148
 
536
149
  MIT License
537
150
 
538
- Copyright (c) 2018-2024 Thorsten <thorsten@stueben.de> / <https://github.com/schmupu>
151
+
152
+ Copyright (c) 2026 iobroker-community-adapters <iobroker-community-adapters@gmx.de>
153
+ Copyright (c) 2018-2025 Thorsten <thorsten@stueben.de> / <https://github.com/schmupu>
539
154
 
540
155
  Permission is hereby granted, free of charge, to any person obtaining a copy
541
156
  of this software and associated documentation files (the "Software"), to deal