homebridge-ring 11.7.0 → 11.7.2
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/CHANGELOG.md +22 -0
- package/lib/base-accessory.js +2 -1
- package/lib/camera-source.js +9 -1
- package/lib/intercom.js +2 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# homebridge-ring
|
|
2
2
|
|
|
3
|
+
## 11.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0fa5a87`](https://github.com/dgreif/ring/commit/0fa5a8786fe3f4dd8dd1ebaaf5e930555419e998) Thanks [@dgreif](https://github.com/dgreif)! - Update dependencies
|
|
8
|
+
|
|
9
|
+
- [`d2b867c`](https://github.com/dgreif/ring/commit/d2b867cf7b518689fff413e1828bc77c467dcb67) Thanks [@dgreif](https://github.com/dgreif)! - Handle codec negotiation failure errors
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`85e2901`](https://github.com/dgreif/ring/commit/85e2901268a1d21b1ebb76790336b30ccb181041), [`0fa5a87`](https://github.com/dgreif/ring/commit/0fa5a8786fe3f4dd8dd1ebaaf5e930555419e998), [`d2b867c`](https://github.com/dgreif/ring/commit/d2b867cf7b518689fff413e1828bc77c467dcb67)]:
|
|
12
|
+
- ring-client-api@11.7.2
|
|
13
|
+
|
|
14
|
+
## 11.7.1
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- [`40559b8`](https://github.com/dgreif/ring/commit/40559b874740858cbb8bfd85125b7bf07680be2d) Thanks [@dgreif](https://github.com/dgreif)! - Update info (eg battery level) for intercom when viewed in Home app
|
|
19
|
+
|
|
20
|
+
- [`4d86e1d`](https://github.com/dgreif/ring/commit/4d86e1d8bbf7839becb127ebbeed37944ca27d3a) Thanks [@dgreif](https://github.com/dgreif)! - Update dependencies
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`4d86e1d`](https://github.com/dgreif/ring/commit/4d86e1d8bbf7839becb127ebbeed37944ca27d3a)]:
|
|
23
|
+
- ring-client-api@11.7.1
|
|
24
|
+
|
|
3
25
|
## 11.7.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/lib/base-accessory.js
CHANGED
|
@@ -25,7 +25,8 @@ class BaseAccessory {
|
|
|
25
25
|
}
|
|
26
26
|
const existingService = subType
|
|
27
27
|
? this.accessory.getServiceById(serviceType, subType)
|
|
28
|
-
: this.accessory.getService(serviceType), service = existingService ||
|
|
28
|
+
: this.accessory.getService(serviceType), service = existingService ||
|
|
29
|
+
this.accessory.addService(serviceType, name, subType);
|
|
29
30
|
if (config_1.debug &&
|
|
30
31
|
existingService &&
|
|
31
32
|
existingService.displayName &&
|
package/lib/camera-source.js
CHANGED
|
@@ -437,7 +437,15 @@ class CameraSource {
|
|
|
437
437
|
}
|
|
438
438
|
if (requestType === 'start') {
|
|
439
439
|
(0, util_1.logInfo)(`Activating stream for ${this.ringCamera.name} (${getDurationSeconds(session.start)}s)`);
|
|
440
|
-
|
|
440
|
+
try {
|
|
441
|
+
await session.activate(request);
|
|
442
|
+
}
|
|
443
|
+
catch (e) {
|
|
444
|
+
(0, util_1.logError)('Failed to activate stream');
|
|
445
|
+
(0, util_1.logError)(e);
|
|
446
|
+
callback(new Error('Failed to activate stream'));
|
|
447
|
+
return;
|
|
448
|
+
}
|
|
441
449
|
(0, util_1.logInfo)(`Streaming active for ${this.ringCamera.name} (${getDurationSeconds(session.start)}s)`);
|
|
442
450
|
}
|
|
443
451
|
else if (requestType === 'stop') {
|
package/lib/intercom.js
CHANGED
|
@@ -40,6 +40,7 @@ class Intercom extends base_data_accessory_1.BaseDataAccessory {
|
|
|
40
40
|
characteristicType: LockCurrentState,
|
|
41
41
|
serviceType: lockService,
|
|
42
42
|
getValue: () => this.getLockState(),
|
|
43
|
+
requestUpdate: () => device.requestUpdate(),
|
|
43
44
|
});
|
|
44
45
|
this.registerCharacteristic({
|
|
45
46
|
characteristicType: LockTargetState,
|
|
@@ -93,6 +94,7 @@ class Intercom extends base_data_accessory_1.BaseDataAccessory {
|
|
|
93
94
|
onValue: device.onBatteryLevel.pipe((0, operators_1.map)((batteryLevel) => {
|
|
94
95
|
return batteryLevel === null ? 100 : batteryLevel;
|
|
95
96
|
})),
|
|
97
|
+
requestUpdate: () => device.requestUpdate(),
|
|
96
98
|
});
|
|
97
99
|
}
|
|
98
100
|
// Accessory Information Service
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-ring",
|
|
3
|
-
"version": "11.7.
|
|
3
|
+
"version": "11.7.2",
|
|
4
4
|
"description": "Homebridge plugin for Ring doorbells, cameras, security alarm system and smart lighting",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -13,16 +13,16 @@
|
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@homebridge/camera-utils": "^2.2.0",
|
|
15
15
|
"@homebridge/plugin-ui-utils": "^0.0.19",
|
|
16
|
-
"ring-client-api": "11.7.
|
|
16
|
+
"ring-client-api": "11.7.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"concurrently": "^7.
|
|
19
|
+
"concurrently": "^7.6.0",
|
|
20
20
|
"eslint-config-shared": "0.0.0",
|
|
21
|
-
"homebridge": "1.
|
|
21
|
+
"homebridge": "1.6.0",
|
|
22
22
|
"homebridge-ui": "0.0.0",
|
|
23
23
|
"nodemon": "^2.0.20",
|
|
24
24
|
"tsconfig": "0.0.0",
|
|
25
|
-
"typescript": "4.
|
|
25
|
+
"typescript": "4.9.5"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": "^16 || ^18",
|