Skip to content

eufy-mega / model/capabilities / ArmingActions

Type Alias: ArmingActions

ts
type ArmingActions = object;

Bound guard-mode controls — the object returned by dev.arming().

Properties

mode?

ts
readonly optional mode?: number;

Current guard mode as its raw ArmingMode enum value (property armingMode).

Methods

setAlarmDelayConfig()

ts
setAlarmDelayConfig(mode, config): Promise<void>;

Write the FULL per-mode alarm/arm-delay configuration. The device accepts the whole config as one write, not a single duration field, so a partial update is not possible. An expert/advanced API: the caller is responsible for supplying devices/sirenSensorAction (and the countDownAlarm/countDownArm entries you're NOT changing) from a value they've independently read/captured for this mode — there is no known GET to fetch it automatically, and a wrong guess here can silently misconfigure which sensors arm/trigger for real.

Parameters

mode

ArmingMode

config

AlarmDelayConfig

Returns

Promise<void>


setMode()

ts
setMode(mode): Promise<void>;

Set the guard mode with an ArmingMode constant (e.g. setMode(ArmingMode.home)).

Parameters

mode

ArmingMode

Returns

Promise<void>

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