Python script to check if someone is connected to your UniFi wireless network and update a Hubitat Elevation Virtual Switch, which is synced with a Virtual Presence Sensor via Rule Machine.
Instructions: https://community.hubitat.com/t/release-unifi-presence-sensor/5669