Skip to content

@mega-yfue/eufy-sdk / ArmingMode

Type Alias: ArmingMode

ts
type ArmingMode = typeof ArmingMode[keyof typeof ArmingMode];

The guard modes ArmingActions can SET — the three whose write was captured byte-exact against a real station. ArmingMode is both the const value-object (ArmingMode.home) and the union type of its values, so callers pass the named constant: setMode(ArmingMode.home).

Deliberately NARROWER than the set a device may report. The other six modes are ones the app itself defines and the mode read still names them, but no capture shows one being SENT — and on a fire-and-forget wire a wrong one looks exactly like success. Leaving them out of this union is the compile-time half of the refusal; mode's published argument and the generated rejection are the runtime half.

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.