MQTT not updates the item

Hello,
I use openhab 1.8.3 at my raspberry pi and try to use the mqtt binding, placed at the addon dir.
At the same raspberry a mosquitto mqtt broker is running.
I’ve tested this server a several time with different tools (mosquitto_pub, mosquitto_sub)
everything is working fine.

openhab.cfg

mqtt:broker.url=tcp://localhost:1883
mqtt:broker.retain=true
mqtt:broker.clientId=openhab

home.sitemap

String calHoliday “hello [%s]” (GRoom2) { mqtt="<[broker:openhab/cal_holiday:state:default]" }

home.items

Frame label=“MQTT” {
Text item=calHoliday label=“Cal holiday”
}

I’m running this command:

sudo mosquitto_pub -d -t openhab/cal_holiday -m “cool”

getting in the logs:

2016-05-30 08:33:43.391 [TRACE] [o.i.t.m.i.MqttBrokerConnection] - Received message on topic ‘openhab/cal_holiday’ : cool

But the web of my openhab server is still shows an empty string.
Any ideas?

Try removing one of your labels, either in your items file (label=“Cal holiday”) or in your sitemap (“hello [%s]”).

1 Like

Thanks!!!
work like a charm!