Anyone know how from 1x esphome node you can scan the local network it is on to find all the devices that are advertising mdns services ?
I’m trying to avoid hard coding IPs on the local network, and looking for a way for the esp to find all the IPs with devices on the local network.
Thanks in advance
IMHO so far there is no ready to use code to “scan” mDNS directly on ESPHome node.
What You plan to do with list of devices on ESPHome node ? Just curious.
RonnieLast
(Last of the Ronnies)
October 28, 2024, 9:51pm
3
You can’t discover without scanning ip’s individually, but you can query the ip’s like this under linux for example:
Wyse-7040:~$ avahi-resolve -a 10.0.0.1
10.0.0.1 pfsense.homenet.lan