How to install and configure MQTT broker on Home Assistant running in Docker?
Hi, in the documentation (https://www.hass-agent.io/2.0/getting-started/installation/) there is a video on how to install a MQTT add-on in Home Assistant. But I'm running Home Assistant in Docker on Raspberry Pi OS, so no add-ons are available. What should I do to make HASS.Agent work?
Installation - Hass Agent Documentation
Access your homeassistant from any windows machine - send notifications, collect data and automate repetitive tasks
3 Replies
unwilling-turquoise•7d ago
If you setup a standalone mqtt docker image and setup home assistant mqtt integration to connect to the standalone container it should work. Just make sure the port is exposed through docker and it can be accessed from the home assistant container. The home assistant mqtt add-on is literally just a docker container which sets up the mqtt integration automatically. https://hub.docker.com/_/eclipse-mosquitto
eclipse-mosquitto - Official Image | Docker Hub
Eclipse Mosquitto is an open source message broker which implements MQTT version 5, 3.1.1 and 3.1
unwilling-turquoise•7d ago
(I haven't personally tried it set up like this but the hass agent shouldn't depend specifically on the mqtt add-on)
plain-purpleOP•7d ago
Thank you very much, I've installed mosquitto from the Debian repository and then set up MQTT integration in Home Assistant, it works. 🙂