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
5487
Download
543
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:
Could this also work for Ampfili HD ?
I have 5mac's from mobile devices I want to track. Is there a seperate bit for each "possible" scenario? If so, what is the right order to match the bit with the right combination of present mac's? 0 - none present 1 - mac1 present 2 - mac2 present 3 - mac1 and mac2 present 4 - mac3 present 5 - mac1 and mac3 present 6 - mac2 and mac3 present 7 - mac1 and mac2 and mac3 present 8 - mac4 etc
Yeah Brent! You fix login for sure, great job, but after fixing one issue I get other, didn't see MAC addresses. :( @Oleksiy Geroyam Slava! We will win!
Got this to work on UDM Pro: Change the Variable Controller to : https://[udmp]:443 replacing [] with your ipadddress In the code change "EDIT" self.http:request(self.controller .. "/proxy/network/api/auth/login", {
Does not work