bdraco / aiodiscover Goto Github PK
View Code? Open in Web Editor NEWDiscover Hosts via ARP and PTR lookup
License: Other
Discover Hosts via ARP and PTR lookup
License: Other
pytest-runner has been deprecated for a while and its repo is now archived. Arch linux is dropping it from the repos, which means I won't be able to build aiodiscover as it's part of setup_requirements for some reason.
https://github.com/pytest-dev/pytest-runner#deprecation-notice
The pytest-runner archived repo has instructions on how to move forward.
I'm looking for a way to have Haier AC wifi adapters auto-discovered in Home Assistant. I was hoping to find candidates by MAC address (04:fa:83:...), then probe them.
I see the ACs in the output of arp -a
on my macOS setup:
? (192.168.1.60) at 4:fa:83:8f:84:xx on en0 ifscope [ethernet]
? (192.168.1.67) at 4:fa:83:8f:84:xx on en0 ifscope [ethernet]
..but https://github.com/bdraco/aiodiscover/blob/main/demo.py prints nothing.
Seems like this is because of #1 and my router (Keenetic) not resolving PTR requests (dig -x 192.168.1.60
).
I see that all Home Assistant integrations include a hostname/domain filter, but I don't really understand why they have to do that.
Make the hostname filter optional?
Looking at https://developers.home-assistant.io/docs/network_discovery/ , I tried:
upnp-client --pprint search
Both seem to work (e.g. my TV is discovered), but the ACs are not there.
Running current Home Assistant dev with deprecation warnings enabled yields a few of these warnings:
.../lib/python3.10/site-packages/pr2modules/__init__.py:12: DeprecationWarning: pr2modules namespace is deprecated, use pyroute2 instead
Looks like aiodiscover is one of libs using pr2modules
. See https://github.com/svinota/pyroute2/blob/c8aac9a721710bbb7cf6b9b8443d5f3c5132d1e2/pr2modules/__init__.py
HA dev installs pyroute2 0.7.3 at the moment.
Hi.
get_local_ip function in network.py doing some wired action.
Connecting to "(10.255.255.255", 1) generate exception in my env. How about change to ("8.8.8.8", 1)?
My env ls 10.X.X.X private IP networks.
Thanks.
A minimal example that exhibits the behavior.
Any additional information about your environment
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.