Skip to content

eufy-mega / model/capabilities / MotionActions

Type Alias: MotionActions

ts
type MotionActions = object;

Bound motion controls — the object returned by dev.motion().

Properties

aiDetectType?

ts
readonly optional aiDetectType?: number;

AI detection-type bitfield (property aiDetectType; decode with decodeAiDetectType).


detectionEnabled?

ts
readonly optional detectionEnabled?: boolean;

Whether motion (PIR) detection is enabled (property motionDetection).


sensitivity?

ts
readonly optional sensitivity?: number;

Motion sensitivity as the raw 1-indexed wire level (property motionSensitivity).


snoozeTime?

ts
readonly optional snoozeTime?: number;

Active snooze window in seconds, 0 = none (property snoozeTime).

Methods

setDetection()

ts
setDetection(on): Promise<void>;

Enable/disable motion (PIR) detection.

Parameters

on

boolean

Returns

Promise<void>


setSensitivity()

ts
setSensitivity(value): Promise<void>;

Set motion sensitivity, as the device's own raw value. The app's picker UI is 0-indexed while the device is 1-indexed (UI position 0 → 1, UI position 6 → 7). The value is passed through as-is rather than translated, because the exact range and boundaries are not fully confirmed.

Parameters

value

number

Returns

Promise<void>


setSnoozeTime()

ts
setSnoozeTime(seconds): Promise<void>;

Snooze motion/detection notifications for seconds (0 clears/cancels an active snooze).

Parameters

seconds

number

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.