[SOLVED] Cannot get MQTT Value to show up in Basic UI (Works in Paper Fine)

  • Platform information:
    • Hardware: RP 4 4GB
    • OS:
    • Java Runtime Environment: 1.8.0_222
    • openHAB version: 2.5

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)


No and yes.

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”}

and the sitemap I used was…

Text item=TestNodeMCU_Temp

Newbie excitement, yay :slight_smile:

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.

1 Like

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 ?

All automagic.

Smart to think about how you backup your system, once you’ve invested some effort into it.

Automagic ?, What is the best method to backup everything ?

When you change settings in PaperUI it is automatically stored, there is no special “save” action for you to take.

You can research that on your own. It depends on you system for a start. No point me telling you how I do my Win7 laptop, I suspect.

1 Like