[SOLVED] MQTT with Tasmota - extended data via PaperUI

I installed (openhab 2.5) the internal MQTT Brocker and was able to bind to “basic” topics for my Tasmota driven Sonoff TH16.
I added a channel for the switch as
Status: stat/soth16/POWER and Command: cmnd/soth16/POWER
with custom value ON / OFF.
The device sends: stat/soth16/POWER = OFF and the switch goes off. But the device also sends sensor information like this:
tele/soth16/SENSOR = {“Time”:“2019-12-16T23:30:13”,“SI7021”:{“Temperature”:26.9,“Humidity”:32.4},“TempUnit”:“C”}

How can I get this values (Temp / Hum) via MQTT?

By the way it also sends Information (on boot) like this:
tele/soth16/INFO1 = {“Module”:“Sonoff TH”,“Version”:“7.1.2(tasmota)”,“FallbackTopic”:“cmnd/DVES_C81701_fb/”,“GroupTopic”:“cmnd/sonoffs/”}
tele/soth16/INFO2 = {“WebServerMode”:“Admin”,“Hostname”:“So1TH16”,“IPAddress”:“x.x.x.x”}
tele/soth16/INFO3 = {“RestartReason”:“Software/System restart”}
These informations (part of it) would be interresting to display in a UI.
I guess they can be read like the Temperature / Humidity values.
Anyhow - important are the values for T and H.

Can this even be done via Paper UI or do I have to work with Items / Things files?

Add a Number channel to your MQTT thing
state topic will be tele/soth16/SENSOR
Then click SHOW MORE and in the Incoming Value Transformations field write:

Save, create an item and link to the channel

After a few minutes your sonoff will report the temperature and your item will update

Repeat for the Humidity

1 Like

Works like a charm - thank you

Please tick the solution, Thanks

To work out the required JSONPATH, you can check with http://jsonpath.com/

A short follow up question - is it possible to round the numbers I receive?
Humidity would be great in XX.X%

Yes but what you are showing my is the Control UI. This is only for reference only. It is not mean to interact with your devices.
This is showing you the values of the channels

You want to link the channels to items and format the values of the items
You may want to set-up a sitemap to use with BasicUI or ClassicUI
You can then format the relevant item