homebridge-ring 13.0.0-beta.6 → 13.0.1

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,75 +1,36 @@
1
1
  # homebridge-ring
2
2
 
3
- ## 13.0.0-beta.6
3
+ ## 13.0.1
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - [`466cd93`](https://github.com/dgreif/ring/commit/466cd938cf2210972d9bfd70e46c607b23c18ad5) Thanks [@dgreif](https://github.com/dgreif)! - Better handling of general push notifications. This avoids extraneous logs for events we don't know about or don't care about.
7
+ - [`cf08a3e`](https://github.com/dgreif/ring/commit/cf08a3e07b5e550bcddfc789fbaa72050a4a0311) Thanks [@dgreif](https://github.com/dgreif)! - Update push-receiver, which should lead to more reliable push notification handling
8
8
 
9
- - Updated dependencies [[`466cd93`](https://github.com/dgreif/ring/commit/466cd938cf2210972d9bfd70e46c607b23c18ad5)]:
10
- - ring-client-api@13.0.0-beta.6
9
+ - [`1552181`](https://github.com/dgreif/ring/commit/1552181b47d9f9dba031c3a592591f90369a7970) Thanks [@dgreif](https://github.com/dgreif)! - Set panic button names in such a way that they are properly reflected in the Home app. Note, this only impacts users who have the `showPanicButtons` option enabled. These users will likely see a new warning about "Configured Name" not being a supported characteristic of "Switch", which can be ignored.
11
10
 
12
- ## 13.0.0-beta.5
11
+ - Updated dependencies [[`cf08a3e`](https://github.com/dgreif/ring/commit/cf08a3e07b5e550bcddfc789fbaa72050a4a0311)]:
12
+ - ring-client-api@13.0.1
13
13
 
14
- ### Patch Changes
15
-
16
- - [`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.
17
-
18
- - Updated dependencies []:
19
- - ring-client-api@13.0.0-beta.5
20
-
21
- ## 13.0.0-beta.4
22
-
23
- ### Patch Changes
24
-
25
- - [`0d93c93`](https://github.com/dgreif/ring/commit/0d93c930da4c7bc2cf6c448a183b8dbd2c2c419f) Thanks [@tsightler](https://github.com/tsightler)! - Handle push-receiver credentials upon first startup after upgrading
26
-
27
- - Updated dependencies [[`0d93c93`](https://github.com/dgreif/ring/commit/0d93c930da4c7bc2cf6c448a183b8dbd2c2c419f)]:
28
- - ring-client-api@13.0.0-beta.4
29
-
30
- ## 13.0.0-beta.3
31
-
32
- ### Patch Changes
33
-
34
- - [`4a435e3`](https://github.com/dgreif/ring/commit/4a435e35c0299cc8662bdfe4c5d68e19e147fa1d) Thanks [@dgreif](https://github.com/dgreif)! - Update push-receiver to remove unwanted debug logging
14
+ ## 13.0.0
35
15
 
36
- - [`60cb8ff`](https://github.com/dgreif/ring/commit/60cb8ffdfd4c31e61c4cea1b4a486596c6b48872) Thanks [@donavanbecker](https://github.com/donavanbecker)! - Fixes for HAP-NodeJS v1.0.0
37
-
38
- - [`2e6e984`](https://github.com/dgreif/ring/commit/2e6e984f449f13f390e4a130df6abfb765e3319b) Thanks [@dgreif](https://github.com/dgreif)! - Properly handle new style of push notifications from Ring Intercom
39
-
40
- - Updated dependencies [[`4a435e3`](https://github.com/dgreif/ring/commit/4a435e35c0299cc8662bdfe4c5d68e19e147fa1d), [`2e6e984`](https://github.com/dgreif/ring/commit/2e6e984f449f13f390e4a130df6abfb765e3319b)]:
41
- - ring-client-api@13.0.0-beta.3
42
-
43
- ## 13.0.0-beta.2
44
-
45
- ### Patch Changes
16
+ ### Major Changes
46
17
 
47
- - [`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.
18
+ - [`cc2f0b7`](https://github.com/dgreif/ring/commit/cc2f0b743a5927e1a9e4c5797ee6bc08bef9ffe7) Thanks [@tsightler](https://github.com/tsightler)! - Updated to new push notification interface. This will change the shape of push notifications for projects which manually consume push notifications, but should not impact homebridge-ring users. If your push notifications for cameras (motion events, dings, etc) do not work after updating, please reboot and try again, then see https://github.com/dgreif/ring/wiki/Notification-Troubleshooting if issues continue.
48
19
 
49
- - Updated dependencies [[`6bb8df2`](https://github.com/dgreif/ring/commit/6bb8df29789b9d2dfee3654d60c4a8f41c36f3cb)]:
50
- - ring-client-api@13.0.0-beta.2
20
+ ### Minor Changes
51
21
 
52
- ## 13.0.0-beta.1
22
+ - [`36461a1`](https://github.com/dgreif/ring/commit/36461a10719a044a42284d92ab7ea87623ff8e99) 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.
53
23
 
54
24
  ### Patch Changes
55
25
 
56
- - [`f83011d`](https://github.com/dgreif/ring/commit/f83011dc25c21b48c88b6219a7cae26ce1437da6) Thanks [@dgreif](https://github.com/dgreif)! - Use new category type for intercom unlock notifications
26
+ - [`f0766c1`](https://github.com/dgreif/ring/commit/f0766c1588eccddf5a0dabe35665e97172cc0ad6) Thanks [@donavanbecker](https://github.com/donavanbecker)! - Fixes for HAP-NodeJS v1.0.0, which should pave the way for the upcoming Homebridge 2.0.0 release.
57
27
 
58
- - Updated dependencies [[`f83011d`](https://github.com/dgreif/ring/commit/f83011dc25c21b48c88b6219a7cae26ce1437da6)]:
59
- - ring-client-api@13.0.0-beta.1
60
-
61
- ## 13.0.0-beta.0
62
-
63
- ### Major Changes
64
-
65
- - [#1435](https://github.com/dgreif/ring/pull/1435) [`614621c`](https://github.com/dgreif/ring/commit/614621ca8957beb7f46a3f26347059ad5772dd48) Thanks [@tsightler](https://github.com/tsightler)! - Updated to new push notification interface. This will change the shape of push notifications for projects which manually consume push notifications, but should not impact homebridge-ring users. If your push notifications for cameras (motion events, dings, etc) do not work after updating, please reboot and try again, then see https://github.com/dgreif/ring/wiki/Notification-Troubleshooting if issues continue.
66
-
67
- ### Patch Changes
28
+ - [`dd78e50`](https://github.com/dgreif/ring/commit/dd78e503670743d6d836868742a0b724edf75113) Thanks [@dgreif](https://github.com/dgreif)! - Updated dependencies
68
29
 
69
- - [`dcdd90f`](https://github.com/dgreif/ring/commit/dcdd90f2ebbdd0596d4df6d31c1b6f52dca9d0df) Thanks [@dgreif](https://github.com/dgreif)! - Updated dependencies
30
+ - [`c8aab5a`](https://github.com/dgreif/ring/commit/c8aab5a7753d241de4bde66fd7d353e174b48ca6) Thanks [@dgreif](https://github.com/dgreif)! - Add deprecation warning for bridged cameras. Only unbridged cameras will be supported in the next major release.
70
31
 
71
- - Updated dependencies [[`dcdd90f`](https://github.com/dgreif/ring/commit/dcdd90f2ebbdd0596d4df6d31c1b6f52dca9d0df), [`614621c`](https://github.com/dgreif/ring/commit/614621ca8957beb7f46a3f26347059ad5772dd48)]:
72
- - ring-client-api@13.0.0-beta.0
32
+ - Updated dependencies [[`dd78e50`](https://github.com/dgreif/ring/commit/dd78e503670743d6d836868742a0b724edf75113), [`cc2f0b7`](https://github.com/dgreif/ring/commit/cc2f0b743a5927e1a9e4c5797ee6bc08bef9ffe7), [`36461a1`](https://github.com/dgreif/ring/commit/36461a10719a044a42284d92ab7ea87623ff8e99)]:
33
+ - ring-client-api@13.0.0
73
34
 
74
35
  ## 12.1.1
75
36
 
@@ -16,6 +16,7 @@ const burglarStates = [
16
16
  function matchesAnyAlarmState({ alarmInfo }, targetStates) {
17
17
  return Boolean(alarmInfo && targetStates.includes(alarmInfo.state));
18
18
  }
19
+ const burglarAlarmName = 'Burglar Alarm', fireAlarmName = 'Fire Alarm';
19
20
  class PanicButtons extends base_data_accessory_1.BaseDataAccessory {
20
21
  constructor(device, accessory, config) {
21
22
  super();
@@ -27,7 +28,7 @@ class PanicButtons extends base_data_accessory_1.BaseDataAccessory {
27
28
  characteristicType: Characteristic.On,
28
29
  serviceType: Service.Switch,
29
30
  serviceSubType: 'Burglar',
30
- name: 'Burglar Alarm',
31
+ name: burglarAlarmName,
31
32
  getValue: (data) => matchesAnyAlarmState(data, burglarStates),
32
33
  setValue: (on) => {
33
34
  if (on) {
@@ -38,11 +39,25 @@ class PanicButtons extends base_data_accessory_1.BaseDataAccessory {
38
39
  return this.device.location.setAlarmMode('none');
39
40
  },
40
41
  });
42
+ this.registerCharacteristic({
43
+ characteristicType: Characteristic.Name,
44
+ serviceType: Service.Switch,
45
+ serviceSubType: 'Burglar',
46
+ name: burglarAlarmName,
47
+ getValue: () => burglarAlarmName,
48
+ });
49
+ this.registerCharacteristic({
50
+ characteristicType: Characteristic.ConfiguredName,
51
+ serviceType: Service.Switch,
52
+ serviceSubType: 'Burglar',
53
+ name: burglarAlarmName,
54
+ getValue: () => burglarAlarmName,
55
+ });
41
56
  this.registerCharacteristic({
42
57
  characteristicType: Characteristic.On,
43
58
  serviceType: Service.Switch,
44
59
  serviceSubType: 'Fire',
45
- name: 'Fire Alarm',
60
+ name: fireAlarmName,
46
61
  getValue: (data) => matchesAnyAlarmState(data, fireStates),
47
62
  setValue: (on) => {
48
63
  if (on) {
@@ -53,6 +68,20 @@ class PanicButtons extends base_data_accessory_1.BaseDataAccessory {
53
68
  return this.device.location.setAlarmMode('none');
54
69
  },
55
70
  });
71
+ this.registerCharacteristic({
72
+ characteristicType: Characteristic.Name,
73
+ serviceType: Service.Switch,
74
+ serviceSubType: 'Fire',
75
+ name: fireAlarmName,
76
+ getValue: () => fireAlarmName,
77
+ });
78
+ this.registerCharacteristic({
79
+ characteristicType: Characteristic.ConfiguredName,
80
+ serviceType: Service.Switch,
81
+ serviceSubType: 'Fire',
82
+ name: fireAlarmName,
83
+ getValue: () => fireAlarmName,
84
+ });
56
85
  }
57
86
  initBase() {
58
87
  const { Characteristic, Service } = hap_1.hap;
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.6",
4
+ "version": "13.0.1",
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.6",
17
+ "ring-client-api": "13.0.1",
18
18
  "werift": "0.19.4"
19
19
  },
20
20
  "devDependencies": {