eufy-mega / model/capabilities / ArmingActions
Type Alias: ArmingActions
type ArmingActions = object;Bound guard-mode controls — the object returned by dev.arming().
Properties
mode?
readonly optional mode?: number;Current guard mode as its raw ArmingMode enum value (property armingMode).
Methods
setAlarmDelayConfig()
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
config
Returns
Promise<void>
setMode()
setMode(mode): Promise<void>;Set the guard mode with an ArmingMode constant (e.g. setMode(ArmingMode.home)).
Parameters
mode
Returns
Promise<void>