Created At

Apr 23, 2020

Last Update

May 04, 2020

Platforms

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

Views

7862

Download

953

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., https://192.168.1.10:8443/)
  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".
 

29 Comments,  Want to add comment please login
0177b8f959a956c86b0ea1126e513c15

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

602d0c581d41f736142387ba05c5263f

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!

1448a287043ae159e17917fc7243dee6

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?

0177b8f959a956c86b0ea1126e513c15

Can we make it work on UDM Pro? The syntax is different. in Api the login is /api/auth/login and all api needs to have /proxy/network, as well it doesn't use port number.

209bd4e8787f899634e93d300e0fc01e

Does it works well?