This was a newish setup (i.e. I never had MQTT setup before, apparently if you have the mqtt section in your configuration.yaml you should remove it before installing the new version)
Steps I took (rough):
Created a new user in Home Assistant (NOTE: Username cannot be “homeassistant” or “addon”)
Go to Hass.io --> “Add-On Store”
Under official add-ons, clicked on “Mosquitto broker”
5.1. Click “Save”
6. In the Network card, left all as default NOTE: As per the documentation, I tried setting 1883 to blank to disable the insecure ports, however during setup I kept getting the “Unable to connect to the broker.” error
7. Follow steps 2 and 3 from this part of the doc
8. Click “Start”
9. Check “Logs” for any errors (should not get any)
10. Reboot Hassio
11. Go to “Configuration” --> “Integrations” NOTE: You might see MQTT under the “Discovered” section, do not use this one
12. Click the “plus” button (bottom right) - this will allow you to setup the details manually
13. Find “MQTT” and click it
14. Configure the settings as per below:
having the same problem. Tried the same recommendations. Whats weird is earlier today it integrated no problem but I couldn’t get my Tasmota device to connect it kept seeing the server but couldnt log on. So i tried removing the integration removing the add on. Now the integration is having the broker not found issue.
system log shows
19-06-25 11:38:09 INFO (MainThread) [hassio.auth] Success login from mqtt
19-06-25 11:38:34 INFO (MainThread) [hassio.auth] Auth request from core_mosquitto for mqtt
19-06-25 11:38:34 INFO (MainThread) [hassio.auth] Success login from mqtt
19-06-25 11:39:00 INFO (MainThread) [hassio.auth] Auth request from core_mosquitto for mqtt
19-06-25 11:39:00 INFO (MainThread) [hassio.auth] Success login from mqtt
19-06-25 11:39:26 INFO (MainThread) [hassio.auth] Auth request from core_mosquitto for mqtt
19-06-25 11:39:26 INFO (MainThread) [hassio.auth] Success login from mqtt
Tried the mosquitto with webinterface add on and created a log in credentials in the add on and now the tasmota devices connect. Still cant get discovery to work though.
This is identical to the fault I’ve been banging my head against a wall with for weeks… for me I narrowed it down to being something to do with my network but I’ve yet to find the solution…
I was struggling with this as well. I used most of rob196’s instructions. Everything finally worked when I decided to use the MQTT under the “Discovered” section.
It’s been a while since anyone has posted but there doesnt seen to be an answer anywhere, so for anyone else browsing who has the same code/error, try: