homebridge-ring 13.0.0 → 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,5 +1,16 @@
1
1
  # homebridge-ring
2
2
 
3
+ ## 13.0.1
4
+
5
+ ### Patch Changes
6
+
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
+
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.
10
+
11
+ - Updated dependencies [[`cf08a3e`](https://github.com/dgreif/ring/commit/cf08a3e07b5e550bcddfc789fbaa72050a4a0311)]:
12
+ - ring-client-api@13.0.1
13
+
3
14
  ## 13.0.0
4
15
 
5
16
  ### Major Changes
@@ -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",
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",
17
+ "ring-client-api": "13.0.1",
18
18
  "werift": "0.19.4"
19
19
  },
20
20
  "devDependencies": {