MQTT integration not working on HA 2024.1.1 dockerized

Hello everyone.

I setup a MQTT integration on my 2024.1.1 docker-HA running on a RPi.

The integration setup and initial configuration work fine.

If I try then the integration, click on it → configuration and then try to publish a message to a topic it fails , and HA displays the message

Service mqtt.publish not found.

Does anyone have an idea of why this happens?

Thanks

Do you see anything in the logs ?

You would get this if the mqtt integration did not load.

The logs do not contain any reference to an error of the mqtt integration. I checked under settimgs → system → full logs

At setup time of the integration, if I check the mqtt broker logs, I see that there is communication between the parties and the setup connection is successful. Not sure if this helps.

I was able to fix the situation.

Apparently it was enough to (hard) restart home assistant from docker perspective, instead of restarting it from the web app.

Now everything works fine