Successfully Setting Up Remote Access with Cloudflare Tunnel

Hey everyone! I wanted to share a success story that might be helpful for others looking to set up remote access to their Home Assistant installation without the hassle of complex configurations. :tada:

After struggling with port forwarding and SSL certificates, I stumbled upon a fantastic solution using Cloudflare Tunnel. It’s a free service that creates a secure tunnel from my local Home Assistant instance to a randomly generated domain. The best part? It doesn’t require any port forwarding or a public IP address! :globe_with_meridians:

Here’s a quick rundown of how I got it working:

  1. Install the Cloudflare Tunnel Add-on: I found a pre-built add-on for Home Assistant OS that made the setup a breeze. Just a few clicks and it was installed.
  2. Configure the Add-on: I entered my local Home Assistant URL (http://192.168.1.54:8123 in my case) and let it do its magic. Within seconds, I had a new URL to access my setup remotely.
  3. Enable Reverse Proxy: To ensure everything worked smoothly, I had to update my configuration.yaml with some trusted proxy settings. This was a minor tweak but crucial for security.
  4. Test It Out: Using the generated URL, I was able to access my Home Assistant dashboard from anywhere in the world! :earth_africa:

The only thing to keep in mind is that the URL changes after each restart, but that’s a small price to pay for such a seamless solution. Plus, it’s completely free, which is a huge win for anyone on a budget. :money_with_wings:

If you’re looking for an easy way to remotely access your smart home setup, I highly recommend giving Cloudflare Tunnel a try. It’s been rock solid for me, and I’ve had zero issues since setting it up. :hammer_and_wrench:

Thanks to the community for all the helpful guides and discussions that led me to this solution! :pray: