I am trying reduce the number of cables in my house, and came out the cable of home asstant can be shorter to connect it to a network switch.
But I’ve encountered an issue I can’t seem to resolve.
The Problem is
When I connect my Home Assistant PC to an unmanaged network switch, the interface becomes laggy and my camera streams stutter. However, when I connect the Home Assistant PC directly back to my Sagemcom modem/router, everything works perfectly.
I have tested this with two different switches and experienced the same results. I also restarted all devices, but the lag persists whenever the Home Assistant PC is plugged into a switch. All other devices on the switch function normally.
I want my network to function with the following configuration:
Sagemcom Modem/Router (Main Gateway)
Connected via Cat 6a to a Linksys LN2308P (Unmanaged 8-Port 2.5G PoE Switch)
Port 1: Uplink to Sagemcom
Port 2: ASUS BE92U (Access Point Mode) → Connecting PC and Mini PC
Port 3: Home Assistant (ASUS NUC 14 Essential)
Port 4: Zigbee PoE (SLZB-06)
Port 5: Reolink PoE Camera
Port 6: Asustor NAS (AS6704T)
My Questions:
How can I get this specific configuration to work without lag?
Is the issue caused by using an unmanaged switch, or is there a specific setting within Home Assistant that I am missing?
I use static IPs (configured on the devices themselves) for the cameras, Nas, Home Assistant.
Thank you for the reply. i tried 2 different switches a 4 port tplink version. and just bought a Linksys LN2308P with 8 port that i need.
second bad cable i dont think so i tried already replacing the cables and same issue and this is the 3rd new cable i tried with all devices.
do you have an advice wich switch to buy ?. i need a poe+ switch version atleast 8 port and 4 port 2.5ghz and the others like 1ghz if switch like that exist.
Make sure the network cable is at least category 5e or better and that the switch is a 1Gb/s switch.
If you run the network cable along side power cables, then a shielded network cable might be a good idea.
Is HA the only device connected to the switch? If not, disconnect the rest.
Perform a factory reset, even if it was new (might have been returned by another customer). (Although you did mention unmanaged so likely it can’t be / doesn’t need to be reset).
Are you sure it’s unmanaged?
Really, really silly comment, but since I’m out of options: did you power the switch? Although I don’t think even unmanaged switches will work at all without power(I only have managed), but hey,
“If it’s not what you think it is, it is what you think it’s not”
Do you use fixed IP address on your HA interface abd do you move that one over also, if you see tchvfrom one network interface on the HA server to another?
Arp tables might need to have some time to update themself and if it is DHCP based setups, then DNS might need time too and DNS can have long TTL (Time to live) values.
If you do not know how to clear all your DNS devices, then restart your router, then you client machines, which should get the DNss tables updated.
Thanks for the reply, I think I’ve got it now. My Reolink camera works perfectly in the app, but oddly enough, it starts lagging when I view it through the Home Assistant integration and also home assistant istself .that was mine issue when connected with a switch. I decided to try a camera reset to see if that helps, and it seems to be working for now. I’m starting to think I might not have configured the settings correctly before. Right now, I have HTTP , RTSP , ONVIF all turned on. Is there any option I have enabled that isn’t actually necessary ? Take a look at the picture to see my current sellection
After reading the work the only thing, my gut tells me you’re getting multicast or mdns flooding when connected to the switch… (you said cameras. I’m going to bet multicast)
Proving it is difficult… if you know someone who knows how to operate a sniffer like WireShark, trace the port if it is indeed IGMP flooding it’ll be obvious.
Honestly I’d leave it on the switch… It’s not worth fighting… I suspect you’ll have to spend money to fix it (better gear) and if the alternative is do nothing and leave it where it was… That’s my vote.
thank you for your answer. i think is that the the home assistant nuc lan RTL8125BG is not working verywell when connected with a network switch. so i used a usb lan adapter 1ghz and al seems to be working now.
i think the 2,5ghz whas maybe the issue in the end for home assistant.and could not auto switch to 1ghz.