Home Assistant
Open source home automation that puts local control and privacy first
Alternative to: smartthings, google home, amazon alexa, hubitat
Home Assistant is a home automation platform that puts local control and privacy first. It integrates with thousands of devices and services, from Zigbee and Z-Wave sensors to Matter, and lets automations run entirely on local hardware such as a Raspberry Pi or a home server without depending on the cloud. A browser-based dashboard and automation editor make it possible to build interfaces and automations without writing code.
Home Assistant Docker Compose example
Self-host Home Assistant on your own server, homelab, or VPS starting from this Docker Compose example.
It runs Home Assistant in Docker containers using the official ghcr.io/home-assistant/home-assistant:stable image, with persistent volumes and automatic restarts preconfigured.
Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.
services:
homeassistant:
image: ghcr.io/home-assistant/home-assistant:stable
volumes:
- config:/config
# Share the host clock with the container.
- /etc/localtime:/etc/localtime:ro
restart: unless-stopped
environment:
# Timezone used by Home Assistant for schedules, logbook entries, and history.
# Value must be a tz database name, e.g. "Europe/Berlin".
TZ: "UTC"
volumes:
config: Prefer a managed setup? WinterFlow installs, configures, and updates Home Assistant for you using this same Docker Compose configuration.