@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.