homebridge-eufy-security 2.1.0-beta.3 → 2.1.0-beta.6

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 (89) hide show
  1. package/CHANGELOG.md +13 -1
  2. package/angular.json +115 -0
  3. package/config.schema.json +1 -585
  4. package/dist/accessories/CameraAccessory.d.ts.map +1 -1
  5. package/dist/accessories/CameraAccessory.js +1 -2
  6. package/dist/accessories/CameraAccessory.js.map +1 -1
  7. package/dist/accessories/Device.d.ts.map +1 -1
  8. package/dist/accessories/Device.js.map +1 -1
  9. package/dist/accessories/DoorbellCameraAccessory.d.ts.map +1 -1
  10. package/dist/accessories/DoorbellCameraAccessory.js +2 -1
  11. package/dist/accessories/DoorbellCameraAccessory.js.map +1 -1
  12. package/dist/accessories/EntrySensorAccessory.d.ts.map +1 -1
  13. package/dist/accessories/EntrySensorAccessory.js.map +1 -1
  14. package/dist/accessories/KeypadAccessory.d.ts.map +1 -1
  15. package/dist/accessories/KeypadAccessory.js.map +1 -1
  16. package/dist/accessories/LocalLivestreamManager.d.ts +0 -2
  17. package/dist/accessories/LocalLivestreamManager.d.ts.map +1 -1
  18. package/dist/accessories/LocalLivestreamManager.js.map +1 -1
  19. package/dist/accessories/MotionSensorAccessory.d.ts.map +1 -1
  20. package/dist/accessories/MotionSensorAccessory.js.map +1 -1
  21. package/dist/accessories/SmartLockAccessory.d.ts.map +1 -1
  22. package/dist/accessories/SmartLockAccessory.js.map +1 -1
  23. package/dist/accessories/SnapshotManager.d.ts +0 -1
  24. package/dist/accessories/SnapshotManager.d.ts.map +1 -1
  25. package/dist/accessories/SnapshotManager.js.map +1 -1
  26. package/dist/accessories/StationAccessory.d.ts +4 -0
  27. package/dist/accessories/StationAccessory.d.ts.map +1 -1
  28. package/dist/accessories/StationAccessory.js +30 -6
  29. package/dist/accessories/StationAccessory.js.map +1 -1
  30. package/dist/accessories/UniversalStream.d.ts.map +1 -1
  31. package/dist/accessories/UniversalStream.js +11 -7
  32. package/dist/accessories/UniversalStream.js.map +1 -1
  33. package/dist/accessories/configTypes.d.ts +7 -0
  34. package/dist/accessories/configTypes.d.ts.map +1 -1
  35. package/dist/accessories/configTypes.js.map +1 -1
  36. package/dist/accessories/ffmpeg.d.ts.map +1 -1
  37. package/dist/accessories/ffmpeg.js +4 -4
  38. package/dist/accessories/ffmpeg.js.map +1 -1
  39. package/dist/accessories/logger.d.ts.map +1 -1
  40. package/dist/accessories/logger.js.map +1 -1
  41. package/dist/accessories/streamingDelegate.d.ts +0 -2
  42. package/dist/accessories/streamingDelegate.d.ts.map +1 -1
  43. package/dist/accessories/streamingDelegate.js +99 -85
  44. package/dist/accessories/streamingDelegate.js.map +1 -1
  45. package/dist/config.d.ts +2 -1
  46. package/dist/config.d.ts.map +1 -1
  47. package/dist/config.js.map +1 -1
  48. package/dist/index.d.ts +1 -1
  49. package/dist/index.d.ts.map +1 -1
  50. package/dist/index.js.map +1 -1
  51. package/dist/interfaces.d.ts.map +1 -1
  52. package/dist/interfaces.js.map +1 -1
  53. package/dist/platform.d.ts +6 -3
  54. package/dist/platform.d.ts.map +1 -1
  55. package/dist/platform.js +138 -142
  56. package/dist/platform.js.map +1 -1
  57. package/dist/settings.d.ts.map +1 -1
  58. package/dist/settings.js.map +1 -1
  59. package/dist/utils/utils.d.ts.map +1 -1
  60. package/dist/utils/utils.js.map +1 -1
  61. package/homebridge-ui/configui/app/accessory.d.ts +9 -0
  62. package/homebridge-ui/configui/app/accessory.d.ts.map +1 -0
  63. package/homebridge-ui/configui/app/accessory.js +3 -0
  64. package/homebridge-ui/configui/app/accessory.js.map +1 -0
  65. package/homebridge-ui/configui/app/util/types.d.ts +17 -0
  66. package/homebridge-ui/configui/app/util/types.d.ts.map +1 -0
  67. package/homebridge-ui/configui/app/util/types.js +11 -0
  68. package/homebridge-ui/configui/app/util/types.js.map +1 -0
  69. package/homebridge-ui/public/3rdpartylicenses.txt +700 -0
  70. package/homebridge-ui/public/{images → assets/images}/homebridge-eufy-security.png +0 -0
  71. package/homebridge-ui/public/favicon.ico +0 -0
  72. package/homebridge-ui/public/index.html +13 -820
  73. package/homebridge-ui/public/main.713bc8fd3b62c234.js +1 -0
  74. package/homebridge-ui/public/polyfills.6050693665c0e882.js +1 -0
  75. package/homebridge-ui/public/runtime.1b3e1be22c2e329f.js +1 -0
  76. package/homebridge-ui/public/styles.cb76993070abc56c.css +6 -0
  77. package/homebridge-ui/server.d.ts +2 -0
  78. package/homebridge-ui/server.d.ts.map +1 -0
  79. package/homebridge-ui/server.js +204 -330
  80. package/homebridge-ui/server.js.map +1 -0
  81. package/karma.conf.js +44 -0
  82. package/package.json +44 -8
  83. package/tsconfig.configui.app.json +17 -0
  84. package/tsconfig.configui.json +32 -0
  85. package/tsconfig.configui.server.json +27 -0
  86. package/tsconfig.configui.spec.json +18 -0
  87. package/tsconfig.plugin.json +26 -0
  88. package/homebridge-ui/public/css/style.css +0 -94
  89. package/homebridge-ui/public/js/main.js +0 -997
package/CHANGELOG.md CHANGED
@@ -1,8 +1,9 @@
1
1
  # Change Log
2
2
 
3
- ## 2.1.0 (beta) (21/06/2022)
3
+ ## 2.1.0 (beta) (09/07/2022)
4
4
 
5
5
  ### Changed
6
+ - Complete redesign of the config ui screen
6
7
  - Additional log output when station guard mode is changed (see [enhancement]: Logging basic operations such as guard mode change on the UI without debug mode #39)
7
8
  - Edited description for livestream caching in configuration wizard
8
9
  - Changed log output messages for better understanding
@@ -10,6 +11,10 @@
10
11
  - Added timeouts for guard mode changes with corresponding log messages and one retry (possible fix for [Bug]: Eufy Indoor Cam 2k alarm state issue #38 and [enhancement]: Logging basic operations such as guard mode change on the UI without debug mode #39)
11
12
  - Improved snapshot handling
12
13
  - Allow enabling and disabling motion detection throug switch if camera is used as motion sensor only
14
+ - cameras can now be enabled and disabled even if only used as motion sensors devices
15
+ - Refactored whole project structure to resemble the new workspace layout (plugin + custom ui)
16
+ - Reimplementation of device discovery algorithm to better reflect best practices mentioned in [this comment](https://github.com/bropat/eufy-security-client/issues/167#issuecomment-1155388624)
17
+ - Updated to latest version of eufy-security-client (2.1.0)
13
18
 
14
19
  ### Fixed
15
20
  - [Bug]: package.json reqiures the wrong node version #44
@@ -24,6 +29,13 @@
24
29
  - Fix #48 Options enableCamera and enableMotion were not working in specific configuration situations
25
30
  - Fix #79 Unbridge setting not working for doorbell cameras
26
31
  - Fix #81 under certain conditions two cameras on the same station could not get automatic snapshot refreshes simultaneously
32
+ - crash on startup if ignoreStations or ignoreDevices was not set in config json
33
+ - fixed all lint warnings and errors
34
+ - fixed npm audit warnings
35
+ - crash if first cloud snapshot could not be downloaded
36
+ - smart lock state could be wrong on startup (further improvements needed)
37
+ - fix printed error messages if no stored accessories were found when using the config ui
38
+ - temporary fix for log file rotation crashing
27
39
 
28
40
  ## 2.0.1 (20.06.2022)
29
41
 
package/angular.json ADDED
@@ -0,0 +1,115 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "projects",
5
+ "projects": {
6
+ "config-ui": {
7
+ "projectType": "application",
8
+ "schematics": {
9
+ "@schematics/angular:application": {
10
+ "strict": true
11
+ }
12
+ },
13
+ "root": "",
14
+ "sourceRoot": "src/configui",
15
+ "prefix": "app",
16
+ "architect": {
17
+ "build": {
18
+ "builder": "@angular-devkit/build-angular:browser",
19
+ "options": {
20
+ "outputPath": "homebridge-ui/public",
21
+ "index": "src/configui/index.html",
22
+ "main": "src/configui/main.ts",
23
+ "polyfills": "src/configui/polyfills.ts",
24
+ "tsConfig": "tsconfig.configui.app.json",
25
+ "assets": [
26
+ "src/configui/favicon.ico",
27
+ "src/configui/assets"
28
+ ],
29
+ "styles": [
30
+ "node_modules/bootstrap/dist/css/bootstrap.min.css",
31
+ "src/configui/styles.css"
32
+ ],
33
+ "scripts": []
34
+ },
35
+ "configurations": {
36
+ "production": {
37
+ "budgets": [
38
+ {
39
+ "type": "initial",
40
+ "maximumWarning": "2mb",
41
+ "maximumError": "5mb"
42
+ },
43
+ {
44
+ "type": "anyComponentStyle",
45
+ "maximumWarning": "2kb",
46
+ "maximumError": "4kb"
47
+ }
48
+ ],
49
+ "fileReplacements": [
50
+ {
51
+ "replace": "src/configui/environments/environment.ts",
52
+ "with": "src/configui/environments/environment.prod.ts"
53
+ }
54
+ ],
55
+ "optimization": {
56
+ "scripts": true,
57
+ "styles": {
58
+ "minify": true,
59
+ "inlineCritical": false
60
+ },
61
+ "fonts": true
62
+ },
63
+ "outputHashing": "all"
64
+ },
65
+ "development": {
66
+ "buildOptimizer": false,
67
+ "optimization": false,
68
+ "vendorChunk": true,
69
+ "extractLicenses": false,
70
+ "sourceMap": true,
71
+ "namedChunks": true
72
+ }
73
+ },
74
+ "defaultConfiguration": "production"
75
+ },
76
+ "serve": {
77
+ "builder": "@angular-devkit/build-angular:dev-server",
78
+ "configurations": {
79
+ "production": {
80
+ "browserTarget": "config-ui:build:production"
81
+ },
82
+ "development": {
83
+ "browserTarget": "config-ui:build:development"
84
+ }
85
+ },
86
+ "defaultConfiguration": "development"
87
+ },
88
+ "extract-i18n": {
89
+ "builder": "@angular-devkit/build-angular:extract-i18n",
90
+ "options": {
91
+ "browserTarget": "config-ui:build"
92
+ }
93
+ },
94
+ "test": {
95
+ "builder": "@angular-devkit/build-angular:karma",
96
+ "options": {
97
+ "main": "src/configui/test.ts",
98
+ "polyfills": "src/configui/polyfills.ts",
99
+ "tsConfig": "tsconfig.configui.spec.json",
100
+ "karmaConfig": "karma.conf.js",
101
+ "assets": [
102
+ "src/configui/favicon.ico",
103
+ "src/configui/assets"
104
+ ],
105
+ "styles": [
106
+ "src/configui/styles.css"
107
+ ],
108
+ "scripts": []
109
+ }
110
+ }
111
+ }
112
+ }
113
+ },
114
+ "defaultProject": "config-ui"
115
+ }