@homebridge-eufy-security/eufy-security-client 3.7.2-dev.6 → 3.8.0-dev.7
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/README.md +27 -0
- package/build/eufysecurity.d.ts +2 -0
- package/build/eufysecurity.js +27 -0
- package/build/eufysecurity.js.map +1 -1
- package/build/http/api.d.ts +2 -0
- package/build/http/api.js +39 -6
- package/build/http/api.js.map +1 -1
- package/build/http/device.d.ts +5 -0
- package/build/http/device.js +35 -1
- package/build/http/device.js.map +1 -1
- package/build/http/interfaces.d.ts +1 -0
- package/build/http/station.d.ts +1 -0
- package/build/http/station.js +7 -3
- package/build/http/station.js.map +1 -1
- package/build/http/types.d.ts +4 -0
- package/build/http/types.js +217 -1
- package/build/http/types.js.map +1 -1
- package/build/p2p/interfaces.d.ts +1 -0
- package/build/p2p/session.js +20 -2
- package/build/p2p/session.js.map +1 -1
- package/build/p2p/types.d.ts +1 -0
- package/build/p2p/types.js +1 -0
- package/build/p2p/types.js.map +1 -1
- package/build/p2p/utils.js +1 -0
- package/build/p2p/utils.js.map +1 -1
- package/build/push/service.js +1 -1
- package/build/push/service.js.map +1 -1
- package/coverage/clover.xml +10075 -10031
- package/coverage/coverage-final.json +26 -26
- package/coverage/lcov-report/index.html +59 -59
- package/coverage/lcov.info +16860 -16762
- package/package.json +5 -1
- package/scripts/cut_release.sh +2 -0
- package/scripts/generate_changelog.sh +93 -0
|
@@ -204,6 +204,7 @@ export interface StationEvents {
|
|
|
204
204
|
"sensor status": (station: Station, channel: number, status: number) => void;
|
|
205
205
|
"garage door status": (station: Station, channel: number, doorId: number, status: number) => void;
|
|
206
206
|
"storage info hb3": (station: Station, channel: number, storageInfo: StorageInfoBodyHB3) => void;
|
|
207
|
+
"hub notify update": (station: Station) => void;
|
|
207
208
|
}
|
|
208
209
|
export interface DeviceEvents {
|
|
209
210
|
"property changed": (device: Device, name: string, value: PropertyValue, ready: boolean) => void;
|
package/build/http/station.d.ts
CHANGED
|
@@ -375,6 +375,7 @@ export declare class Station extends TypedEmitter<StationEvents> {
|
|
|
375
375
|
getLockParameters(): void;
|
|
376
376
|
getLockStatus(): void;
|
|
377
377
|
private onSequenceError;
|
|
378
|
+
private onHubNotifyUpdate;
|
|
378
379
|
updateUsername(device: Device, username: string, passwordId: string): void;
|
|
379
380
|
setOpenMethod(device: Device, value: number): void;
|
|
380
381
|
setMotionActivatedPrompt(device: Device, value: boolean): void;
|
package/build/http/station.js
CHANGED
|
@@ -80,6 +80,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
80
80
|
this.p2pSession.on("garage door status", (channel, doorId, status) => this.onGarageDoorStatus(channel, doorId, status));
|
|
81
81
|
this.p2pSession.on("storage info hb3", (channel, storageInfo) => this.onStorageInfoHB3(channel, storageInfo));
|
|
82
82
|
this.p2pSession.on("sequence error", (channel, command, sequence, serialnumber) => this.onSequenceError(channel, command, sequence, serialnumber));
|
|
83
|
+
this.p2pSession.on("hub notify update", () => this.onHubNotifyUpdate());
|
|
83
84
|
}
|
|
84
85
|
initializeState() {
|
|
85
86
|
this.update(this.rawStation);
|
|
@@ -6592,7 +6593,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
6592
6593
|
command: commandData,
|
|
6593
6594
|
});
|
|
6594
6595
|
}
|
|
6595
|
-
else if (device.isOutdoorPanAndTiltCamera()) {
|
|
6596
|
+
else if (device.isOutdoorPanAndTiltCamera() || device.isBatteryDoorbellDualE340() || device.isFloodLightT8425()) {
|
|
6596
6597
|
logging_1.rootHTTPLogger.debug(`Station start livestream - sending command using CMD_DOORBELL_SET_PAYLOAD (1)`, {
|
|
6597
6598
|
stationSN: this.getSerial(),
|
|
6598
6599
|
deviceSN: device.getSerial(),
|
|
@@ -6644,8 +6645,8 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
6644
6645
|
command: commandData,
|
|
6645
6646
|
});
|
|
6646
6647
|
}
|
|
6647
|
-
else if ((
|
|
6648
|
-
|
|
6648
|
+
else if ((device.isIndoorPanAndTiltCameraS350() || device.isIndoorCamC24()) &&
|
|
6649
|
+
this.isDeviceControlledByHomeBase()) {
|
|
6649
6650
|
logging_1.rootHTTPLogger.debug(`Station start livestream - sending command using CMD_SET_PAYLOAD`, {
|
|
6650
6651
|
stationSN: this.getSerial(),
|
|
6651
6652
|
deviceSN: device.getSerial(),
|
|
@@ -15532,6 +15533,9 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
15532
15533
|
serialnumber: serialnumber,
|
|
15533
15534
|
});
|
|
15534
15535
|
}
|
|
15536
|
+
onHubNotifyUpdate() {
|
|
15537
|
+
this.emit("hub notify update", this);
|
|
15538
|
+
}
|
|
15535
15539
|
updateUsername(device, username, passwordId) {
|
|
15536
15540
|
const commandData = {
|
|
15537
15541
|
name: types_1.CommandName.DeviceUpdateUsername,
|