Wifi backup when end0 disconnected

Hi everyone! I’ve been using home assistant for a while now, but I just signed up here. I hope I’m not using the wrong way to ask for help. I currently have HA installed on Raspberry Pi5 connected via ethernet to my router. I connected the wifi in settings>system>network and in fact I see that it is connected as you can see from the images. I would like that when I lose the connection on end0, home assistant automatically uses the wifi connection (in my case I connected it to a mobile hotspot). This does not happen unless I restart home assistant. Same thing if end0 starts working again, I have to restart again to make it use this connection. I thought that home assistant/raspberry would automatically perform the exchange without restarting. Maybe I configured something wrong… can someone help me? Thanks a lot in advance.

Hello Lorenzo,

Technically those are router/firewall functions. Install PFSense or OPNSense and do it there…

Thanks for your advice. I thought the home assistant wifi connection would save me from having to add hardware to run a backup internet network. Is PFsense just the software right? Do I need a netgate device to make this work?

Any old PC will run the software. Doesn’t work with a Pi though or risc, needs to be x86 but I use 12YO core2 duo machines with a couple of extra Ethernet’s on a card and they work great.

Last night I did some tests with this on an old Intel NUC.

  • Assign 192.168.2.8 to enp3s0 (Ethernet)
  • Assign 192.168.2.8 to wlp2s0 (Wifi)
  • Save

HA is using the ethernet port until I pull out the cable.
Then it almost instantly seems to use the Wifi connection as if nothing happened.
Plugging the ethernet cable back in will switch the connection back to the ethernet port.
This is confirmed by:

  • LAN scanner (showing the MAC address of the active connection for that IP)
  • SSH to HA, “ip route get 1.1.1.1” (showing the interface used to connect)

I still have to test this with a Raspberry Pi 4 to see if it behaves the same.