BasicUI items not showing values from MQTT events

  • Platform information:
    • Hardware: Rpi4
    • OS: ubuntu 20.04
    • Java Runtime Environment: java-8-openjdk-arm64
    • openHAB version: 2.5.4
  • Issue of the topic:

my Items definitions:

String Gate1State “Gate 1 State” (Garage) {mqtt="<[mosquitto:G1/state:state:default]"}
Number Gate1Value “Gate 1 Value” (Garage) {mqtt="<[mosquitto:G1/value:state:default]"}

my event logs, showing that openhab recieves the intended MQTT messages:

2020-05-20 13:49:49.535 [vent.ItemStateChangedEvent] - Gate1State changed from Stopped to Closing
2020-05-20 13:49:50.146 [vent.ItemStateChangedEvent] - Gate1State changed from Closing to Stopped
2020-05-20 13:49:50.148 [vent.ItemStateChangedEvent] - Gate1Value changed from 89 to 1605

BasicUI items are not showing the values sent over MQTT.
For clarity, the items labels do show up in BasicUI.
But when I trigger a state change/mqtt message, the basicUI page displaying the item in question seems to briefly reload (my mouse cursor flickers to the loading symbol and back).

When i check the page with the chrome “F12” function I find that these items have no data at all:

…div class=“mdl-form__control mdl-form__text” data-control-type=“text” data-item=“Gate1State” data-has-value=“false” data-widget-id=“Gate1State”>

Could anyone please shine a light on this?

Add [%s] at the end of your string item.


Thanks, that was the push I needed.

If anyone else should stumble on this.
After this hint I did find this in the documentation (must have read past this at least 3 times because I was too hasty).