This image is based on Home Assistant Core.
The Webui can be found at http://your-ip:8123. Follow the wizard to set up Home Assistant.
Host vs. Bridge
Home Assistant can discover and automatically configure
zeroconf/mDNS and UPnP devices on your network. In
order for this to work you must create the container with --net=host.
Accessing Bluetooth Device
In order to provide HA with access to the host’s Bluetooth device, one needs to install BlueZ on the host, add the capabilities NET_ADMIN and NET_RAW to the container, and map dbus as a volume as shown in the below examples.
Docker Cli:
--cap-add=NET_ADMIN --cap-add=NET_RAW -v /run/dbus:/run/dbus:ro
Docker Compose:
cap_add:
- NET_ADMIN
- NET_RAW
volumes:
- /run/dbus:/run/dbus:ro
If the dbus path on host differs, such as /var/run/dbus, then you can map it as /var/run/dbus:/run/dbus:ro.
Using the Ping integration
For the Ping integration to work, the capability NET_RAW must be added to the container. See above for instructions.
