homebridge-ring 11.7.0-beta.3 → 11.7.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,29 @@
1
1
  # homebridge-ring
2
2
 
3
+ ## 11.7.0-beta.5
4
+
5
+ ### Minor Changes
6
+
7
+ - [`f59e357`](https://github.com/dgreif/ring/commit/f59e35713fb82595a4f25f4226c660fb635896ed) Thanks [@dgreif](https://github.com/dgreif)! - Add true doorbell service for intercoms. This can trigger Homepods to chime when the intercom doorbell is pressed
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies []:
12
+ - ring-client-api@11.7.0-beta.5
13
+
14
+ ## 11.7.0-beta.4
15
+
16
+ ### Minor Changes
17
+
18
+ - [`24987d8`](https://github.com/dgreif/ring/commit/24987d885ea7d61daad7dc5029bea11a869ab893) Thanks [@dgreif](https://github.com/dgreif)! - Add programmable switch for intercom doorbell press
19
+
20
+ - [`e845b44`](https://github.com/dgreif/ring/commit/e845b44cf870fa8e5d83f3f3116cdc6d1b4f9576) Thanks [@dgreif](https://github.com/dgreif)! - Automatically subscribe for ding events on intercoms
21
+
22
+ ### Patch Changes
23
+
24
+ - Updated dependencies [[`3ebefaf`](https://github.com/dgreif/ring/commit/3ebefaf24d6e6afa4c25096f8181be63b9e0dbe4), [`e845b44`](https://github.com/dgreif/ring/commit/e845b44cf870fa8e5d83f3f3116cdc6d1b4f9576)]:
25
+ - ring-client-api@11.7.0-beta.4
26
+
3
27
  ## 11.7.0-beta.3
4
28
 
5
29
  ### Patch Changes
package/README.md CHANGED
@@ -216,6 +216,8 @@ Note: Although homebridge has support for HomeKit Secure Video (HKSV), I will no
216
216
  Intercom support is still experimental. See [this issue](https://github.com/dgreif/ring/issues/1083) for more details
217
217
 
218
218
  - Unlock door
219
+ - Doorbell which can cause Homepods to chime when the intercom doorbell is pressed
220
+ - Programmable switch which is trigged when the intercom doorbell is pressed
219
221
 
220
222
  ### Alarm/Location Modes
221
223
 
package/lib/intercom.js CHANGED
@@ -12,7 +12,7 @@ class Intercom extends base_data_accessory_1.BaseDataAccessory {
12
12
  this.accessory = accessory;
13
13
  this.config = config;
14
14
  this.unlocking = false;
15
- const { Characteristic, Service } = hap_1.hap, lockService = this.getService(Service.LockMechanism), { LockCurrentState, LockTargetState } = Characteristic;
15
+ const { Characteristic, Service } = hap_1.hap, lockService = this.getService(Service.LockMechanism), { LockCurrentState, LockTargetState, ProgrammableSwitchEvent } = Characteristic, programableSwitchService = this.getService(Service.StatelessProgrammableSwitch), onDoorbellPressed = device.onDing.pipe((0, operators_1.throttleTime)(15000), (0, operators_1.map)(() => ProgrammableSwitchEvent.SINGLE_PRESS));
16
16
  // Lock Service
17
17
  this.registerCharacteristic({
18
18
  characteristicType: LockCurrentState,
@@ -59,6 +59,24 @@ class Intercom extends base_data_accessory_1.BaseDataAccessory {
59
59
  },
60
60
  });
61
61
  lockService.setPrimaryService(true);
62
+ // Doorbell Service
63
+ this.registerObservableCharacteristic({
64
+ characteristicType: ProgrammableSwitchEvent,
65
+ serviceType: Service.Doorbell,
66
+ onValue: onDoorbellPressed,
67
+ });
68
+ // Programmable Switch Service
69
+ this.registerObservableCharacteristic({
70
+ characteristicType: ProgrammableSwitchEvent,
71
+ serviceType: programableSwitchService,
72
+ onValue: onDoorbellPressed,
73
+ });
74
+ // Hide long and double press events by setting max value
75
+ programableSwitchService
76
+ .getCharacteristic(ProgrammableSwitchEvent)
77
+ .setProps({
78
+ maxValue: ProgrammableSwitchEvent.SINGLE_PRESS,
79
+ });
62
80
  // Battery Service
63
81
  if (device.batteryLevel !== null) {
64
82
  this.registerObservableCharacteristic({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homebridge-ring",
3
- "version": "11.7.0-beta.3",
3
+ "version": "11.7.0-beta.5",
4
4
  "description": "Homebridge plugin for Ring doorbells, cameras, security alarm system and smart lighting",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "@homebridge/camera-utils": "^2.2.0",
15
15
  "@homebridge/plugin-ui-utils": "^0.0.19",
16
- "ring-client-api": "11.7.0-beta.3"
16
+ "ring-client-api": "11.7.0-beta.5"
17
17
  },
18
18
  "devDependencies": {
19
19
  "concurrently": "^7.5.0",