MQTT Not Loaded

Hi,
I have a problem with MQTT. I upgraded to version 2022/12 and my MQTT sensors stopped working.
I reconfigured them from the original: Sensor: MQTT: to MQTT: Sensor. I set up Mosquitto MQTT as instructed:

He created the mqttbroker user and in the integrations I saw MQTT, I set it up and configured it, in the next step I left everything as it was.
image

I restarted everything to be sure, but the MQTT integration says “Not Loaded”.
image

I tried mosquitto_sub and everything runs as it should there, as well as through the Windows application MQTT Explorer, which I connected to the broker and I can see the sensor changes.

If I look at the integration and try to start listening, it tells me that "Failed to call service mqtt/publish. Service not found.”

Any ideas?

i checked my own settings (using MQTT broker from the Add-On), and found the address is set to:

core-mosquitto

image

I tried that too. Same result, MQTT Not Loaded.

You have configured a username and password in the integration, but not in the add-on.

I tried that too. Same result, MQTT Not Loaded. I’ve tried just about everything.
Until now, I deleted everything related to mqtt from configuration.yaml, so it caught and loaded MQTT, which has a discovery character. So how do I get those there without this option?

  1. Your broker and the integration must match credentials. If you connected to the broker using MQTT Explorer, then you must have used no credentials - which is fine, but you have credentials entered on the integration. Remove them.

  2. Please do not post screen shots - no one will read them. Post any yaml using preformatted text tags. </> on the posting tool bar.

I just installed the broker on a machine without it…
After starting and configuring it, do NOT use ‘re-configure’, as HA already filled in the correct settings:
image

The username should remain ‘homeassistant’ with a system generated password :wink:

  • delete the MQTT broker addon
  • add it again and start it
  • in devices and integrations, locate the newly discovered mqtt and hit configure: Do you want to configure Home Assistant to connect to the MQTT broker provided by the add-on Mosquitto broker?
  • Success! Created configuration for Mosquitto broker.

And do not change anything else here…

1 Like

Hi, i solved it. The problem was in the last mqtt sensor, when I removed it everything started working like a charm. At the same time, the log referred me to the first line 327 in the config, where it was “mqtt:”, no mention that it was a specific sensor. Strange behavior.

Thanks. Your advice to remove/re-created fixed the the issue.

1 Like