Created At
Apr 27, 2020
Created By Oleksiy Lukyanchykov
Quick App to track presence based on the status of multiple MAC addresses in the UniFi controller.
Created At
Apr 27, 2020
Last Update
May 04, 2020
Platforms
HC 3 Lite, Z-box Hub, Yubii Home Pro, Yubii Home, Venture WISE, HC 3
Views
5528
Download
544
It is a Quick App to track presence based on the status of multiple MAC addresses in the UniFi controller. The app emulates a multilevel sensor. Each MAC address is represented by a dedicated bit. The first MAC address corresponds to bit 0, the second MAC address corresponds to bit 1, and so on and so forth. E.g., if the app is configured to track presence of d4:a3:3d:c2:b9:e4, 18:f1:d8:e8:1d:50 and 00:b3:62:b8:8f:cb, then sensor value means following:
0 | all configured addresses are not detected |
1 | only presence of d4:a3:3d:c2:b9:e4 is detected |
2 | only presence of 18:f1:d8:e8:1d:50 is detected |
3 | presence of d4:a3:3d:c2:b9:e4 and 18:f1:d8:e8:1d:50 is detected |
4 | only presence of 00:b3:62:b8:8f:cb is detected |
5 | presence of d4:a3:3d:c2:b9:e4 and 00:b3:62:b8:8f:cb is detected |
6 | presence of 18:f1:d8:e8:1d:50 and 00:b3:62:b8:8f:cb is detected |
7 | all configured addresses are detected |
The following variables are mandatory:
The following variables are optional:
Hi, installed the app. Debug schows me everything is working "Succeeded" checks the mac addresses but says no one is detected. At least one is active. ??
Marcel & Marek, I recommend sending a request manually to validate the app's configuration for both cases. To do that: 1) Open in web browser URL specified in the "controller" variable. 2) Login with the login/password from "login" and "password" variables. 3) In the same browser tab where you logged into UniFi, open the page <controller>api/s/<site>/stat/sta. In my configuration the "controller" variable is "https://192.168.1.10/", the "site" variable is "defaul", so the whole request looks like "https://192.168.1.10/api/s/default/stat/sta". 4) The UniFi controller responds with the list of devices, including their MACs, which the controller "sees". 5) Search the response for MACs from the "mac list" variable.
Hi, i have same issue. In log MAC adesses are set to home but the result is always 0.
as of march 2021 this app is not working. maybe due to ubiquiti updates. this app needs updates too
Helo, please help me this error [ERROR] [QUICKAPP271]: checkMacListUnifi() failed: "{\"meta\":{\"rc\":\"error\",\"msg\":\"api.err.NoSiteContext\"},\"data\":[]}"