eufy-mega / model/capabilities / MotionActions
Type Alias: MotionActions
type MotionActions = object;Bound motion controls — the object returned by dev.motion().
Properties
aiDetectType?
readonly optional aiDetectType?: number;AI detection-type bitfield (property aiDetectType; decode with decodeAiDetectType).
detectionEnabled?
readonly optional detectionEnabled?: boolean;Whether motion (PIR) detection is enabled (property motionDetection).
sensitivity?
readonly optional sensitivity?: number;Motion sensitivity as the raw 1-indexed wire level (property motionSensitivity).
snoozeTime?
readonly optional snoozeTime?: number;Active snooze window in seconds, 0 = none (property snoozeTime).
Methods
setDetection()
setDetection(on): Promise<void>;Enable/disable motion (PIR) detection.
Parameters
on
boolean
Returns
Promise<void>
setSensitivity()
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()
setSnoozeTime(seconds): Promise<void>;Snooze motion/detection notifications for seconds (0 clears/cancels an active snooze).
Parameters
seconds
number
Returns
Promise<void>