homebridge-ring 11.7.0-beta.2 → 11.7.0-beta.4
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 +22 -0
- package/README.md +1 -0
- package/lib/intercom.js +14 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# homebridge-ring
|
|
2
2
|
|
|
3
|
+
## 11.7.0-beta.4
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`24987d8`](https://github.com/dgreif/ring/commit/24987d885ea7d61daad7dc5029bea11a869ab893) Thanks [@dgreif](https://github.com/dgreif)! - Add programmable switch for intercom doorbell press
|
|
8
|
+
|
|
9
|
+
- [`e845b44`](https://github.com/dgreif/ring/commit/e845b44cf870fa8e5d83f3f3116cdc6d1b4f9576) Thanks [@dgreif](https://github.com/dgreif)! - Automatically subscribe for ding events on intercoms
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`3ebefaf`](https://github.com/dgreif/ring/commit/3ebefaf24d6e6afa4c25096f8181be63b9e0dbe4), [`e845b44`](https://github.com/dgreif/ring/commit/e845b44cf870fa8e5d83f3f3116cdc6d1b4f9576)]:
|
|
14
|
+
- ring-client-api@11.7.0-beta.4
|
|
15
|
+
|
|
16
|
+
## 11.7.0-beta.3
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`05f9745`](https://github.com/dgreif/ring/commit/05f9745bbac98b9d7fc0ca5c7f687b8b0c3fd8e3) Thanks [@dgreif](https://github.com/dgreif)! - Fixed a typo which caused all cameras to be recognized as wired cameras. This lead to slower notifications for battery cameras and removed the battery level in HomeKit. Big thanks to @satrik for pointing me in the right direction to track down these issues!
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`05f9745`](https://github.com/dgreif/ring/commit/05f9745bbac98b9d7fc0ca5c7f687b8b0c3fd8e3)]:
|
|
23
|
+
- ring-client-api@11.7.0-beta.3
|
|
24
|
+
|
|
3
25
|
## 11.7.0-beta.2
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -216,6 +216,7 @@ 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
|
+
- Programmable switch which is trigged when the intercom doorbell is pressed
|
|
219
220
|
|
|
220
221
|
### Alarm/Location Modes
|
|
221
222
|
|
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,19 @@ class Intercom extends base_data_accessory_1.BaseDataAccessory {
|
|
|
59
59
|
},
|
|
60
60
|
});
|
|
61
61
|
lockService.setPrimaryService(true);
|
|
62
|
+
// Doorbell Service
|
|
63
|
+
// Note, the real DoorbellService doesn't work without a camera, so we just expose a single press programmable switch
|
|
64
|
+
this.registerObservableCharacteristic({
|
|
65
|
+
characteristicType: ProgrammableSwitchEvent,
|
|
66
|
+
serviceType: programableSwitchService,
|
|
67
|
+
onValue: onDoorbellPressed,
|
|
68
|
+
});
|
|
69
|
+
// Hide long and double press events by setting max value
|
|
70
|
+
programableSwitchService
|
|
71
|
+
.getCharacteristic(ProgrammableSwitchEvent)
|
|
72
|
+
.setProps({
|
|
73
|
+
maxValue: ProgrammableSwitchEvent.SINGLE_PRESS,
|
|
74
|
+
});
|
|
62
75
|
// Battery Service
|
|
63
76
|
if (device.batteryLevel !== null) {
|
|
64
77
|
this.registerObservableCharacteristic({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "homebridge-ring",
|
|
3
|
-
"version": "11.7.0-beta.
|
|
3
|
+
"version": "11.7.0-beta.4",
|
|
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.
|
|
16
|
+
"ring-client-api": "11.7.0-beta.4"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"concurrently": "^7.5.0",
|