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.
MQTT autodiscovery in Domoticz not working
Moderator: leecollings
-
- Posts: 14
- Joined: Thursday 11 April 2019 13:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 16182
- Contact:
MQTT autodiscovery in Domoticz not working
- Attachments
-
- 2023-10-25_14-49-38-3.png (39.37 KiB) Viewed 2498 times
-
- 2023-10-25_14-48-56-2.png (244.54 KiB) Viewed 2498 times
-
- 2023-10-25_14-48-16-1.png (89.32 KiB) Viewed 2498 times
- waltervl
- Posts: 5904
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: MQTT autodiscovery in Domoticz not working
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.
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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 14
- Joined: Thursday 11 April 2019 13:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 16182
- Contact:
Re: MQTT autodiscovery in Domoticz not working
Yes, I believe so. See screenshot of my MQTT explorer.
Log from domoticz is also attached.
Log from domoticz is also attached.
- Attachments
-
- 2023-10-25_16-06-19-5.jpg (116.55 KiB) Viewed 2461 times
-
- domoticz log.txt
- (10.34 KiB) Downloaded 75 times
-
- 2023-10-25_16-06-19-4.jpg (388.61 KiB) Viewed 2463 times
- waltervl
- Posts: 5904
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: MQTT autodiscovery in Domoticz not working
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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
- Posts: 14
- Joined: Thursday 11 April 2019 13:02
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 16182
- Contact:
Re: MQTT autodiscovery in Domoticz not working
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.
I will dig further and if i find out what the issue is i will post it here.
- waltervl
- Posts: 5904
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: MQTT autodiscovery in Domoticz not working
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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- Bospieper
- Posts: 166
- Joined: Thursday 07 November 2019 10:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: NL
- Contact:
Re: MQTT autodiscovery in Domoticz not working
Hello,
I have the same problem, how and where can I change the contents of the outbound messages?
Grz. Piet
I have the same problem, how and where can I change the contents of the outbound messages?
Grz. Piet
- waltervl
- Posts: 5904
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2024.7
- Location: NL
- Contact:
Re: MQTT autodiscovery in Domoticz not working
If that is ems-esp related you have to check the documentation of this tool. See the link in my previous reply.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
- mvveelen
- Posts: 697
- Joined: Friday 31 October 2014 10:22
- Target OS: NAS (Synology & others)
- Domoticz version: Beta
- Location: Hoorn, The Netherlands
- Contact:
Re: MQTT autodiscovery in Domoticz not working
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.
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.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Who is online
Users browsing this forum: Bing [Bot] and 1 guest