Hello, I’m using Hassio 0.87.1 with official Mosquitto add-on which I configured with this guide. So I left default config settings (without username and password), created a new user and then used the user’s credentials in MQTT integrations. My broker is the IP of my Pi that is running Hassio and port is 1883 with discovery enabled. I have no mqtt: in configuration.yaml as the guide advised.
When I restarted the Home Assistant, info doesn’t show any error logs and system even shows success login from the user. But when I run following commands in SSH as a test, I get Connection refused: not authorised.
So I should leave it blank and set port and broker? I chose MQTT integration from all available integrations. If I choose the MQTT integration at top of the page I can only enable discovery, nothing else.
You can leave out everything in config yaml and use the integration with discovery and leave the broker at the defaults (as long as you use a HA username/password for your devices) It will all just work.
You don’t need to specify a username and password if you use a home assistant user for your devices when you configure MQTT (on the device). I also use the default settings for the addon…
The only caveat as I said is your Home assistant user cannot be homeassistant and I think addons is the other reserved name.
I don’t follow. So basically I don’t need to do anything but specify on the client device username and password? And ti should be one of the home assistant users as long as it’s not homeassistant and addons?
I probably don’t know how to do it. I’m trying to publish /homeassistant/hello topic with “Hello” in payload and nothing shows in the logs. Not even unsuccessful connection.