- Use Case
- Log in →
- Node-RED OwnTracks location tracking without public IP/MQTT
- Secure webhooks to Jenkins on Kubernetes
- Remote YouTube downloader Slack bot
- Introducing WebSocket Server
- Rancher - push to deploy workflow with Keel
- Documenting your API with OpenAPI (Swagger) and Redoc
- Home Assistant remote access add-on
- Hassle-free remote access to Home Assistant on a Raspberry Pi
- How to receive Paypal webhooks on localhost
- DevOps Use Case: Performing Redis maintenance in Kubernetes
- Auto deploy your Node.js app on push to GitHub in 3 simple steps
- What is a webhook and how to create one?
- Mailgun webhook fan-out
- Web Relay Ingress with Docker for Mac
- How to receive Stripe webhooks on localhost
- Receive Github webhooks on Jenkins without public IP
- Keel - automated Kubernetes updates
- Introduction to Webhook Relay
Hassle-free remote access to Home Assistant on a Raspberry Pi
Sep 3, 2018, by Karolis Rusenas
There are quite a few home automation systems out there but one of my favorites is Home Assistant. It’s written in Python (available on GitHub), has a nice user interface and is very easy to deploy. Home Assistant has tons of integrations with many other online services and hardware devices.
In this short article we will use:
- Raspbian - operating system
- Etcher - probably the best tool to burn images
- Raspberry PI - our mini computer :)
- Docker - the easiest way to package and run server applications
- Webhook Relay - tunneling service to access Home Assistant from outside
- Home Assistant - home automation system
Using Hass.io? Check out our Add-on here.
Having those details, launch webhookrelayd container in a tunnel mode with your tunnel name specified (in this case tunnel name is
Start Home Assistant
Open tunnel in the browser
your-subdomain.webrelay.io from anywhere:
- Insert MicroSD memory card into a computer
- Format it
- Download the Raspbian OS image from https://www.raspberrypi.org/downloads/raspbian/
- Open Etcher
- Using Etcher select the downloaded Raspbian image
- Select the drive that corresponds to your memory card
- Click flash!
From the Raspbian Desktop launch Terminal. Now, using terminal install Docker:
Official blog post on Docker support for Raspberry Pi can be found on their website.
Now, reboot it:
Visit the Raspberry Pi 3 Home Assistant Repository on the Docker Hub to determine the latest version available. To start Home Assistant is as simple as:
Open https://my.webhookrelay.com/tunnels in your browser and click “create tunnel”. If you are on a free plan, leave ‘subdomain’ and ‘crypto’ fields empty as they are only available for the paid plans, you will get auto-generated subdomain.
We will also need a token for authentication. Go to https://my.webhookrelay.com/tokens and create a new token key & secret pair:
Keep secret somewhere safe as it is now encrypted and cannot be recovered. If you lose it, just generated a new pair.
To start a tunneling daemon, run (just replace key and secret with your own):
That’s it, now you can access your Home Assistant remotely, without any need to configure your router, get static IP or buying a domain. Tunnels can also be protected by a basic auth but it would be better if you just enabled authentication for your Home Assistant. Check for more information in the official docs.