Wemos DS18b20 string

I was using the above temp sensor with a Raspberry Pi to send the temperature of my fish tank to the dashboard. Now I want to use
a Wemos running Tasmota to do the same thing. The sensor sends out the following data to debug:

11/22/2019, 10:27:17 AMnode: Test Sensor Rawtele/Wemos1/SENSOR : msg.payload : string[76]

"{"Time":"2019-11-22T10:27:16","DS18B20":{"Temperature":63.6},"TempUnit":"F"}"

How do I extract the Temperature value (63.6) to send to the dashboard? The Time might be helpful too, but only the (10:27) part of it.

Hello MikeR, Welcome!

I am a newbie too and you may soon get more authoritative instructions from the regulars at this forum. All you need to do is the following:

msg.payload = msg.payload.DS18B20.Temperature;
msg.topic ="any string for good housekeeping";

before wiring to a dashboard chart.

Regards.

Additionally to the previous answers you may need to set the MQTT in node to output a parsed JSON object.

2 Likes

Well, that works! Thanks......