Unless something has changed it is not configurable in configuration.yaml. you need to enter that info on the config flow.
Thank-you missed that - fixed now and working appreciated
cheers
Does this support scanning multiple subnets?
Iād really want this to be able to scan each VLAN in my network (each on a different subnet) so I can get a readout of every device on each.
Yes it does.
Great to hear - thanks for confirming.
How would we go about configuring multiple subnets in the configuration file - is that through the āmultiple attemptsā configuration thatās shown a few replies back?
When you configure the integration you simply add as many network addresses as you like.
Is there no file that I can edit the various devices manually? Do I have to do this directly when integrating the Network scanner?
OK - I was looking more for direction on the syntax to enable mutliple subnets.
Would I use this:
network_scanner:
ip_range: 192.168.1.0/24
ip_range: 192.168.2.0/24
ip_range: 192.168.3.0/24
Or something like this:
ip_range: 192.168.1.0/24,192.168.2.0/24,192.168.3.0/24
Or neither and something else altogether?
Unfortunately you canāt configure via a file.
Hello everyone,
is it possible that this integration does not identify all the devices?
There are currently 21 devices online in my test network and I can see them with other specific tools.
However, this integration only identifies 15ā¦
Does anyone else have the same problem?
Can anyone give me suggestions on this issue?
Thanks
Hello! Thanks for the integration!
Iām not able to see vendor or hostname, I get device unknown.
Is there something I need to do for this to work?
Tried adding āāprivilegedā in the arguments from sensor.py but that didānt work
def scan_network(self):
"""Scan the network and return device information."""
self.nm.scan(hosts=self.ip_range, arguments='--privileged -sn')
Hi,
Could anyone offer some help installing this component please? Iāve tried both the HACS GUI and the manual route extracting files into the custom_components folder without success.
The HACS GUI route appears to work as the dialog box where you enter the github path as it lists the component after clicking add. However, the HACS screen doesnāt list it after closing the dialog - there isnāt a network_scanner folder either.
Trying the manual route does nothing.
The only possible clue is a warning in the log saying
ā2024-08-12 20:06:36.283 WARNING (MainThread) [homeassistant.util.json] json_loads was called from hacs, this is a deprecated function which will be removed in HA Core 2025.8. Use homeassistant.util.json.json_loads instead, please create a bug report at Issues Ā· hacs/integration Ā· GitHubā
Any pointers would be much appreciated.
J
For anyone who wants to see a count of the devices that this integration finds, try putting this into your Markdown Card configuration:
# total devices: {{state_attr(āsensor.network_scannerā,ādevicesā) | count }}
For me it looks like this:
The state of sensor.network_scanner is the number of connected devices. I mean your method is technically correct, but it takes the long way.
Work pretty good, but Iām missing my NAS. I have a Synology running on network bond (adaptive load balancing) that isnāt picked up by the add-on. Anything I can do to get this listed?
I also had my first config set to 192.168.1.0, which also listed a 192.168.1.255 IP address, which shouldnāt be there.
Yeah mine is showing a .255 address, which is clearly wrong.
Easy workaround is to specify 192.168.1.1-192.168.1.254 as range. I didnāt see an option to change the config of the used entity, so youād need to remove an re-add the entity.
That is a workaround. It never used to report this.
Where do I find this config flow if itās not in the HA configuration.yaml?
Edit: Ok, so I figured that you have to reinitialise the integration after you edited the configuration.yaml file. I added the custom range and some mac-addresses, but only the IP-range is filled out.
I have this up and running and am trying to use it to identify and notify me when a device shows up. How can I look for a specific IP or MAC address by searching ? I want to get notified when it the IP or MAC shows up.
{{state_attr('sensor.network_scanner','devices')}}
If the number of devices didnāt change, I can search for {{'mac' in state_attr('sensor.network_scanner','devices')[0]}}
but the number of devices changes.