Get a wired PoE device online without running cable back to the switch. Plug the UniFi Device Bridge into a mains socket, connect your device to its PoE port and UniFi WiFi Auto-Link handles the wireless link to your UniFi access point.
Ubiquiti UniFi Device Bridge - Plug and Play 5 GHz WiFi Bridge with GbE PoE Output - White - UDB