eufy-security-client 3.8.0-dev.20 → 3.8.0-dev.22
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/build/http/station.js +25 -0
- package/build/http/station.js.map +1 -1
- package/build/http/types.js +1 -0
- package/build/http/types.js.map +1 -1
- package/build/p2p/session.js +1 -0
- package/build/p2p/session.js.map +1 -1
- package/build/p2p/utils.d.ts +1 -0
- package/build/p2p/utils.js +15 -4
- package/build/p2p/utils.js.map +1 -1
- package/coverage/clover.xml +2970 -2957
- package/coverage/coverage-final.json +4 -4
- package/coverage/lcov-report/index.html +18 -18
- package/coverage/lcov.info +5258 -5237
- package/package.json +1 -1
package/build/http/station.js
CHANGED
|
@@ -6374,6 +6374,29 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
6374
6374
|
property: propertyData,
|
|
6375
6375
|
});
|
|
6376
6376
|
}
|
|
6377
|
+
else if (device.isOutdoorPanAndTiltCamera()) {
|
|
6378
|
+
// Outdoor pan/tilt cams (eufyCam S4 / T8172 etc.) behind a HomeBase 3
|
|
6379
|
+
// silently drop raw CMD_DEVS_SWITCH frames. Pcap comparison against
|
|
6380
|
+
// the iOS Eufy app shows they accept the same wrapped envelope as
|
|
6381
|
+
// INDOOR_PT_CAMERA_S350 — outer CMD_SET_PAYLOAD carrying inner
|
|
6382
|
+
// CMD_INDOOR_ENABLE_PRIVACY_MODE_S350.
|
|
6383
|
+
param_value = value === true ? 0 : 1;
|
|
6384
|
+
this.p2pSession.sendCommandWithStringPayload({
|
|
6385
|
+
commandType: types_2.CommandType.CMD_SET_PAYLOAD,
|
|
6386
|
+
value: JSON.stringify({
|
|
6387
|
+
account_id: this.rawStation.member.admin_user_id,
|
|
6388
|
+
cmd: types_2.CommandType.CMD_INDOOR_ENABLE_PRIVACY_MODE_S350,
|
|
6389
|
+
mChannel: device.getChannel(),
|
|
6390
|
+
mValue3: 0,
|
|
6391
|
+
payload: {
|
|
6392
|
+
switch: param_value,
|
|
6393
|
+
},
|
|
6394
|
+
}),
|
|
6395
|
+
channel: device.getChannel(),
|
|
6396
|
+
}, {
|
|
6397
|
+
property: propertyData,
|
|
6398
|
+
});
|
|
6399
|
+
}
|
|
6377
6400
|
else {
|
|
6378
6401
|
this.p2pSession.sendCommandWithIntString({
|
|
6379
6402
|
commandType: types_2.CommandType.CMD_DEVS_SWITCH,
|
|
@@ -10840,6 +10863,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
10840
10863
|
device.isWallLightCam() ||
|
|
10841
10864
|
device.isGarageCamera() ||
|
|
10842
10865
|
device.isOutdoorPanAndTiltCamera() ||
|
|
10866
|
+
device.isBatteryDoorbellDualE340() ||
|
|
10843
10867
|
(device.isIndoorPanAndTiltCameraS350() && !this.isDeviceControlledByHomeBase())) {
|
|
10844
10868
|
this.p2pSession.sendCommandWithStringPayload({
|
|
10845
10869
|
commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD,
|
|
@@ -10908,6 +10932,7 @@ class Station extends tiny_typed_emitter_1.TypedEmitter {
|
|
|
10908
10932
|
device.isWallLightCam() ||
|
|
10909
10933
|
device.isGarageCamera() ||
|
|
10910
10934
|
device.isOutdoorPanAndTiltCamera() ||
|
|
10935
|
+
device.isBatteryDoorbellDualE340() ||
|
|
10911
10936
|
(device.isIndoorPanAndTiltCameraS350() && !this.isDeviceControlledByHomeBase())) {
|
|
10912
10937
|
this.p2pSession.sendCommandWithStringPayload({
|
|
10913
10938
|
commandType: types_2.CommandType.CMD_DOORBELL_SET_PAYLOAD,
|