@mega-yfue/eufy-sdk 0.5.0-beta.16 → 0.5.0-beta.18

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/dist/index.js CHANGED
@@ -5240,6 +5240,8 @@ var AUDIO = {
5240
5240
 
5241
5241
  // dist/model/capabilities/camera.js
5242
5242
  var CAMERA_CMD = {
5243
+ /** Camera-reported Wi-Fi signal (app `CMD_GET_WIFI_RSSI`). */
5244
+ WIFI_RSSI: 1142,
5243
5245
  /** Camera on/off. Read and write polarity depend on the family and topology. */
5244
5246
  CAMERA_ENABLE: 1035,
5245
5247
  /** Wrapped T8410 power switch on HomeBase 3. */
@@ -5519,6 +5521,14 @@ function refuseWhenDisabled(ctx, read) {
5519
5521
  throw new CameraDisabledError(ctx.name ?? ctx.serial);
5520
5522
  }
5521
5523
  var CAMERA_MEMBERS = {
5524
+ /** Reads the latest cached report and exposes no setter. */
5525
+ wifiRssi: {
5526
+ param: CAMERA_CMD.WIFI_RSSI,
5527
+ type: "number",
5528
+ kind: "scalar",
5529
+ provenance: "apk",
5530
+ description: "Camera-reported Wi-Fi signal; physical units and a quality scale are unspecified."
5531
+ },
5522
5532
  /**
5523
5533
  * The default READ is the *disable*-bit convention (1035 "0" ⇒ ON, 2001 direct); the WRITE polarity is
5524
5534
  * family-dependent — see `powerValue` / `isEnableBitPolarity`. Battery/solo cams report the state under
@@ -6223,6 +6233,9 @@ var LIGHT_MEMBERS = {
6223
6233
  * This is the switch a user changes and expects to STAY changed. {@link isOn} is a different fact:
6224
6234
  * the lamp being lit right now, driven by whichever
6225
6235
  * client is streaming — the vendor app lights it for a live view and drops it on quitting.
6236
+ *
6237
+ * The T8423 write takes the session-chosen level; level-1 int+string was verified live on a standalone
6238
+ * unit.
6226
6239
  */
6227
6240
  spotlightEnabled: {
6228
6241
  param: LIGHT_CMD.SPOTLIGHT_ENABLE,
@@ -6230,7 +6243,7 @@ var LIGHT_MEMBERS = {
6230
6243
  kind: "boolean",
6231
6244
  provenance: "verified",
6232
6245
  description: "The spotlight master switch, distinct from the on/off above \u2014 whether the spotlight may light at all. Read verified live on a T8170 (param 1403, direct polarity: 1 = enabled).",
6233
- write: (v, ctx) => directBinary(LIGHT_CMD.SPOTLIGHT_ENABLE, asBool(v) ? 1 : 0, ctx),
6246
+ write: (v, ctx) => setScalar(LIGHT_CMD.SPOTLIGHT_ENABLE, asBool(v) ? 1 : 0, ctx, ctx.deviceType === DeviceType.FLOODLIGHT_CAMERA_8423 ? "auto" : "direct-binary"),
6234
6247
  writeAs: "setEnabled"
6235
6248
  }
6236
6249
  };