@mega-yfue/eufy-sdk / ArmingMode
Variable: ArmingMode
const ArmingMode: object;The guard modes setMode can SET — every mode a station reports, all nine confirmed against real hardware. 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).
The domain of setMode (cmd 1224) alone. The alarm-delay write (cmd 1255) carries its own mode integer on a separate wire and takes AlarmDelayMode, which stays NARROWER — evidence for one command is not evidence for the other, and 1255 still has no capture beyond its byte-captured three.
A mode belongs here only once its write is confirmed against real hardware, because a fire-and-forget wire makes a wrong mode look exactly like success; ARMING_MODE_WIRE carries the per-value evidence. The union is also what ARMING_MODE_WIRE is keyed by, so the table cannot name a mode this does not.
Type Declaration
away
readonly away: "away" = "away";Armed — full protection, nobody home (wire value 0).
custom1
readonly custom1: "custom1" = "custom1";Custom 1 — a user-defined posture configured in the app (wire value 3).
custom2
readonly custom2: "custom2" = "custom2";Custom 2 — a user-defined posture configured in the app (wire value 4).
custom3
readonly custom3: "custom3" = "custom3";Custom 3 — a user-defined posture configured in the app (wire value 5).
disarmed
readonly disarmed: "disarmed" = "disarmed";Disarmed — no alarms; sensors still report state (wire value 63).
geo
readonly geo: "geo" = "geo";Geofenced — the station follows the app's location-based rules (wire value 47).
home
readonly home: "home" = "home";Armed for occupancy — reduced/perimeter protection while home (wire value 1).
off
readonly off: "off" = "off";Off — the station's alarm system is switched off entirely (wire value 6).
schedule
readonly schedule: "schedule" = "schedule";Scheduled — the station follows the timetable configured in the app (wire value 2).