Hi! I installed Home Assistant on a mini pc few days ago. I want to visualize data from my energy-measuring power plugs. They will send the information via MQTT. Therfore i installed the MQTT Add-On and tired to configure it. Unfortunatley this is not possible. The auto-detect found the MQTT Addon but when i click on āconfigureā and then āsubmitā, it tells me, that the connection failed.
A list of local users that will be created with username and password. You donāt need to do this because you can use Home Assistant users too, without any configuration. If a local user is specifically desired:
Unfortunatley it was not possible to configure the integration, because the configuration windows does not open (like in the video). I even dont know the actual stock MQTT credentials.
As I remember you have to configure mqtt addon for integration to work. You have to specify port, host, username and password. Add mqtt user and password and use it for the addon.
Config file is somewhere in root subdir thatās homeassistant instalation dir.
The MQTT Add-on aka the MQTT Broker called Mosquitto
The MQTT integration for HA
First, you have to setup the MQTT Add-on correctly, with the config for the Add-on. This is from your last screenshot, the tab left to the log (āConfigurationā). Here you setup the server, that handles all connections and so on.
As a second step, you configure the integration. The integration in HA handles all the talk between HA and the server. It is, in very simple words, the connection, that HA (as a user) has to the MQTT server (aka the Add-on).
Thanks at all! The MQTT is working now. I just created a new user āmqtt-userā with a password in HomeAssistant and used this credentials in my MQTT devices (clients). It is working in combination with nodered as well!