5 ms·
One question about remote access: Currently, it looks like there are 3 methods (https://www.home-assistant.io/docs/configuration/remote/ https://www.home-assist
by echoangle 2y ago
One question about remote access: Currently, it looks like there are 3 methods (https://www.home-assistant.io/docs/configuration/remote/ https://www.home-assistant.io/docs/configuration/remote/):
- Home Assistant Cloud (paid)
- VPN
- Port forwarding
Is there any plan to make something like Home Assistant Cloud available for self hosting? Like a simple docker container to put on a VPS?
I don't want to deal with DynDNS to expose my home network but would prefer a Server component on a VPS with a static IP which connects to my home server and allows remote control.
Or is there already a way to do this?
- bananapub 2y agoseems completely out of scope for HA? if you want to proxy it from the internet then you can just do that using any of the tools used for this - NGINX, wireguard, rathole, etc etc etc.
- echoangle 2y agoBut this functionality already exists in HA. There’s a simple login page where I can connect to the HA cloud. The idea would be to start a docker container, set up a domain name where it’s reachable, enter the domain name on the HA cloud screen and connect to it. It would be much simpler than setting up everything yourself. What would be the correct way to DIY it? You would need a VPN to connect you home network to the Proxy and then expose the web interface on the proxy, right?
- OvidNaso 2y agoThere is a tailscale addon. Simple install it, then install on any device you want to connect, phone, etc. Could not be easier.
- bmicraft 2y agoProxying home assistant is no different from any other http based service. You set up a reverse proxy (including websocket proxying) for your HA subdomain on your VPS and you're done.
- echoangle 2y agoThe problem is that my home server isn’t reachable from the internet, so there’s nothing for the proxy to forward. I would need to set up some kind of VPN for that, right? But this functionality already exists in HA, that’s why I asked.
- orev 2y agoVPN is the right solution here. Each app shouldn’t have to develop its own remote access method when a generic solution already exists. It would be an issue if you’re stuck behind double NAT, but I think tailscale can help with that.
- erinnh 2y agoYou can install wireguard or tailscale from the addon store.
- baq 2y agoTailscale solves this, and a few other things. Amazing product with an amazing free tier for personal use. Super easy setup, too.
- ghostpepper 2y agoJust adding another voice for tailscale. It's an awesome product with a very generous free tier.
- vladgur 2y agoThe biggest problem with Tailscale and/or WireGuard is that I can’t inform IOS to only connect to VPN when home assistant app is running or when notification comes in. I have to run it on my phone all the time effectively routing all mobile traffic through my home VPN which is not ideal for bandwidth and battery life. I end having to manually turn it off and on. Instead I wish home assistant had a way to make mobile notification resources easily accessible without VPN - say behind a short lived access token so that I could quickly view the notification media without having to expose local HA install or having VPN always on
- kcb 2y agoI run a very small vps running caddy and tailscale. Then just expose any service I need externally through that. Very easy to setup.
- dzikimarian 2y agoCloudflare Tunnels is what you're looking for. Or ngrok maybe.
- PLG88 2y agoWhole bunch of alternatives too - https://github.com/anderspitman/awesome-tunneling https://github.com/anderspitman/awesome-tunneling. I will advocate for zrok.io as I work on its parent project, OpenZiti. zrok is open source and has a free (more generous and capable) SaaS than ngrok.
- zxvkhkxvdvbdxz 2y agoset up wireguard at your home network and connect to it from the outside. you need a single port open for it
- mvip 2y agoAuthor here. I just use Tailscale. I’ve documented my setup here: https://vpetersson.com/2022/12/23/securing-services-with-tailscale.html https://vpetersson.com/2022/12/23/securing-services-with-tai... But tldr is that you don’t need any cloud VM or other service for remote access. Works great.