MQTT Auto Discovery do not work

I have problem with MQTT and Auto Discovery.
I use HAOS 9.5 with Home Assistant 2023.3.6 and have installed Mosquitto broker addon version 6.2.0
Im setup Mosquitto create certificates for server and clients and I can login and see data MQTT Explorer. Im connect OpenDTU(ESP32 board for solar inverters management) to it which support HA Auto Discovery.
I see DTU inside MQTT Explorer and I see that Home Assistant has send status:
slika

Inside devices/Integrations I don’t see any devices:
slika

MQTT Integration have enabled newly added entities:
slika

And have enabled Auto discovery in integration:
slika

In addon I have enabled only SSL ports:

Settings for MQTT Integration are default and looks like they can connect to MQTT broker and set status to online/ofline no mather if integration use port 1883 which is disabled in broker:

Is there any simple way to test if Auto Discovery work in integration? For example some simple tool? For now I have only one device connected to MQTT… Any hint what can be wrong?

Yes. If the OpenDTU device supports MQTT Discovery, it should be publishing a specially formatted JSON payload, what is referred to as a discovery payload, to Home Assistant’s discovery topic which, by default, begins with the word homeassistant.

Based on the screenshot you posted from MQTT Explorer, the OpenDTU is not publishing anything useful to the homeassistant topic. That’s why Home Assistant is unable to automatically discover it.

You are correct. Problem is in OpenDTU…
Yesterday Im in one ESPHOME device(Shelly Plus 1PM) add mqtt and it connect to broker:

It also show in MQTT Integration:
slika

So problem is really in OpenDTU(I need report issue)…

1 Like

Hi @DejanBukovec, I have the same issue did you already create a bug report at OpenDTU?

For me work. When Im add Inverters into DTU it send inverter data to MQTT and show them into home assistant…
DTU status is not send to home assistant…

1 Like