@mega-yfue/eufy-sdk 0.4.0-beta.12 → 0.4.0-beta.13

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
@@ -5743,7 +5743,7 @@ var SIREN_CMD = {
5743
5743
  ALARM_TEST: 1826,
5744
5744
  /** Manually stop a sounding alarm (app `APP_CMD_SIREN_SENSOR_MANUAL_STOP_ALARM`). */
5745
5745
  MANUAL_STOP: 1871,
5746
- /** Station-family HomeBase duration alarm, verified live on T8010 (app `SET_TONE_FILE`). */
5746
+ /** Station-family HomeBase duration alarm, verified live on T8010 and T8030 (app `SET_TONE_FILE`). */
5747
5747
  HOMEBASE_TONE: 1201,
5748
5748
  /** HomeBase alarm volume percentage (app `CMD_SET_HUB_SPK_VOLUME`). */
5749
5749
  HUB_SPK_VOLUME: 1235,
@@ -5758,7 +5758,7 @@ var SirenAlarmDuration = { Min1: 60, Min5: 300, Min10: 600, Min15: 900 };
5758
5758
  var HubAlarmTone = { Tone1: 1, Tone2: 2 };
5759
5759
  var HUB_ALARM_EVIDENCE = [SIREN_CMD.HUB_ALARM_TONE, 1282];
5760
5760
  function isStationAlarmOutput(ctx) {
5761
- return ctx.deviceType === DeviceType.STATION;
5761
+ return ctx.deviceType === DeviceType.STATION || ctx.deviceType === DeviceType.HB3;
5762
5762
  }
5763
5763
  function isEvidencedStationAlarm(ctx) {
5764
5764
  return isStationAlarmOutput(ctx) && HUB_ALARM_EVIDENCE.some((param) => ctx.paramIds.has(param));