hey folks! want to my integration i created:
It shows the list of devices in my network with their ip, mac address and friendly names
would like your feedback before publishing it out to hacs.
hey folks! want to my integration i created:
It shows the list of devices in my network with their ip, mac address and friendly names
would like your feedback before publishing it out to hacs.
Hey
Thanks for the share It works well here, my comments:
ā In Installation chapter you can indicate you can just paste the url of the github in hacs for an easier installation
ā Configuration entry with the whole list: no way to get it to extend of one line each time you fill one ? instead of getting a crazy long list displayed straight ?
ā on my system it displays the ip, mac address without problem but nothing for the local name. Canāt it get it from nmap ? as my router supports it for my lan and my devices have some.
Thanks
VincĆØn
that are great inputs.
You can list out in configuration.yaml as such and it will be pre-populated in the textboxes when you initialize.
network_scanner:
ip_range: 10.1.1.1-254
mac_mapping_1: "01:11:81:41:21:e1;My Personal iPhone;Apple Inc."
I am thinking over how to make it easier. Few challenges I have:
Thanks again!
Cool, but can you add a mac mapping dynamicly? I guess not.
how do you mean by dynamically? could you give an example?
I really mean to set them up without having to configure the integration again. On reading your posts again i realise its not possible.
Two aspect of the configurations could definitely be automated:
The host could help determine the ip range that need to be scanned, eg. if the host is 10.1.1.227, Could automatically set the scan ip range to 10.1.1.1-254
Get the host names from the devices scan instead of asking the user to provide the friendly name.
Definitely would be good enhancements. The makes sense as default and customization should be supported.
In that case it could be a /24, but it could also be /8, or anything inbetween.
definitely, but think scanning by default on such a large range would not be appreciated.
Also I updated to get the vendor and hostname info from the scan instead of manually entering. If nothing found, would show āUnknownā
Is that in 1.0.3? I am not seeing that.
EDIT I see there is now 1.0.5 and I am seeing vendor and hostname
Hi
Thanks for this - Iāve installed and its up and running, but Iāve not been able to get the āCustom Nameā & āCustom Descriptionā working at all? I have added the following. entries to HA configuration file, what have I missed please? (my live MAC entries are correct - the MAC list below masked for privacy)
network_scanner:
ip_range: 192.168.1.1-254
mac_mapping_1: 98:48:27:XX:YY:XX;Archer Router;TPlink
mac_mapping_2: 00:10:75:XX:YY:XX;NAS;Segate BlackArmor 440
mac_mapping_3: B0:39:56:XX:YY:BB;Orbi_Router;Netgear
Hi
a question / suggestion
I (and assume many others) have some scripts / automations etc that rely on devices IP address (rather than MAC) to work. I know and have created reserved and or static IP addresses for some of these devices) wondered if, by using your Network Scanner one could discover IP address from (known user listed) MAC addresses, to create entity (or whatever) list of correct IP addresses for these devices to use in Automations, scripts etc. My IPs do change each time Router reboots (power in area causing) resulting in scripts not workingā¦
may not have described this well, Im new to HA but hopefully idea is conveyed
Cheers
Get your DHCP server to give out the same address each time.
Yes I could side step the question I asked, however as I stated I can & have done that BUT my router, like many domestic Routers, have a (practical) limited number of reserved IP addresses the DHCP server supports - when I reach about 20-25 the router (DHCP server) seems to fall over, hence interested in discovering IP address from MAC as an alternative (and hopefully stable / reliable) way of discovering a devices ip address from MAC by scanning LAN.
Well thatās kinda backwards. Get a rpi (3 is more than enough) and install pihole. DNS, DHCP, all taken care of. Turn the router DHCP off. Best network upgrade I ever did.
understood but are you able to assist / advise on either of my earlier questions please?
From this sensor you can see the Mac address mapped to the IP address in the one attribute, devices. In a template you can get the attribute by the usual method. Iterating through it to search for a particular Mac address is beyond my skills, so Iāll leave it there for others to suggest.
Alternatively you could create a command line sensor using arp.
Yes thanks I may try that. Unfortunately Iāve not managed to get the configuration to recognise the few friendly names I set up following the documentation as I understand it (both ways I saw) ie:
Attempt #1 as recorded in Configuration
network_scanner:
ip_range: 192.168.1.1-254
mac_mapping_1: 98:00:27:00:96:22;Archer Router;TPlink.
mac_mapping_2: 00:10:22:35:55:72;NAS;Segate BlackArmor 440.
and Attempt #2
network_scanner:
ip_range: 192.168.1.0/24
98:00:27:00:96:22;Archer Router;TPlink.
B1:36:57:84:31:CC;Orbi_Router;Netgear.
Both above correctly scan and display the generic LAN devices as expected BUT the above friendly names are NOT populated in the resulting scan, Custom Name and Custom Description for these devices just shows āUnknow Deviceā, just like all the other discovered devices. Iām out of ideas
Where are you entering these configurations?
in HA configuration.yaml file