feat(homeassistant): Add Mosquitto MQTT broker

This commit is contained in:
Adrien Poupa
2025-01-05 00:06:31 -05:00
parent 5d6b301ec7
commit 558a758e40
6 changed files with 49 additions and 2 deletions

View File

@@ -21,6 +21,18 @@ http:
Set the `HOMEASSISTANT_ACCESS_TOKEN` for homepage support.
## MQTT
If you need to use MQTT, you can enable it by setting `COMPOSE_PROFILES=homeassistant,mqtt`.
Start the container, create a user in mosquitto with the following command and the credentials defined previously:
`docker compose exec mosquitto mosquitto_passwd -b /mosquitto/config/pwfile <username> <password>`
Restart the Mosquitto container to apply the changes.
In HomeAssistant, add the MQTT integration with hostname `localhost`, port 1883 and the username and password defined above.
## Backup
### Enable Backups in HomeAssistant