@homebridge-eufy-security/eufy-security-client 3.7.2-dev.5 → 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
|
@@ -49,6 +49,7 @@ export interface P2PClientProtocolEvents {
|
|
|
49
49
|
"garage door status": (channel: number, doorId: number, status: number) => void;
|
|
50
50
|
"storage info hb3": (channel: number, storageInfo: StorageInfoBodyHB3) => void;
|
|
51
51
|
"sequence error": (channel: number, command: number, sequence: number, serialnumber: string) => void;
|
|
52
|
+
"hub notify update": () => void;
|
|
52
53
|
}
|
|
53
54
|
export interface P2PQueueMessage {
|
|
54
55
|
p2pCommandType: InternalP2PCommandType;
|
package/build/p2p/session.js
CHANGED
|
@@ -2376,8 +2376,17 @@ class P2PClientProtocol extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
2376
2376
|
this.emit("parameter", message.channel, types_1.CommandType.CMD_SMARTLOCK_QUERY_BATTERY_LEVEL, payload.slBattery);
|
|
2377
2377
|
this.emit("parameter", message.channel, types_1.CommandType.CMD_SMARTLOCK_QUERY_STATUS, payload.slState);
|
|
2378
2378
|
}
|
|
2379
|
+
else if (json.cmd === types_1.CommandType.CMD_HUB_NOTIFY_UPDATE) {
|
|
2380
|
+
logging_1.rootP2PLogger.debug(`Handle DATA ${types_1.P2PDataType[message.dataType]} - CMD_NOTIFY_PAYLOAD - Homebase notify update`, {
|
|
2381
|
+
stationSN: this.rawStation.station_sn,
|
|
2382
|
+
commandIdName: types_1.CommandType[json.cmd],
|
|
2383
|
+
commandId: json.cmd,
|
|
2384
|
+
message: data.toString(),
|
|
2385
|
+
});
|
|
2386
|
+
this.emit("hub notify update");
|
|
2387
|
+
}
|
|
2379
2388
|
else {
|
|
2380
|
-
logging_1.rootP2PLogger.debug(`Handle DATA ${types_1.P2PDataType[message.dataType]} - CMD_NOTIFY_PAYLOAD - Not implemented`, {
|
|
2389
|
+
logging_1.rootP2PLogger.debug(`Handle DATA ${types_1.P2PDataType[message.dataType]} - CMD_NOTIFY_PAYLOAD - Not implemented 1`, {
|
|
2381
2390
|
stationSN: this.rawStation.station_sn,
|
|
2382
2391
|
commandIdName: types_1.CommandType[json.cmd],
|
|
2383
2392
|
commandId: json.cmd,
|
|
@@ -2842,8 +2851,17 @@ class P2PClientProtocol extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
2842
2851
|
this.emit("storage info hb3", message.channel, payload.body);
|
|
2843
2852
|
}
|
|
2844
2853
|
}
|
|
2854
|
+
else if (json.cmd === types_1.CommandType.CMD_HUB_NOTIFY_UPDATE) {
|
|
2855
|
+
logging_1.rootP2PLogger.debug(`Handle DATA ${types_1.P2PDataType[message.dataType]} - CMD_NOTIFY_PAYLOAD - Homebase notify update`, {
|
|
2856
|
+
stationSN: this.rawStation.station_sn,
|
|
2857
|
+
commandIdName: types_1.CommandType[json.cmd],
|
|
2858
|
+
commandId: json.cmd,
|
|
2859
|
+
message: data.toString(),
|
|
2860
|
+
});
|
|
2861
|
+
this.emit("hub notify update");
|
|
2862
|
+
}
|
|
2845
2863
|
else {
|
|
2846
|
-
logging_1.rootP2PLogger.debug(`Handle DATA ${types_1.P2PDataType[message.dataType]} - CMD_NOTIFY_PAYLOAD - Not implemented`, {
|
|
2864
|
+
logging_1.rootP2PLogger.debug(`Handle DATA ${types_1.P2PDataType[message.dataType]} - CMD_NOTIFY_PAYLOAD - Not implemented 2`, {
|
|
2847
2865
|
stationSN: this.rawStation.station_sn,
|
|
2848
2866
|
commandIdName: types_1.CommandType[json.cmd],
|
|
2849
2867
|
commandId: json.cmd,
|