Mqtt connection to external MQTT Brocker in Docker failed

Hi,
I tried to connect the MQTT-Integration of Home-Assistant to an external MQTT-Broker.
There I installed in a docker container the eclipse-mosquitto broker and configured it.
With MQTT Exlporer I don’t have any issues but the integration fails.

Is it possible, that I need the go auth plugin in my container to succesful connection?

Any clues?

What’s the error in HA’s Core log?

What does your Mosquitto config look like?

Thank you for your replay!

Here ist my mqtt config:

persistence true
persistence_location /mosquitto/data/

log_dest file /mosquitto/log/mosquitto.log
log_dest stdout

password_file /mosquitto/config/mosquitto.passwd

allow_anonymous false

listener 1883

And I created a password-file with user mosquitto and a password.
MQTT Explorer connection is successful, so I don’t think I made something wrong there.

HA’s Core log is empty there. Under Settings->System->Protocols I can’t see any new message when connection fails…

How did you configure the MQTT integration?

Not really much to configure there…
Add Integration and entered Host-IP, Port, username and password.
After few seconds there is the message, that the connection failed.

I found my fault.
The macvlan bridge wasn’t correctly configured. Now it’s working.
Thanks!

1 Like