eufy-security-client 3.8.0-dev.19 → 3.8.0-dev.21
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/device.js +12 -2
- package/build/http/device.js.map +1 -1
- package/build/http/station.js +23 -0
- package/build/http/station.js.map +1 -1
- package/build/http/types.js +7 -1
- package/build/http/types.js.map +1 -1
- package/coverage/clover.xml +3941 -3936
- package/coverage/coverage-final.json +3 -3
- package/coverage/lcov-report/index.html +13 -13
- package/coverage/lcov.info +7957 -7945
- 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,
|