- Use Case
- Log in →
- Running Webhook Relay agent with Podman
- New feature announcement: domain-based endpoints
- Static IPs for webhook calls to enable whitelisting
- Responding to API calls using Node-RED Webhook Relay node
- Docker Compose update on Github webhook
- Using Google Firestore for a Golang backend application
- Automated Jenkins builds on GitHub pull request
- Rules-based webhook filtering & routing
- Introducing Cloudflare support for Home Assistant remote access
- Setting up simple, self-hosted & fast CI/CD solution with Drone.io
Home Assistant remote access add-on
Oct 12, 2018, by Karolis Rusenas
Webhook Relay add-on allows remote access to Home Assistant without configuring your router, firewall or having a static public IP. It works by creating secure reverse tunnels back to the cloud service.
Secure, end-to-end TLS encrypted access to your Home Assistant without configuring your router or having a static IP. Instead of HTTPS tunnels that are being terminated on Webhook Relay servers, we will be using TLS tunnels that are only being terminated at your end so even if we are forced to, we couldn’t intercept traffic without your browser notifying you.
This tutorial will expect you to have:
- Basic plan subscription ($4.5/m) which enables whitelisted domains and TLS pass-through tunnels. Check plans and pricing here. We do offer a 7-day money back guarantee. Subscribe to it on your accounts page. If you don’t want to commit, drop us an email at [email protected] and we will set up a trial for you.
- DuckDNS account to get your own free domain and retrieve TLS certificate through Let’s Encrypt.
Installation of this add-on is pretty straightforward and not different in comparison to installing any other Hass.io add-on:
- Add our Hass.io add-ons repository URL to your Hass.io instance: https://github.com/webhookrelay/home-assistant.
- Install the “Webhook Relay” add-on.
- Generate token key & secret pair and add it to the add-on configuration.
- Get DuckDNS token and create your domain. Add those details to the “tunnels” config section and “duck_dns” section. Set “accept_terms” to true if you accept Let’s Encrypt ToS.
- Start the “Webhook Relay” add-on.
- Check the logs of the “Webhook Relay” add-on to see if everything went well. It should print out your public URL.
Once you have:
- Webhook Relay key & secret
- DuckDNS domain
- DuckDNS token
Use those details to populate add-on configuration:
Make sure that the “protocol” is set to
tunnels_enabled is set to true.
Add-on will automatically:
- Configure DuckDNS to point to a correct address (public tunnel endpoint IP)
- Configure and retrieve certificate and private key from Let’s Encrypt
- Store certificate & key in
- Configure Webhook Relay tunnel
- Starts serving traffic
That’s it, you should be able to access your Home Assistant through your domain that you have configured, in my case it’s https://auto-ha.duckdns.org. We have got full, end-to-end encryption without configuring your router or getting a static IP:
Also, instead of using DuckDNS & Let’s Encrypt, you can use any certificate you want or just don’t supply any certs to the add-on and terminate TLS on Home Assistant server. For that you will just have to specify HTTPS in the destination:
If you just want to receive webhooks, feel free to use our free tier! Or if you don’t want to commit but would really like to try it, email us at [email protected] and we might think of something :)
Not using Hass.io? Check out my previous blog post that details a simple setup with Docker here.