Page 1 of 1

MQTT autodiscovery in Domoticz not working

Posted: Wednesday 25 October 2023 16:06
by Hiu80
Last week the sensors configured in my Domoticz system stopped working. After deleting and re-adding the MQTT autodiscovery plugin, the sensors are registered as switches, wich do not respond to any command en show no logging. I am using an ESP-32 wich is connected to my boiler, and sends MQTT topics to my mosquitto MQTT server. I add the MQTT AD plugin with the settings of the mosquitto broker.

Reinstalled my raspberry PI with the latest distro Bookworm. Whas running Buster. Reinstalled Domoticz and the latest version of Mosquitto. Edited the security settings to be able to connect to my broker.
Bought a new ESP module to exclude a broken one.

Re: MQTT autodiscovery in Domoticz not working

Posted: Wednesday 25 October 2023 17:13
by waltervl
Do you see MQTT AD messages with MQTT explorer? https://www.domoticz.com/wiki/MQTT#Debugging_MQTT
Is Domoticz seeing the MQTT broker (Mosquitto)?
What does the domoticz log say (menu setup - Log) if you restart the MQTT AD hardware in Domoticz? Select the MQTT AD hardware in menu setup - hardware and click on update to restart.

Re: MQTT autodiscovery in Domoticz not working

Posted: Wednesday 25 October 2023 20:11
by Hiu80
Yes, I believe so. See screenshot of my MQTT explorer.
Log from domoticz is also attached.

Re: MQTT autodiscovery in Domoticz not working

Posted: Wednesday 25 October 2023 21:07
by waltervl
Looks like you are missing sensor data in the ems-esp topics. So Ems is not sending the data as configured in the homeassistant config topics.

Re: MQTT autodiscovery in Domoticz not working

Posted: Wednesday 25 October 2023 22:10
by Hiu80
Ok, thanks for checking. Just to be sure; it looks like the ems-esp is not doing what it is supposed to be doing?

I will dig further and if i find out what the issue is i will post it here.

Re: MQTT autodiscovery in Domoticz not working

Posted: Wednesday 25 October 2023 22:35
by waltervl
Yes it looks like the ems-esp is not doing. See page for all the topics it should send https://emsesp.github.io/docs/MQTT/#published-data

Re: MQTT autodiscovery in Domoticz not working

Posted: Sunday 03 December 2023 21:25
by Bospieper
Hello,
I have the same problem, how and where can I change the contents of the outbound messages?
Grz. Piet

Re: MQTT autodiscovery in Domoticz not working

Posted: Monday 04 December 2023 9:37
by waltervl
If that is ems-esp related you have to check the documentation of this tool. See the link in my previous reply.

Re: MQTT autodiscovery in Domoticz not working

Posted: Saturday 09 December 2023 13:56
by mvveelen
Can you try this?

edit /etc/mosquitto/mosquitto.conf and add the following lines:

listener 1883
allow_anonymous true

I moved to Bookworm too and had the same issue, this solved it for me.