Created At

Apr 23, 2020

Last Update

May 04, 2020


HC 3 Lite, Z-box Hub, Yubii Home Pro, Yubii Home, Venture WISE, HC 3





Type Quick App

It is a Quick App to track presence based on the status of the device's MAC address in the UniFi controller. The app emulates a binary sensor. "Unknown" and "Home" correspond to the sensor's status "true", "Away" corresponds to the sensor's status "false".

The following variables are mandatory:

  1. controller - address of controller including protocol and port (e.g.,
  2. site - name of the site defined in controller and where MAC address will be searched (e.g., default)
  3. login - username to log into the controller. I recommend creating a dedicated user with read-only access to the controller (e.g., fibaro)
  4. password - self-explanatory
  5. frequency - how often to poll controller (in seconds, e.g., 120)
  6. mac - MAC address of the device that will be tracked (e.g., d4:a3:3d:c2:b9:e4) 

The following variables are optional:

  1. away delay - the app changes status for MAC address from "presence detected" to "presence not detected" if the UniFi controller "sees" the mac more than "away delay" seconds ago. If the variable is not defined, then the value of "frequency" is used as "away delay".

31 Comments,  Want to add comment please login

its great, thanks a lot :) it doesn't work on Unifi OS (Cloud key Gen 2/ Deam machine ...) so i had to adjust the API keys (posted the adjusted script on the fibaro forum "HC3: UNIFI presence" )


Could this also work for Ampfili HD ?


Hey Oleksiy, any better time to work on this when Orcs leaving to east?


Hi everyone, I'm from Kyiv, Ukraine. There's a war, so I'm focused on other critical tasks and can't provide any support now. Slava Ukraini!


I have tried to play for UDM, but not working if changing simple URL's looks like some games with keys, etc is required @Oleksiy, could you please check it and update?

© 2024. Nice-Polska Sp. z o.o.Privacy policyTerms & ConditionsFeedback