Comments (3)
Ooh interesting. Well, the code already knows the IP address of the AP it's connecting with to get attached clients. That can be returned along with client MAC addresses. You can then resolve the DNS name of the IP address of the AP if you prefer a DNS name over an IP to associate a name with attached clients.
Also -- to avoid DNS -- the utility that the code executes remotely is mca-dump
. You can ssh into one of your APs and run it, and you'll see the JSON output that includes a hostname value.
It would be a breaking change regarding current HA configuration, but one option is to include either the IP or hostname in the MQTT topic. Then in HA, split the presence detection into separate MQTT topics, one for each AP (i.e. room location). Maybe that can be an option in the example /app/device_tracker.py with support from /src/unifi_tracker.py.
Good ideaπ
from unifi_tracker.
I created a new branch, scan_by_ap, with a new method to group the diff between scans by AP host name. I'll use this branch in my testing with HA to allow presence detection per AP.
from unifi_tracker.
Addressed with release v.0.1.0.
from unifi_tracker.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from unifi_tracker.