Skip to content

@mega-yfue/eufy-sdk / ArmingMode

Variable: ArmingMode

ts
const ArmingMode: object;

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.

Type Declaration

away

ts
readonly away: "away" = "away";

Armed — full protection, nobody home (wire value 0).

disarmed

ts
readonly disarmed: "disarmed" = "disarmed";

Disarmed — no alarms; sensors still report state (wire value 63).

home

ts
readonly home: "home" = "home";

Armed for occupancy — reduced/perimeter protection while home (wire value 1).

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.