Home Assistant is excellent at running local automations โ but reaching it from outside your home historically meant either paying for Nabu Casa, port-forwarding (and exposing the whole admin UI to the internet), or running a public domain with a reverse proxy. Tailscale skips all of this. The HA instance stays local; your phone reaches it over the tailnet whether you're at home, at work, or in another country.
https://home-assistant.tail-abc.ts.net from any tailnet deviceHA controls the smart-home devices on the LAN; you reach HA over the tailnet. Critical detail: ACL grants family โ IoT, never IoT โ anything else. A compromised doorbell can't pivot.
Two scenarios depending on how you run HA:
Pick one and follow the corresponding step below.
From any tailnet device, visit http://homeassistant:8123 (or whatever you renamed it).
Apply the Docker sidecar recipe:
services:
ts-ha:
image: tailscale/tailscale:latest
hostname: home-assistant
environment:
- TS_AUTHKEY=${TS_AUTHKEY?required}
- TS_EXTRA_ARGS=--advertise-tags=tag:iot
- TS_SERVE_CONFIG=/config/serve.json
volumes:
- ts-state:/var/lib/tailscale
- ./serve-config.json:/config/serve.json
cap_add: [net_admin, sys_module]
homeassistant:
image: ghcr.io/home-assistant/home-assistant:stable
network_mode: service:ts-ha
volumes:
- ./ha-config:/config
privileged: true # needed for some HA integrations
volumes:
ts-state:
Serve config:
{
"TCP": { "443": { "HTTPS": true } },
"Web": {
"${TS_CERT_DOMAIN}:443": {
"Handlers": { "/": { "Proxy": "http://127.0.0.1:8123" } }
}
}
}
HA refuses connections it thinks are forwarded from an unknown proxy. Edit configuration.yaml:
http:
use_x_forwarded_for: true
trusted_proxies:
- 127.0.0.1
- ::1
Restart HA. Now requests via Tailscale Serve are accepted.
Install Home Assistant Companion from your phone's app store. When it asks for the server URL, enter your tailnet hostname (https://home-assistant.tail-abc.ts.net).
Log in. Notifications, geofencing, sensor reporting all work โ over your tailnet instead of via Nabu Casa.
Tag the HA host (and any other IoT devices) tag:iot. Add an ACL:
{
"acls": [
{ "action": "accept", "src": ["group:family"], "dst": ["tag:iot:*"] }
// no rule with src=tag:iot โ IoT devices can't initiate
]
}
The IoT-isolation pattern from M5L1. Family controls the smart home; the smart home can't pivot to anything else if a device gets compromised.
trusted_proxies config block.privileged: true and Bluetooth-aware host config.