Skip to content

rename_device

Rename an adopted UniFi device (AP, switch, or gateway).

Side effects:

  • Cosmetic only: changes the display name in the controller and in tool output. No RF or traffic impact, no client disconnects.
  • Mutates controller state. Use dry_run=True to preview the change without applying.
rename_device(device_mac="aa:bb:cc:00:00:02", name="Bedroom AP")
ParameterTypeRequiredDefaultDescription
device_macstringyesDevice MAC address (from list_devices).
namestringyesNew display name. Must be non-empty.
controllerstringno”default”Name of the UniFi controller to target. Defaults to "default".
dry_runbooleannofalsePreview the change without applying it. Returns the predicted change set.