Created At

Apr 23, 2020

Last Update

May 04, 2020

Platforms

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

Views

10521

Download

1179

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".
 

31 Comments,  Want to add comment please login
585b630563e7f0cc4ab25d876f7b655d

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" )

F6a0bd290b31a0a4aa585db4dacc8804

Could this also work for Ampfili HD ?

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?

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