homebridge-ring 13.0.0-beta.1 → 13.0.0-beta.3
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 +1 -4
- package/lib/base-device-accessory.js +3 -3
- package/lib/camera.js +3 -3
- package/lib/intercom.js +1 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# homebridge-ring
|
|
2
2
|
|
|
3
|
+
## 13.0.0-beta.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`4a435e3`](https://github.com/dgreif/ring/commit/4a435e35c0299cc8662bdfe4c5d68e19e147fa1d) Thanks [@dgreif](https://github.com/dgreif)! - Update push-receiver to remove unwanted debug logging
|
|
8
|
+
|
|
9
|
+
- [`60cb8ff`](https://github.com/dgreif/ring/commit/60cb8ffdfd4c31e61c4cea1b4a486596c6b48872) Thanks [@donavanbecker](https://github.com/donavanbecker)! - Fixes for HAP-NodeJS v1.0.0
|
|
10
|
+
|
|
11
|
+
- [`2e6e984`](https://github.com/dgreif/ring/commit/2e6e984f449f13f390e4a130df6abfb765e3319b) Thanks [@dgreif](https://github.com/dgreif)! - Properly handle new style of push notifications from Ring Intercom
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`4a435e3`](https://github.com/dgreif/ring/commit/4a435e35c0299cc8662bdfe4c5d68e19e147fa1d), [`2e6e984`](https://github.com/dgreif/ring/commit/2e6e984f449f13f390e4a130df6abfb765e3319b)]:
|
|
14
|
+
- ring-client-api@13.0.0-beta.3
|
|
15
|
+
|
|
16
|
+
## 13.0.0-beta.2
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`6bb8df2`](https://github.com/dgreif/ring/commit/6bb8df29789b9d2dfee3654d60c4a8f41c36f3cb) Thanks [@dgreif](https://github.com/dgreif)! - Switched to using the native version of `fetch` from Node.js. This allows us to remove `got` as a dependency. This will break any users on Node 16 or older, though those versions have not been officially supported for some time.
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`6bb8df2`](https://github.com/dgreif/ring/commit/6bb8df29789b9d2dfee3654d60c4a8f41c36f3cb)]:
|
|
23
|
+
- ring-client-api@13.0.0-beta.2
|
|
24
|
+
|
|
3
25
|
## 13.0.0-beta.1
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/lib/base-accessory.js
CHANGED
|
@@ -69,10 +69,7 @@ class BaseAccessory {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
pruneUnusedServices() {
|
|
72
|
-
const safeServiceUUIDs = [
|
|
73
|
-
hap_1.hap.Service.CameraRTPStreamManagement.UUID,
|
|
74
|
-
hap_1.hap.Service.CameraControl.UUID,
|
|
75
|
-
];
|
|
72
|
+
const safeServiceUUIDs = [hap_1.hap.Service.CameraRTPStreamManagement.UUID];
|
|
76
73
|
this.accessory.services.forEach((service) => {
|
|
77
74
|
if (!this.servicesInUse.includes(service) &&
|
|
78
75
|
!safeServiceUUIDs.includes(service.UUID)) {
|
|
@@ -74,17 +74,17 @@ class BaseDeviceAccessory extends base_data_accessory_1.BaseDataAccessory {
|
|
|
74
74
|
if (hasBatteryStatus(initialData)) {
|
|
75
75
|
this.registerCharacteristic({
|
|
76
76
|
characteristicType: Characteristic.BatteryLevel,
|
|
77
|
-
serviceType: Service.
|
|
77
|
+
serviceType: Service.Battery,
|
|
78
78
|
getValue: getBatteryLevel,
|
|
79
79
|
});
|
|
80
80
|
this.registerCharacteristic({
|
|
81
81
|
characteristicType: Characteristic.StatusLowBattery,
|
|
82
|
-
serviceType: Service.
|
|
82
|
+
serviceType: Service.Battery,
|
|
83
83
|
getValue: getStatusLowBattery,
|
|
84
84
|
});
|
|
85
85
|
this.registerCharacteristic({
|
|
86
86
|
characteristicType: Characteristic.ChargingState,
|
|
87
|
-
serviceType: Service.
|
|
87
|
+
serviceType: Service.Battery,
|
|
88
88
|
getValue: getBatteryChargingState,
|
|
89
89
|
});
|
|
90
90
|
}
|
package/lib/camera.js
CHANGED
|
@@ -140,7 +140,7 @@ class Camera extends base_data_accessory_1.BaseDataAccessory {
|
|
|
140
140
|
if (device.hasBattery) {
|
|
141
141
|
this.registerCharacteristic({
|
|
142
142
|
characteristicType: Characteristic.StatusLowBattery,
|
|
143
|
-
serviceType: Service.
|
|
143
|
+
serviceType: Service.Battery,
|
|
144
144
|
getValue: () => {
|
|
145
145
|
return device.hasLowBattery
|
|
146
146
|
? StatusLowBattery.BATTERY_LEVEL_LOW
|
|
@@ -149,7 +149,7 @@ class Camera extends base_data_accessory_1.BaseDataAccessory {
|
|
|
149
149
|
});
|
|
150
150
|
this.registerCharacteristic({
|
|
151
151
|
characteristicType: Characteristic.ChargingState,
|
|
152
|
-
serviceType: Service.
|
|
152
|
+
serviceType: Service.Battery,
|
|
153
153
|
getValue: () => {
|
|
154
154
|
return device.isCharging
|
|
155
155
|
? ChargingState.CHARGING
|
|
@@ -158,7 +158,7 @@ class Camera extends base_data_accessory_1.BaseDataAccessory {
|
|
|
158
158
|
});
|
|
159
159
|
this.registerObservableCharacteristic({
|
|
160
160
|
characteristicType: Characteristic.BatteryLevel,
|
|
161
|
-
serviceType: Service.
|
|
161
|
+
serviceType: Service.Battery,
|
|
162
162
|
onValue: device.onBatteryLevel.pipe((0, operators_1.map)((batteryLevel) => {
|
|
163
163
|
return batteryLevel === null ? 100 : batteryLevel;
|
|
164
164
|
})),
|
package/lib/intercom.js
CHANGED
|
@@ -90,7 +90,7 @@ class Intercom extends base_data_accessory_1.BaseDataAccessory {
|
|
|
90
90
|
if (device.batteryLevel !== null) {
|
|
91
91
|
this.registerObservableCharacteristic({
|
|
92
92
|
characteristicType: Characteristic.BatteryLevel,
|
|
93
|
-
serviceType: Service.
|
|
93
|
+
serviceType: Service.Battery,
|
|
94
94
|
onValue: device.onBatteryLevel.pipe((0, operators_1.map)((batteryLevel) => {
|
|
95
95
|
return batteryLevel === null ? 100 : batteryLevel;
|
|
96
96
|
})),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-ring",
|
|
3
3
|
"displayName": "Ring",
|
|
4
|
-
"version": "13.0.0-beta.
|
|
4
|
+
"version": "13.0.0-beta.3",
|
|
5
5
|
"description": "Homebridge plugin for Ring doorbells, cameras, security alarm system and smart lighting",
|
|
6
6
|
"main": "lib/index.js",
|
|
7
7
|
"scripts": {
|
|
@@ -14,16 +14,16 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@homebridge/camera-utils": "^2.2.6",
|
|
16
16
|
"@homebridge/plugin-ui-utils": "^1.0.3",
|
|
17
|
-
"ring-client-api": "13.0.0-beta.
|
|
18
|
-
"werift": "0.19.
|
|
17
|
+
"ring-client-api": "13.0.0-beta.3",
|
|
18
|
+
"werift": "0.19.4"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"concurrently": "^8.2.2",
|
|
22
22
|
"eslint-config-shared": "*",
|
|
23
|
-
"homebridge": "1.8.
|
|
23
|
+
"homebridge": "1.8.4",
|
|
24
24
|
"nodemon": "^3.1.4",
|
|
25
25
|
"tsconfig": "*",
|
|
26
|
-
"typescript": "5.5.
|
|
26
|
+
"typescript": "5.5.3"
|
|
27
27
|
},
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": "^18 || ^20",
|