Skip to content

reconnect_client

Force a client to reconnect (kick-sta).

Side effects:

  • Issues a deauthentication frame for mac on its current AP. The client immediately disconnects and most clients re-associate automatically within seconds.
  • The block-list is not modified; this is a transient nudge.
  • Mutates controller state. Use dry_run=True to preview the change without applying.
reconnect_client(mac="aa:bb:cc:00:00:01")
ParameterTypeRequiredDefaultDescription
macstringyesClient MAC address (e.g. "aa:bb:cc:00:00:01").
controllerstringno”default”Name of the UniFi controller to target. Defaults to "default".
dry_runbooleannofalsePreview the change without applying it. Returns the predicted change set.