Now correct me if Im wrong: my OpenHAB available topic would be “tele/ESPDHT11/SENSOR”
and JSONPATH would be DHT11.Temperature, so “JSONPATH:$.DHT11.Temperature”
Question: with MQTT I should normally be able to subscribe to topic “Temperature” and get that value, no JSON parsing necessary. What am I missing?
What makes you think this? This is not true for Tasmota defaults, at least - that will always publish a JSON payload.
Looks correct based on the MQTT Explorer screenshot. Make sure to put the topic into the MQTT State Topic field of the MQTT Channel, and the JSONPATH stuff into Incoming Value Transformations (click the Advanced checkbox to show this field).
Make sure to have the JSONPATH Transformation Service installed - it’s not by default.
I do have JSONPATH transformations installed, as well as Jinga Transformations.
under things/configuration, i change nothing.
under things.channel.configuration: i place @MQTTstatetopic the topic ‘/tele/ESPDHT11/SENSOR’
under JSONPATH transformation i place: JSONPATH:$.DHT11.Temperature
…and it WORKS!
Among other problems, that last hiccup, as written above, I had an extra “/” at the beginning of my topic string that had gone unnoticed
yes. under things:channel:link to item, profile. I should leave it as “default” and not “JSONPATH” What would profile “JSONPATH” we used for then? Time to read the Docs!
I only selected it without looking/understanding what is was; JSONPATH I only assumed was what I was going for, but I guess that would be redundant.