Basic home automation using Home Assistant, MQTT broker, and Zigbee2MQTT running on Docker Compose.
- Clone this repo.
git clone [email protected]:seredot/home-automation.git
- Install docker -and if compose not part of docker installation- docker-compose.
- Create configuration files using the example files in data folder:
cp data/zigbee2mqtt/configuration.yaml.example data/zigbee2mqtt/configuration.yaml cp data/mqtt/mosquitto.conf.example data/mqtt/mosquitto.conf
- Run compose
sudo docker compose up -d
- Create Home Assistant login at http://localhost:8123.
- Shut down compose
sudo docker compose down
- Add below lines into newly created Home Assistant configuration file
data/home-assistant/configuration.yaml
:mqtt: broker: mqtt discovery: true birth_message: topic: 'hass/status' payload: 'online' will_message: topic: 'hass/status' payload: 'offline'
- Run compose
sudo docker compose up -d
- Check tooling
- Home Assistant: http://localhost:8123
- Zigbee2MQTT: http://localhost:8080
To view the logs, run
sudo docker compose logs
To check the processes, run
sudo docker compose ps
The full state resides in data
folder. Please consider setting up daily automated backups.