I have an ESP8266 sending temp values via MQTT to OH, everything is working into the Paper UI however I cannot seem to get the data to show up in the Basic UI. What are the steps to do so ?.
I think I need some code in .items and .sitemap (not exactly sure what exact code though, I have been doing a lot of trial and error inside the demo code with various google results and have cannot get anywhere)
You certainly need to get your data into an Item. You can create Items in PaperUI, or the old fashioned way in an xxx.items file, linking to a channel of your Thing.
You can find out if your Item updates as expected by looking in events.log
Only after you have a working Item, look at sitemap.
Ok I think I got it, I was getting confused with the literature saying I needed a bridge ?, I guess as long as it’s working in the paper UI its already bridged. The item I used was…
Number TestNodeMCU_Temp “Temperature [%.1f °C]” {channel=“mqtt:topic:60d1a5d4:temperature”}
In openHAB, a bridge is a sub-type of Thing.
A binding needs you to set up Things to describe external devices or services.
MQTT technology involves a broker service somewhere.
So openHAB MQTT binding wants you describe the broker connection with a Bridge type Thing.
Then you add topic Things to describe the various devices/topics you are interested in to & from the broker.
Sorry, one other dumb question. if the thing, binding is setup in paper, how do I ensure that when the PI gets powered down that everything saves so I don’t have to re-do everything ?