homebridge-ring 13.0.0-beta.3 → 13.0.0-beta.5

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 CHANGED
@@ -1,5 +1,23 @@
1
1
  # homebridge-ring
2
2
 
3
+ ## 13.0.0-beta.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`ebb681e`](https://github.com/dgreif/ring/commit/ebb681e3a4d0ecbc2e4acf2422d68d457c8d14db) Thanks [@dgreif](https://github.com/dgreif)! - Add deprecation warning for bridged cameras. Only unbridged cameras will be supported in the next major release.
8
+
9
+ - Updated dependencies []:
10
+ - ring-client-api@13.0.0-beta.5
11
+
12
+ ## 13.0.0-beta.4
13
+
14
+ ### Patch Changes
15
+
16
+ - [`0d93c93`](https://github.com/dgreif/ring/commit/0d93c930da4c7bc2cf6c448a183b8dbd2c2c419f) Thanks [@tsightler](https://github.com/tsightler)! - Handle push-receiver credentials upon first startup after upgrading
17
+
18
+ - Updated dependencies [[`0d93c93`](https://github.com/dgreif/ring/commit/0d93c930da4c7bc2cf6c448a183b8dbd2c2c419f)]:
19
+ - ring-client-api@13.0.0-beta.4
20
+
3
21
  ## 13.0.0-beta.3
4
22
 
5
23
  ### Patch Changes
package/README.md CHANGED
@@ -82,7 +82,7 @@ Only include an optional parameter if you actually need it. Default behavior wit
82
82
 
83
83
  | Option | Default | Explanation |
84
84
  | ---------------------------- | ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
85
- | `unbridgeCameras` | `false` | if `true`, all Ring Cameras we be treated as external accessories, which generally leads to better performance. This means they each need to be individually added to HomeKit. WARNING: If your cameras are already bridged, they will be deleted from HomeKit when you enable this option, and you will need to reconfigure any associated automations or HomeKit settings |
85
+ | `unbridgeCameras` | `false` | if `true`, all Ring Cameras we be treated as external accessories, which generally leads to better performance. This means they each need to be individually added to HomeKit. This option will be enabled by default in the next major release. WARNING: If your cameras are already bridged, they will be deleted from HomeKit when you enable this option, and you will need to reconfigure any associated automations or HomeKit settings |
86
86
  | `alarmOnEntryDelay` | `false` | if `true`, HomeKit will register a delayed entry event as a triggered alarm. There are some households where this is a nice feature as a heads up if you have other people who enter your house and you want an alert so that you can disable the alarm for them before it actually goes off. This works well if you automatically arm/disarm on leave/arrive (see setup instructions below) |
87
87
  | `beamDurationSeconds` | `60` for light groups, previous from Ring app for individual lights | Ring smart lighting has a default behavior of only staying on for 60 seconds when you turn on a light via the Ring app. To force a duration when the light is turned on from HomeKit, set this option to a specific number of seconds. If this option is not set, the lights will use the duration from the previous time the light was turned on in the Ring app. For light groups, this will default to 60 seconds. The maximum value is `32767`, which is ~9.1 hours. |
88
88
  | `hideDeviceIds` | `[]` | Allows you to hide specific devices by an array of ids. The id for each device is logged when homebridge starts. |
@@ -19,7 +19,7 @@
19
19
  "unbridgeCameras": {
20
20
  "title": "Unbridge Cameras",
21
21
  "type": "boolean",
22
- "description": "If enabled, all Ring Cameras we be treated as external accessories, which generally leads to better performance. This means they each need to be individually added to HomeKit. WARNING: If your cameras are already bridged, they will be deleted from HomeKit when you enable this option, and you will need to reconfigure any associated automations or HomeKit settings"
22
+ "description": "If enabled, all Ring Cameras we be treated as external accessories, which generally leads to better performance. This means they each need to be individually added to HomeKit. This option will be enabled by default in the next major release. WARNING: If your cameras are already bridged, they will be deleted from HomeKit when you enable this option, and you will need to reconfigure any associated automations or HomeKit settings"
23
23
  },
24
24
  "alarmOnEntryDelay": {
25
25
  "title": "Alarm on Entry Delay",
package/lib/camera.js CHANGED
@@ -56,7 +56,7 @@ class Camera extends base_data_accessory_1.BaseDataAccessory {
56
56
  this.registerObservableCharacteristic({
57
57
  characteristicType: Characteristic.ProgrammableSwitchEvent,
58
58
  serviceType: Service.StatelessProgrammableSwitch,
59
- onValue: device.onDoorbellPressed.pipe((0, operators_1.mapTo)(Characteristic.ProgrammableSwitchEvent.SINGLE_PRESS)),
59
+ onValue: device.onDoorbellPressed.pipe((0, operators_1.map)(() => Characteristic.ProgrammableSwitchEvent.SINGLE_PRESS)),
60
60
  });
61
61
  // Hide long and double press events by setting max value
62
62
  this.getService(Service.StatelessProgrammableSwitch)
@@ -157,6 +157,7 @@ class RingPlatform {
157
157
  ...config,
158
158
  systemId,
159
159
  }), locations = await ringApi.getLocations(), cachedAccessoryIds = Object.keys(this.homebridgeAccessories), platformAccessories = [], externalAccessories = [], activeAccessoryIds = [];
160
+ let hasBridgedCameras = false;
160
161
  (0, util_1.logInfo)('Found the following locations:');
161
162
  locations.forEach((location) => {
162
163
  (0, util_1.logInfo)(` locationId: ${location.id} - ${location.name}`);
@@ -247,6 +248,7 @@ class RingPlatform {
247
248
  accessory.initBase();
248
249
  this.homebridgeAccessories[uuid] = homebridgeAccessory;
249
250
  activeAccessoryIds.push(uuid);
251
+ hasBridgedCameras ||= isCamera && !isExternalCamera;
250
252
  });
251
253
  }));
252
254
  if (platformAccessories.length) {
@@ -272,6 +274,9 @@ class RingPlatform {
272
274
  return configContents.replace(oldRefreshToken, newRefreshToken);
273
275
  });
274
276
  });
277
+ if (hasBridgedCameras) {
278
+ (0, util_1.logError)('Bridged camera support will be removed in the next major release of homebridge-ring. Please enable the unbridgeCameras option in your configuration and add the individual cameras to HomeKit to prepare for this change.');
279
+ }
275
280
  }
276
281
  }
277
282
  exports.RingPlatform = RingPlatform;
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.3",
4
+ "version": "13.0.0-beta.5",
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,7 +14,7 @@
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.3",
17
+ "ring-client-api": "13.0.0-beta.5",
18
18
  "werift": "0.19.4"
19
19
  },
20
20
  "devDependencies": {