Check this app out if you're switching to Unifi. I use that one along with this one to feed a combined WiFi presence sensor.