set_motion_sensitivity
set_motion_sensitivity
Section titled “set_motion_sensitivity”Set a camera’s motion sensitivity (0-100).
Side effects:
- PATCHes
motionSettings.sensitivity. Higher values trigger more motion events; 0 effectively disables motion-based recording even whenrecordingSettings.modeis"motion". - Mutates controller state. Use dry_run=True to preview the change without applying.
Example
Section titled “Example”set_motion_sensitivity(camera_id="65f...", sensitivity=60)Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
camera_id | string | yes | — | Protect camera id. |
sensitivity | integer | yes | — | Integer 0-100. Out-of-range values are rejected. |
controller | string | no | ”default” | Name of the UniFi controller to target. Defaults to "default". |
dry_run | boolean | no | false | Preview the change without applying it. Returns the predicted change set. |