Page 1 of 1

MQTT and DS18B20

Posted: 09 Mar 2021, 15:21
by jbaben
Hello,
I now want to send the temperature from the DS18B20 sensor via MQTT (Home Asistant (openHAB) MQTT).
Info controller:
Current Client ID: ESP_Easy_1_1
Controller Subscribe: %sysname%/Temperature
Topic on the reception side: ESP_Easy_1_1/Temperatur
MQTT Enable active.
Device DS18B20: Send to Controller is active.
I don't get any information from MQTT in the ESPEasy log file.
For information: the temperature is shown on the OLED display.

Kind Regards

Juergen B.

Re: MQTT and DS18B20

Posted: 09 Mar 2021, 15:25
by TD-er
Do you have some tool like MQTT Explorer which may help you to debug these kind of issues?
MQTT Explorer is present in the Microsoft Windows Store, for Windows.
For other OS'es there are other MQTT tools.

Then you first can try to subscribe to # (which is the wildcard topic) and see what is being sent.

Re: MQTT and DS18B20

Posted: 09 Mar 2021, 16:35
by jbaben
Hi,
many thanks for the answer.
The MQTT transmission works.
The reference to the "wildcard topic #" was very helpful.
My MQTT Explorer: "MQTT.fx".
Note Correct is: Controller Publish:% sysname%/Temperature

Kind Regards

Juergen B.

Re: MQTT and DS18B20

Posted: 09 Mar 2021, 16:47
by TD-er
Glad to hear it is now working :)