ring-client-api 11.1.0 → 11.2.0
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 -0
- package/lib/api/ring-types.d.ts +11 -1
- package/lib/api/ring-types.js +3 -0
- package/lib/api/util.d.ts +2 -2
- package/lib/api/util.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [11.2.0](https://github.com/dgreif/ring/compare/v11.1.0...v11.2.0) (2022-08-27)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* add `lpd_v4` camera model ([efa5491](https://github.com/dgreif/ring/commit/efa5491ff46535d7c04062bc3273609e5a1184d7)), closes [#951](https://github.com/dgreif/ring/issues/951)
|
|
11
|
+
* **homebridge:** allow logs to be disabled with `disableLogs` ([67e02a0](https://github.com/dgreif/ring/commit/67e02a0effdf88f0bcf3e91d231737b52d3727c4)), closes [#906](https://github.com/dgreif/ring/issues/906)
|
|
12
|
+
* **homebridge:** support brightness for alarm base station and keypads ([bbccf1e](https://github.com/dgreif/ring/commit/bbccf1e453041fd88665930fea98a0ca117a6eb4)), closes [#872](https://github.com/dgreif/ring/issues/872)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* **homebridge:** hide motion sensor for unequipped bulbs ([3f72cb9](https://github.com/dgreif/ring/commit/3f72cb9ffb3bc4b3a3f61ad9a0d05ca59054df0c)), closes [#1001](https://github.com/dgreif/ring/issues/1001)
|
|
18
|
+
* **homebridge:** maintain night mode across bridge reboots ([6610445](https://github.com/dgreif/ring/commit/6610445e4b46cc682ca4c584793157d8d182ea8d)), closes [#908](https://github.com/dgreif/ring/issues/908)
|
|
19
|
+
|
|
5
20
|
## [11.1.0](https://github.com/dgreif/ring/compare/v11.0.7...v11.1.0) (2022-08-21)
|
|
6
21
|
|
|
7
22
|
|
package/lib/api/ring-types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare type Firmware = string | 'Up To Date';
|
|
2
2
|
export declare enum RingDeviceType {
|
|
3
3
|
BaseStation = "hub.redsky",
|
|
4
|
+
BaseStationPro = "hub.kili",
|
|
4
5
|
Keypad = "security-keypad",
|
|
5
6
|
SecurityPanel = "security-panel",
|
|
6
7
|
ContactSensor = "sensor.contact",
|
|
@@ -71,6 +72,7 @@ export declare enum RingCameraKind {
|
|
|
71
72
|
doorbell_graham_cracker = "doorbell_graham_cracker",
|
|
72
73
|
lpd_v1 = "lpd_v1",
|
|
73
74
|
lpd_v2 = "lpd_v2",
|
|
75
|
+
lpd_v4 = "lpd_v4",
|
|
74
76
|
jbox_v1 = "jbox_v1",
|
|
75
77
|
stickup_cam = "stickup_cam",
|
|
76
78
|
stickup_cam_v3 = "stickup_cam_v3",
|
|
@@ -176,6 +178,8 @@ export interface RingDeviceData {
|
|
|
176
178
|
rel: string;
|
|
177
179
|
zid: string;
|
|
178
180
|
}[];
|
|
181
|
+
motionSensorEnabled?: boolean;
|
|
182
|
+
brightness?: number;
|
|
179
183
|
}
|
|
180
184
|
export declare const deviceTypesWithVolume: RingDeviceType[];
|
|
181
185
|
export interface BaseStation {
|
|
@@ -373,7 +377,13 @@ export interface CameraData {
|
|
|
373
377
|
people_detection_eligible: false;
|
|
374
378
|
pir_settings?: any;
|
|
375
379
|
pir_motion_zones?: number[];
|
|
376
|
-
floodlight_settings?:
|
|
380
|
+
floodlight_settings?: {
|
|
381
|
+
priority: number;
|
|
382
|
+
duration: number;
|
|
383
|
+
brightness?: number;
|
|
384
|
+
always_on: boolean;
|
|
385
|
+
always_on_duration: null | number;
|
|
386
|
+
};
|
|
377
387
|
light_schedule_settings?: any;
|
|
378
388
|
luma_light_threshold?: number;
|
|
379
389
|
live_view_disabled?: boolean;
|
package/lib/api/ring-types.js
CHANGED
|
@@ -5,6 +5,7 @@ exports.isWebSocketSupportedAsset = exports.disabledLocationModes = exports.Disp
|
|
|
5
5
|
var RingDeviceType;
|
|
6
6
|
(function (RingDeviceType) {
|
|
7
7
|
RingDeviceType["BaseStation"] = "hub.redsky";
|
|
8
|
+
RingDeviceType["BaseStationPro"] = "hub.kili";
|
|
8
9
|
RingDeviceType["Keypad"] = "security-keypad";
|
|
9
10
|
RingDeviceType["SecurityPanel"] = "security-panel";
|
|
10
11
|
RingDeviceType["ContactSensor"] = "sensor.contact";
|
|
@@ -79,6 +80,7 @@ var RingCameraKind;
|
|
|
79
80
|
RingCameraKind["doorbell_graham_cracker"] = "doorbell_graham_cracker";
|
|
80
81
|
RingCameraKind["lpd_v1"] = "lpd_v1";
|
|
81
82
|
RingCameraKind["lpd_v2"] = "lpd_v2";
|
|
83
|
+
RingCameraKind["lpd_v4"] = "lpd_v4";
|
|
82
84
|
RingCameraKind["jbox_v1"] = "jbox_v1";
|
|
83
85
|
RingCameraKind["stickup_cam"] = "stickup_cam";
|
|
84
86
|
RingCameraKind["stickup_cam_v3"] = "stickup_cam_v3";
|
|
@@ -108,6 +110,7 @@ exports.RingCameraModel = {
|
|
|
108
110
|
doorbell_graham_cracker: 'Doorbell Wired',
|
|
109
111
|
lpd_v1: 'Doorbell Pro',
|
|
110
112
|
lpd_v2: 'Doorbell Pro',
|
|
113
|
+
lpd_v4: 'Doorbell',
|
|
111
114
|
jbox_v1: 'Doorbell Elite',
|
|
112
115
|
stickup_cam: 'Stick Up Cam',
|
|
113
116
|
stickup_cam_v3: 'Stick Up Cam',
|
package/lib/api/util.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
interface Logger {
|
|
2
|
-
logInfo: (message: string) => void;
|
|
2
|
+
logInfo: (...message: string[]) => void;
|
|
3
3
|
logError: (message: string) => void;
|
|
4
4
|
}
|
|
5
5
|
export declare function delay(milliseconds: number): Promise<unknown>;
|
|
6
6
|
export declare function logDebug(message: any): void;
|
|
7
|
-
export declare function logInfo(message: any): void;
|
|
7
|
+
export declare function logInfo(...message: any[]): void;
|
|
8
8
|
export declare function logError(message: any): void;
|
|
9
9
|
export declare function useLogger(newLogger: Logger): void;
|
|
10
10
|
export declare function enableDebug(): void;
|
package/lib/api/util.js
CHANGED
|
@@ -31,8 +31,8 @@ function logDebug(message) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
exports.logDebug = logDebug;
|
|
34
|
-
function logInfo(message) {
|
|
35
|
-
logger.logInfo(message);
|
|
34
|
+
function logInfo(...message) {
|
|
35
|
+
logger.logInfo(...message);
|
|
36
36
|
}
|
|
37
37
|
exports.logInfo = logInfo;
|
|
38
38
|
function logError(message) {
|