@mega-yfue/eufy-sdk / ArmingMode
Variable: ArmingMode
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
readonly away: "away" = "away";Armed — full protection, nobody home (wire value 0).
disarmed
readonly disarmed: "disarmed" = "disarmed";Disarmed — no alarms; sensors still report state (wire value 63).
home
readonly home: "home" = "home";Armed for occupancy — reduced/perimeter protection while home (wire value 1).