homebridge-eufy-security 2.2.0-beta.9 → 2.2.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 +14 -31
- package/README.md +25 -26
- package/dist/accessories/CameraAccessory.d.ts +13 -23
- package/dist/accessories/CameraAccessory.d.ts.map +1 -1
- package/dist/accessories/CameraAccessory.js +112 -324
- package/dist/accessories/CameraAccessory.js.map +1 -1
- package/dist/accessories/Device.d.ts.map +1 -1
- package/dist/accessories/Device.js +0 -15
- package/dist/accessories/Device.js.map +1 -1
- package/dist/accessories/DoorbellCameraAccessory.d.ts.map +1 -1
- package/dist/accessories/DoorbellCameraAccessory.js +4 -12
- package/dist/accessories/DoorbellCameraAccessory.js.map +1 -1
- package/dist/accessories/StationAccessory.d.ts +0 -1
- package/dist/accessories/StationAccessory.d.ts.map +1 -1
- package/dist/accessories/StationAccessory.js +0 -26
- package/dist/accessories/StationAccessory.js.map +1 -1
- package/dist/config.d.ts +0 -2
- package/dist/config.d.ts.map +1 -1
- package/dist/controller/LocalLivestreamManager.d.ts +5 -2
- package/dist/controller/LocalLivestreamManager.d.ts.map +1 -1
- package/dist/controller/LocalLivestreamManager.js +47 -4
- package/dist/controller/LocalLivestreamManager.js.map +1 -1
- package/dist/controller/SnapshotManager.d.ts +0 -1
- package/dist/controller/SnapshotManager.d.ts.map +1 -1
- package/dist/controller/SnapshotManager.js +1 -23
- package/dist/controller/SnapshotManager.js.map +1 -1
- package/dist/controller/streamingDelegate.d.ts +2 -4
- package/dist/controller/streamingDelegate.d.ts.map +1 -1
- package/dist/controller/streamingDelegate.js +54 -12
- package/dist/controller/streamingDelegate.js.map +1 -1
- package/dist/platform.d.ts +0 -3
- package/dist/platform.d.ts.map +1 -1
- package/dist/platform.js +11 -34
- package/dist/platform.js.map +1 -1
- package/dist/utils/configTypes.d.ts +2 -8
- package/dist/utils/configTypes.d.ts.map +1 -1
- package/dist/utils/ffmpeg.d.ts +2 -28
- package/dist/utils/ffmpeg.d.ts.map +1 -1
- package/dist/utils/ffmpeg.js +29 -308
- package/dist/utils/ffmpeg.js.map +1 -1
- package/homebridge-ui/public/3rdpartylicenses.txt +5 -190
- package/homebridge-ui/public/assets/devices/4g_lte_starlight_large.jpg +0 -0
- package/homebridge-ui/public/assets/devices/garage_camera_t8452_large.jpg +0 -0
- package/homebridge-ui/public/assets/devices/smartdrop_t8790_large.jpg +0 -0
- package/homebridge-ui/public/assets/devices/smartsafe_s10_t7400_large.jpg +0 -0
- package/homebridge-ui/public/assets/devices/smartsafe_s12_t7401_large.jpg +0 -0
- package/homebridge-ui/public/assets/devices/walllight_s100_large.jpg +0 -0
- package/homebridge-ui/public/index.html +2 -2
- package/homebridge-ui/public/main.135fd7fee02d0e10.js +1 -0
- package/homebridge-ui/public/styles.e73a5b881049ed9e.css +5 -0
- package/homebridge-ui/server.js +19 -17
- package/homebridge-ui/server.js.map +1 -1
- package/package.json +5 -5
- package/dist/controller/recordingDelegate.d.ts +0 -29
- package/dist/controller/recordingDelegate.d.ts.map +0 -1
- package/dist/controller/recordingDelegate.js +0 -182
- package/dist/controller/recordingDelegate.js.map +0 -1
- package/dist/utils/EufyClientInteractor.d.ts +0 -36
- package/dist/utils/EufyClientInteractor.d.ts.map +0 -1
- package/dist/utils/EufyClientInteractor.js +0 -357
- package/dist/utils/EufyClientInteractor.js.map +0 -1
- package/dist/utils/experimental.d.ts +0 -4
- package/dist/utils/experimental.d.ts.map +0 -1
- package/dist/utils/experimental.js +0 -49
- package/dist/utils/experimental.js.map +0 -1
- package/dist/utils/interfaces.d.ts +0 -13
- package/dist/utils/interfaces.d.ts.map +0 -1
- package/dist/utils/interfaces.js +0 -12
- package/dist/utils/interfaces.js.map +0 -1
- package/homebridge-ui/plugin/utils/EufyClientInteractor.d.ts +0 -36
- package/homebridge-ui/plugin/utils/EufyClientInteractor.d.ts.map +0 -1
- package/homebridge-ui/plugin/utils/EufyClientInteractor.js +0 -357
- package/homebridge-ui/plugin/utils/EufyClientInteractor.js.map +0 -1
- package/homebridge-ui/plugin/utils/experimental.d.ts +0 -4
- package/homebridge-ui/plugin/utils/experimental.d.ts.map +0 -1
- package/homebridge-ui/plugin/utils/experimental.js +0 -49
- package/homebridge-ui/plugin/utils/experimental.js.map +0 -1
- package/homebridge-ui/plugin/utils/interfaces.d.ts +0 -13
- package/homebridge-ui/plugin/utils/interfaces.d.ts.map +0 -1
- package/homebridge-ui/plugin/utils/interfaces.js +0 -12
- package/homebridge-ui/plugin/utils/interfaces.js.map +0 -1
- package/homebridge-ui/plugin/utils/logger.d.ts +0 -12
- package/homebridge-ui/plugin/utils/logger.d.ts.map +0 -1
- package/homebridge-ui/plugin/utils/logger.js +0 -36
- package/homebridge-ui/plugin/utils/logger.js.map +0 -1
- package/homebridge-ui/public/main.3b6cc7e30d4f0a21.js +0 -1
- package/homebridge-ui/public/styles.e02689e7df4304da.css +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,46 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
You can find the complete detailled changelog for every beta release [here](https://github.com/homebridge-eufy-security/plugin/releases).
|
|
4
4
|
|
|
5
|
-
## 2.
|
|
5
|
+
## 2.1.4 (2022-12-24)
|
|
6
6
|
|
|
7
|
-
###
|
|
7
|
+
### Changed
|
|
8
8
|
|
|
9
|
-
-
|
|
9
|
+
- Updated to latest eufy-security-client 2.4.0
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
### Fixed
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
- Changed login process to use new v2 api (due to changes made by eufy recently)
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
- Experimental Mode
|
|
17
|
-
- Experimental Mode Option: Enabling RTSP streaming on all devices (e.g. Doorbells can now stream via RTSP)
|
|
18
|
-
- Plugin will show warnings if it encounters a captcha or 2FA request while logging in.
|
|
19
|
-
- Setting to crop image to requested resolution. This might help with streaming issues when the HomeKit Controller stops the stream due to wrong stream configuration.
|
|
20
|
-
- Added additional audio settings in advanced video configuration
|
|
21
|
-
- Setting to choose custom path to ffmpeg executable.
|
|
22
|
-
- Config UI will now warn the user if a setting might decrease battery life drastically
|
|
23
|
-
- Option to set connection method in eufy-security-client to 'local'
|
|
24
|
-
- Support for Homebase 3, Eufy Camera 3 and Eufy Camera 3C
|
|
15
|
+
## 2.1.3
|
|
25
16
|
|
|
26
|
-
###
|
|
17
|
+
### Fixed
|
|
27
18
|
|
|
28
|
-
-
|
|
29
|
-
|
|
30
|
-
- Overhauled design of advanced video config
|
|
31
|
-
- Improved verbose output for snapshot and ffmpeg processes
|
|
32
|
-
- Added explanatory description to snapshot handling method.
|
|
33
|
-
- Updated to latest dependency: eufy-security-client
|
|
34
|
-
- Warn the user if multiple cameras are connected through the same station and limit critical options for these cameras (snapshot method and HKSV)
|
|
35
|
-
- Log errors in command results from eufy-security-client library to homebridge
|
|
36
|
-
- Removed overhead in stream processing improve performance
|
|
19
|
+
- Due to active blocking of the plugin by eufy the login was temporarily not possible. Thanks to @baeuric and @schliemann (and of course @bropat) for the fix.
|
|
20
|
+
Learn more here: #201 and [this thread](https://github.com/bropat/eufy-security-client/issues/242)
|
|
37
21
|
|
|
38
|
-
###
|
|
22
|
+
### Changed
|
|
39
23
|
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
- Bug that caused a crash with node version prior to v14.18
|
|
24
|
+
- New Login field "Device Name" which sets the device type with which the api calls to the eufy cloud are simulated. If left blank a random device will be chosen.
|
|
25
|
+
- Updated eufy-security-client to latest version 2.2.3
|
|
43
26
|
|
|
44
|
-
## 2.1.0 (
|
|
27
|
+
## 2.1.0 (2022-09-03)
|
|
45
28
|
|
|
46
29
|
### Added
|
|
47
30
|
|
|
@@ -97,7 +80,7 @@ You can find the complete detailled changelog for every beta release [here](http
|
|
|
97
80
|
- Fix issue that streams were only rendered in 640x480 - see #46
|
|
98
81
|
- Fixed smartlocks - see #110
|
|
99
82
|
- Fixed occasional EPIPE Error when streaming - see #14
|
|
100
|
-
-
|
|
83
|
+
- Possible memory leak caused by not correctly released EventListeners
|
|
101
84
|
|
|
102
85
|
## 2.0.1 (20.06.2022)
|
|
103
86
|
|
package/README.md
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
|
|
8
8
|
Homebridge plugin to control certain Eufy Security devices
|
|
9
9
|
|
|
10
|
-
[](https://www.npmjs.com/package/homebridge-eufy-security)
|
|
11
11
|
[](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)
|
|
12
12
|
[](https://www.npmjs.com/package/homebridge-eufy-security)
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
[](https://github.com/homebridge-eufy-security/plugin/wiki/Beta-Version)
|
|
14
|
+
[](https://github.com/homebridge-eufy-security/plugin/wiki/RC---Beta-Version)
|
|
15
|
+
[](https://github.com/homebridge-eufy-security/plugin/wiki/RC---Beta-Version)
|
|
16
16
|
[](https://discord.com/channels/432663330281226270/876907345962229791)
|
|
17
17
|
|
|
18
18
|
</span>
|
|
@@ -20,32 +20,31 @@ Homebridge plugin to control certain Eufy Security devices
|
|
|
20
20
|
### Plugin Information
|
|
21
21
|
|
|
22
22
|
- This plugin allows you to view and control your Eufy Security devices within HomeKit. The plugin:
|
|
23
|
-
- requires your Eufy Security credentials (we recommend to use [Family/Guest Account](https://support.eufylife.com/s/article/Share-Your-eufySecurity-Devices-With-Your-Family) dedicated to the plugin)
|
|
24
|
-
- we support Eufy Security OTP validation by email
|
|
23
|
+
- requires your Eufy Security credentials **(we highly recommend to use [Family/Guest Account](https://support.eufylife.com/s/article/Share-Your-eufySecurity-Devices-With-Your-Family) dedicated to the plugin)**
|
|
24
|
+
- we support Eufy Security OTP validation by email and captcha
|
|
25
25
|
|
|
26
26
|
### Prerequisites
|
|
27
27
|
|
|
28
|
-
- To use this plugin, you will need to already have [Homebridge](https://homebridge.io) (at least v1.
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
- [Changelog](https://github.com/homebridge-eufy-security/plugin/blob/master/CHANGELOG.md)
|
|
28
|
+
- To use this plugin, you will need to already have [Homebridge](https://homebridge.io) (at least v1.4.1) installed. Refer to the links for more information and installation instructions.
|
|
29
|
+
- For configuration Homebridge UI is recommenend. If you have 2FA enabled it is mandatory.
|
|
30
|
+
- It is recommended to use the current LTS version of Node, currently v16.
|
|
31
|
+
|
|
32
|
+
#### Setup
|
|
33
|
+
* [Installation](https://github.com/homebridge-eufy-security/plugin/wiki/Installation-and-Configuration#installation)
|
|
34
|
+
* [Configuration](https://github.com/homebridge-eufy-security/plugin/wiki/Installation-and-Configuration#configuration)
|
|
35
|
+
* [Bridged and Unbridged Mode](https://github.com/homebridge-eufy-security/plugin/wiki/Bridged-and-Unbridged-Mode-and-Problems)
|
|
36
|
+
* [Beta Version](https://github.com/homebridge-eufy-security/plugin/wiki/Beta-Version)
|
|
37
|
+
* [Uninstallation](https://github.com/homebridge-eufy-security/plugin/wiki/Uninstallation)
|
|
38
|
+
|
|
39
|
+
#### Features
|
|
40
|
+
* [Streaming](https://github.com/homebridge-eufy-security/plugin/wiki/Streaming-Settings)
|
|
41
|
+
* [HomeKit Secure Video](https://github.com/homebridge-eufy-security/plugin/wiki/HomeKit-Secure-Video)
|
|
42
|
+
|
|
43
|
+
#### Help
|
|
44
|
+
* [Basic Troubleshooting](https://github.com/homebridge-eufy-security/plugin/wiki/Basic-Troubleshooting)
|
|
45
|
+
* [Common Issues](https://github.com/homebridge-eufy-security/plugin/wiki/Common-Issues)
|
|
46
|
+
* [Support Request](https://github.com/homebridge-eufy-security/plugin/issues/new/choose)
|
|
47
|
+
* [Changelog](https://github.com/homebridge-eufy-security/plugin/blob/master/CHANGELOG.md)
|
|
49
48
|
|
|
50
49
|
### Supporting
|
|
51
50
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Service, PlatformAccessory, CharacteristicValue
|
|
1
|
+
import { Service, PlatformAccessory, CharacteristicValue } from 'homebridge';
|
|
2
2
|
import { EufySecurityPlatform } from '../platform';
|
|
3
3
|
import { DeviceAccessory } from './Device';
|
|
4
4
|
import { Camera } from 'eufy-security-client';
|
|
5
5
|
import { StreamingDelegate } from '../controller/streamingDelegate';
|
|
6
6
|
import { CameraConfig } from '../utils/configTypes';
|
|
7
|
-
import { RecordingDelegate } from '../controller/recordingDelegate';
|
|
8
7
|
/**
|
|
9
8
|
* Platform Accessory
|
|
10
9
|
* An instance of this class is created for each accessory your platform registers
|
|
@@ -15,25 +14,19 @@ export declare class CameraAccessory extends DeviceAccessory {
|
|
|
15
14
|
protected CameraService: Service;
|
|
16
15
|
readonly cameraConfig: CameraConfig;
|
|
17
16
|
protected streamingDelegate: StreamingDelegate | null;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
setExperimentalMode(): Promise<void>;
|
|
17
|
+
private motionTimeout?;
|
|
18
|
+
constructor(platform: EufySecurityPlatform, accessory: PlatformAccessory, eufyDevice: Camera);
|
|
19
|
+
private setupButtonService;
|
|
20
|
+
private setupEnableButton;
|
|
21
|
+
private setupMotionButton;
|
|
22
|
+
private setupLightButton;
|
|
25
23
|
private getCameraConfig;
|
|
26
|
-
|
|
24
|
+
private cameraFunction;
|
|
27
25
|
handleEventSnapshotsActiveGet(): Promise<CharacteristicValue>;
|
|
28
26
|
/**
|
|
29
27
|
* Handle requests to set the "Event Snapshots Active" characteristic
|
|
30
28
|
*/
|
|
31
29
|
handleEventSnapshotsActiveSet(value: any): void;
|
|
32
|
-
handlePeriodicSnapshotsActiveGet(): Promise<CharacteristicValue>;
|
|
33
|
-
/**
|
|
34
|
-
* Handle requests to set the "Periodic Snapshots Active" characteristic
|
|
35
|
-
*/
|
|
36
|
-
handlePeriodicSnapshotsActiveSet(value: any): void;
|
|
37
30
|
/**
|
|
38
31
|
* Handle requests to get the current value of the "HomeKit Camera Active" characteristic
|
|
39
32
|
*/
|
|
@@ -58,15 +51,12 @@ export declare class CameraAccessory extends DeviceAccessory {
|
|
|
58
51
|
* Handle requests to set the "HomeKit Camera Active" characteristic
|
|
59
52
|
*/
|
|
60
53
|
handleHomeKitNightVisionSet(value: any): Promise<void>;
|
|
61
|
-
private
|
|
54
|
+
private setupMotionFunction;
|
|
62
55
|
handleMotionDetectedGet(): Promise<CharacteristicValue>;
|
|
63
|
-
private
|
|
64
|
-
handleEnableGet(): Promise<CharacteristicValue>;
|
|
56
|
+
private onDeviceMotionDetectedPushNotification;
|
|
65
57
|
handleManuallyDisabledGet(): Promise<CharacteristicValue>;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
handleLightOnGet(): Promise<CharacteristicValue>;
|
|
70
|
-
handleLightOnSet(value: CharacteristicValue): Promise<void>;
|
|
58
|
+
private setupSwitchService;
|
|
59
|
+
private getPropertyValue;
|
|
60
|
+
private setPropertyValue;
|
|
71
61
|
}
|
|
72
62
|
//# sourceMappingURL=CameraAccessory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CameraAccessory.d.ts","sourceRoot":"","sources":["../../src/plugin/accessories/CameraAccessory.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"CameraAccessory.d.ts","sourceRoot":"","sources":["../../src/plugin/accessories/CameraAccessory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAE7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAM3C,OAAO,EAAE,MAAM,EAAiD,MAAM,sBAAsB,CAAC;AAC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