Refreshing UI with value received from MQTT

I am trying to make a water level monitor using ultrasound. The monitor sends the level once every 2 second thru Mqtt. How can I refresh my UI to update the value send thru mqtt?

Create a thing that subscribes to the message from the monitor. Then create an item linked to that channel and display that item on a sitemap.
And not to forget create the bridge thing that connects to your mqtt broker.

I have created that and I am seeing the Values too. But my problem is I have to refresh the browser to see the new values. It doesnt Autoupdate with new values send by mqtt

Seems like its an issue with Basic UI. In Android its refreshing properly.


I’ve a post today stating a restart of openHAB should solve that.