turn your pi1, pi2, or pi3 into a ubiquiti controller
make
Setting up pi as a ubiquiti controller tutorial http://www.lowefamily.com.au/2016/06/02/installing-ubiquiti-unifi-controller-5-on-raspberry-pi/3/
Setup pi to log ubiquiti syslog http://vbrainstorm.com/deploying-ubiquiti-unifi-aps-with-a-raspberrypi-2-controller/