@mega-yfue/eufy-sdk 0.2.0-beta.26 → 0.2.0-beta.27

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
@@ -6545,8 +6545,9 @@ var DOORBELL_CMD = {
6545
6545
  */
6546
6546
  QUICK_RESPONSE: 1706,
6547
6547
  /**
6548
- * Mechanical (wired) chime enable/disable — whether the doorbell drives an existing wired chime box
6549
- * (as opposed to / in addition to the wireless indoor chime, param 1702 `chimeSwitch` above). Same
6548
+ * Mechanical (wired) chime enable/disable — whether the doorbell drives an existing wired chime box,
6549
+ * the app's "existing doorbell chime" (as opposed to / in addition to the HomeBase acting as the chime,
6550
+ * param 1702 `chimeSwitch` above; toggling each switch alone wrote one parameter and named the pair). Same
6550
6551
  * 136-byte direct-binary shape as `QUICK_RESPONSE`/camera on-off: `[u32 channel][u32 value][account_id
6551
6552
  * ASCII, zero-padded to 128 bytes]`, outer P2P cmd = 1703 itself, signCode 8, on the device's own
6552
6553
  * channel. Reversed from a live capture (outer-cmd 1703, signCode 8, captured on the doorbell's
@@ -6555,6 +6556,19 @@ var DOORBELL_CMD = {
6555
6556
  * App `APP_CMD_BAT_DOORBELL_MECHANICAL_CHIME_SWITCH`.
6556
6557
  */
6557
6558
  MECHANICAL_CHIME_SWITCH: 1703,
6559
+ /**
6560
+ * Whether the HOMEBASE acts as the doorbell's chime — the app's "HomeBase as chime" switch, as opposed
6561
+ * to the wired chime box {@link DOORBELL_CMD.MECHANICAL_CHIME_SWITCH} drives. The app constant reads
6562
+ * `CHIME_SWITCH`, which is why this was long described as a separate plug-in chime; toggling that one
6563
+ * switch alone on a T8210 behind a HomeBase wrote 1702 and nothing else, and the account has no
6564
+ * plug-in chime at all. Same 136-byte direct-binary shape as
6565
+ * that sibling: `[u32 channel][u32 value][account_id ASCII, zero-padded to 128 bytes]`, outer P2P cmd
6566
+ * 1702 itself, signCode 8, on the device's own channel. Reversed from a live capture (outer-cmd 1702,
6567
+ * signCode 8, on the doorbell's `device_channel` — 2 for that unit, NOT a wire constant, always use
6568
+ * `ctx.channel`): turning OFF sent `value=0`, turning ON sent `value=1` — a plain boolean.
6569
+ * App `APP_CMD_BAT_DOORBELL_CHIME_SWITCH`.
6570
+ */
6571
+ CHIME_SWITCH: 1702,
6558
6572
  /**
6559
6573
  * Wide Dynamic Range (WDR) image switch — a video/image tone-mapping setting that widens the
6560
6574
  * exposure range in high-contrast scenes (bright sky behind a visitor, etc). SAME 136-byte
@@ -6651,19 +6665,18 @@ function parseQuickResponses(voiceList) {
6651
6665
  }
6652
6666
  var DOORBELL_MEMBERS = {
6653
6667
  /**
6654
- * The WIRELESS indoor chime — the separate plug-in unit, not the wired chime box
6655
- * `mechanicalChimeSwitch` drives. `unverified: true` with no `write` at all: the read is confirmed but
6656
- * the write frame has never been captured, so the setter is absent from the surface (a compile-time
6657
- * signal) and the intent path throws rather than reporting the doorbell as lacking the feature.
6658
- * Sharing the 1702-1719 range with its captured siblings is not evidence of a shared frame shape.
6668
+ * The HOMEBASE as the doorbell's chime — the hub plays the ring, not the wired chime box
6669
+ * `mechanicalChimeSwitch` drives. `provenance` is "verified" on our own decrypt of the app's frame,
6670
+ * not merely the param id observed live: direct-binary `[ch][value][acct]`, 1=on/0=off, the same shape
6671
+ * as its 1703 sibling — captured, not inferred from the shared param range.
6659
6672
  */
6660
6673
  chimeSwitch: {
6661
- param: 1702,
6674
+ param: DOORBELL_CMD.CHIME_SWITCH,
6662
6675
  type: "bool",
6663
6676
  kind: "boolean",
6664
- provenance: "mega",
6665
- unverified: true,
6666
- description: "Wireless indoor chime enabled (1702 CMD_BAT_DOORBELL_CHIME_SWITCH; READ confirmed on T8214 \u2014 the WRITE wire is unconfirmed, so no setter is offered rather than guessing it)."
6677
+ provenance: "verified",
6678
+ description: `The HomeBase plays the doorbell's chime (1702; the app's "HomeBase as chime" switch \u2014 write wire-confirmed live on T8210).`,
6679
+ write: (v, ctx) => setScalar(DOORBELL_CMD.CHIME_SWITCH, asBool(v) ? 1 : 0, ctx, "direct-binary")
6667
6680
  },
6668
6681
  /**
6669
6682
  * `provenance` is "verified" not "mega": the actual write wire is confirmed (
@@ -6675,7 +6688,7 @@ var DOORBELL_MEMBERS = {
6675
6688
  type: "bool",
6676
6689
  kind: "boolean",
6677
6690
  provenance: "verified",
6678
- description: "Mechanical chime enabled (1703; confirmed on T8214).",
6691
+ description: `The existing wired chime box rings (1703; the app's "existing doorbell chime" switch \u2014 confirmed on T8214, and that pairing confirmed by toggling it alone on a T8210).`,
6679
6692
  write: (v, ctx) => setScalar(DOORBELL_CMD.MECHANICAL_CHIME_SWITCH, asBool(v) ? 1 : 0, ctx, "direct-binary")
6680
6693
  },
6681
6694
  /** Same reasoning and the same capture session as {@link DOORBELL_MEMBERS.mechanicalChimeSwitch}. */