Skip to content

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 when recordingSettings.mode is "motion".
  • Mutates controller state. Use dry_run=True to preview the change without applying.
set_motion_sensitivity(camera_id="65f...", sensitivity=60)
ParameterTypeRequiredDefaultDescription
camera_idstringyesProtect camera id.
sensitivityintegeryesInteger 0-100. Out-of-range values are rejected.
controllerstringno”default”Name of the UniFi controller to target. Defaults to "default".
dry_runbooleannofalsePreview the change without applying it. Returns the predicted change set.