New install zigbee2mqtt looks fine but not updating in basic UI

Hi my names Sebastian and I’m a long time user of openhab. I fell off the wagon a while ago but now I’m back on and a little dusty.

I’ve installed a new system (openhab 4.0) and taken my old default.items and default.things from my old system and copied the into the new system.

I cant quite figure out what I’m missing, zigbee2mqtt output looks fine but theres no numbers showing at all in the basic ui. All that shows is the name and -(celsius symbol)

  • Platform information:
  • OS: ubuntu server 23.04 with openhab
  • Java Runtime Environment: zulu17
  • openHAB version: 4.0.4
    default.items
// Bathroom
Number          Bath_Temp               "Temp [%.1f °C]"        <temperature>          (Bathroom)                    	{channel="mqtt:topic:mosquitto_broker:bath_temp:temperature"}
Number          Bath_Humidity           "Humidity [%d %%]"      <humidity>             (Bathroom)                    	{channel="mqtt:topic:mosquitto_broker:bath_temp:humidity"}

default.things

Bridge mqtt:broker:mosquitto_broker [ host=localhost, secure=false]
{ 

Thing topic bath_temp "Temperature" @ "Bathroom"
    {
        Channels:
            Type number : temperature "temperature" [ stateTopic = "zigbee2mqtt/bath_temp/temperature" ]
            Type number : humidity "humidity" [ stateTopic = "zigbee2mqtt/bath_temp/humidity" ]
            Type number : pressure "pressure" [ stateTopic = "zigbee2mqtt/bath_temp/pressure" ]
            Type number : voltage "voltage" [ stateTopic = "zigbee2mqtt/bath_temp/voltage" ]
            Type number : battery "battery" [ stateTopic = "zigbee2mqtt/bath_temp/battery" ]
            Type number : linkquality "linkquality" [ stateTopic = "zigbee2mqtt/bath_temp/linkquality" ]
    }
}

Zigbee2mqtt log - looks normal

info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/temperature', payload '19.13'
info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/humidity', payload '63.08'
info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/pressure', payload '1024.6'
info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/voltage', payload '2995'
info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/battery', payload '97'
info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/power_outage_count', payload '9'
info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/linkquality', payload '27'
debug 2023-11-22 23:21:58: Received Zigbee message from 'bath_temp', type 'attributeReport', cluster 'msPressureMeasurement', data '{"measuredValue":1024,"scale":-1,"scaledValue":10243}' from endpoint 1 with groupID 0
info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/temperature', payload '19.13'
info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/humidity', payload '63.08'
info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/pressure', payload '1024.3'
info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/voltage', payload '2995'
info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/battery', payload '97'
info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/power_outage_count', payload '9'
info  2023-11-22 23:21:58: MQTT publish: topic 'zigbee2mqtt/bath_temp/linkquality', payload '30'


mosquitto seems happy

● mosquitto.service - Mosquitto MQTT Broker
     Loaded: loaded (/lib/systemd/system/mosquitto.service; enabled; vendor preset: enabled)
     Active: active (running) since Tue 2023-11-21 23:52:05 AEDT; 23h ago
       Docs: man:mosquitto.conf(5)
             man:mosquitto(8)
   Main PID: 686 (mosquitto)
      Tasks: 1 (limit: 2221)
     Memory: 2.5M
        CPU: 16.547s
     CGroup: /system.slice/mosquitto.service
             └─686 /usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf

Nov 21 23:52:05 openhabhq systemd[1]: Starting Mosquitto MQTT Broker...
Nov 21 23:52:05 openhabhq systemd[1]: Started Mosquitto MQTT Broker...

What have I missed? Openhab doesnt seem to be getting the message from MQTT broker? or have the transformations changed in default.items config? I’m a bit stumped.

There has been a lot of work on the UofM over the last ten months. At least for the temperature, change your item to Number:Temperature. Also maybe Number:Dimensionless if the Humidity isn’t working either.

Like this?

Does it work?

No it hasnt worked on either temperature or humidity. :frowning:

Do I need to modify these strings if you say a lot has change with UoM recently?

 "Temp [%.1f °C]" 

What has changed (IMO) is mostly an UofM validation routine. That’s why, despite not using textual configs myself, I thought it needed to be Number:Temperature. All my mqtt items are setup via the UI, but looking at the docs maybe it should be
Number Bath_Temp "Temperature [%.1f °C]"

If that doesn’t work, I’m not sure, sorry.

the title says basic ui
Are you using basic ui?
I think… with the new UOM that anything in the state presentation overrides the UOM but no clue… I’m guessing
and if you really are using basic ui, I have no idea how it works

Anyhow… you’ve got mqtt.fx or mqtt explorer or some other way of monitoring the server set up and the messages are getting sent right?