Code Monkey home page Code Monkey logo

Comments (3)

idatum avatar idatum commented on July 24, 2024

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.

idatum avatar idatum commented on July 24, 2024

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.

idatum avatar idatum commented on July 24, 2024

Addressed with release v.0.1.0.

from unifi_tracker.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.