Add AP restart switch/button for UniFi integration

It would be great to add switch/button to UniFi integration (UniFi Network - Home Assistant), which can do soft restart of the UniFi AP device. Some time there are troubles with AP clients caused by some internal AP problems, which can be solved by AP restart. At the moment it is possible to do it only via UniFi App or UniFi web portal. HA UniFi integration shows AP but without any sensors or switches. Some basic AP info, like Wi-Fi channel, number of clients and their names, AP mac address, Wi-Fi experience, would also be added as AP attributes.

Was just searching to see how this could be done and found this. Would also love to see this!

For anybody finding this in the future: As a workaround you can connect to the AP by SSH and issue the “reboot” command.

Not sure what the ask is here, as I have a “restart” button on each AP already in HA:

image

Using the 2024.9.1 version of HA.