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 +15 -54
- package/lib/panic-buttons.js +31 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,75 +1,36 @@
|
|
|
1
1
|
# homebridge-ring
|
|
2
2
|
|
|
3
|
-
## 13.0.
|
|
3
|
+
## 13.0.1
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- [`
|
|
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
|
-
-
|
|
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
|
-
|
|
11
|
+
- Updated dependencies [[`cf08a3e`](https://github.com/dgreif/ring/commit/cf08a3e07b5e550bcddfc789fbaa72050a4a0311)]:
|
|
12
|
+
- ring-client-api@13.0.1
|
|
13
13
|
|
|
14
|
-
|
|
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
|
-
|
|
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
|
-
- [`
|
|
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
|
-
|
|
50
|
-
- ring-client-api@13.0.0-beta.2
|
|
20
|
+
### Minor Changes
|
|
51
21
|
|
|
52
|
-
|
|
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
|
-
- [`
|
|
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
|
-
-
|
|
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
|
-
- [`
|
|
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 [[`
|
|
72
|
-
- ring-client-api@13.0.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
|
|
package/lib/panic-buttons.js
CHANGED
|
@@ -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:
|
|
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:
|
|
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.
|
|
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.
|
|
17
|
+
"ring-client-api": "13.0.1",
|
|
18
18
|
"werift": "0.19.4"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|