I recently installed a Unifi Dream Machine Pro for a client and wanted to rename it in the ui.com portal. I tried to rename the site in the controller settings but it wouldn’t update the name in the ui.com portal controller list.
Here is now to rename the controller in the unifi.ui.com controller list
Click on the controller device.

Click on Settings.

Click on Advanced.

Change the Device Name and press ‘Confirm Changes’.
Note this does not rename the actual hardware device or the site name on the controller. It only updates the device name in unifi.ui.com so you can identify it in the list of controllers.

Go back to unifi.ui.com and refresh the page. The controller name will now update and show the new setting.

Hope you found this useful!