HASSIO backup internet connection

I’m going to connect my Hassio, some camera and 4G modem to UPS, so in case of power loss hassio switched to 4G modem’s network so I can still see what’s happening.

I have several ideas but not sure if it’s going to work at all

  1. Use hassio automation to switch to wi-fi in case no connection via LAN
  2. Connect USB 4G modem via remote controllable USB so that it has the same WiFi ID as my home network and turn it on on power loss or in case hassio cannot connect to internet for 5 minutes, for example
  3. Maybe there is is a way to configure 4G modem to work as a repeater for my home network and switch to 4G mode on WiFi is gone
  4. RPi 4G HAT, can I use it easily to use for an internet connection?
1 Like

There are alot of ways to make this work.

A simple way is to get a router than supports “dual WANS” and failover. This way there is no change for any of your devices on the network and the failover logic is configured in the router

2 Likes

Hi, I’m also interested in connecting a cellular network with the Hassio, have you succeeded in it and how?

This is actually method I use with Draytek Vigor 2927 LTE router and backup LTE connection. There is drawback though… it works perfectly fine for outgoing connections only. Unfortunatelly most of mobile carriers use CGNAT, which makes connection back to your LAN impossible. Perhaps there are some methods line using VPN provider that allows VPN connection back to LAN, but I never tested this. Even connection through Nabu Casa does not work for me.

Definitely check out Tailscale. I didn’t even know how easy remote-access VPN could be. I’m running Home Assistant in Docker, and fired up a Tailscale container in the same Docker environment, both connecting in host network mode. One of my connections is a ADSL where I get a public IPv4, so remote access was fairly straight forward, but using my Starlink with CGNAT was difficult before Tailscale.

If, in case of a outage, really a connection is required, also take a look at ZeroTier.
We’ve implemented it for some office devices ( Firewalls, dockers and even Pi’s) and it is working flawless.

Drawback on this case is that you have to take care of your own security, but that’s always something to take into consideration :slight_smile:

Actually few months after my post I also discovered Tailscale (though I’m running it on Synology NAS rather than HA) and indeed it solved the problem!