openjdk version "11.0.10" 2021-01-19 LTS
OpenJDK Runtime Environment Zulu11.45+27-CA (build 11.0.10+9-LTS)
OpenJDK Client VM Zulu11.45+27-CA (build 11.0.10+9-LTS, mixed mode)
openHAB version: 3.0.2
Issue of the topic: I have an item being updated by a REST call
The events.log file shows the item updating
The ANALYSE plot shows the values
but the UI Cell is not updating (V3.0.1 = OK)
Here is the REST update call: curl -u RESTuser:2613 -X PUT --header 'Content-Type: text/plain' --header 'Accept: application/json' http://localhost:8080/rest/items/LocalHost_Disk0Used/state -d 29
Here is what appears in event.log at the same time [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'LocalHost_Disk0Used' changed from 30 to 29
If the Item is updating through REST, what’s the MQTT Thing doing? You don’t need both. Given you are using curl to update the Item MQTT isn’t even involved.
Furthermore, that Thing is subscribing to a topic for updates too so if there does happen to be something publishing to that topic, that too will update the Item independently from what ever you are doing with curl.
What type of Item is LocalHost_Disck0Used?
What is the State Description metadata for this Item?
Given that the Items appears to have the right value, the problem is almost certainly the UI configs somehow.
I’ve not used oh-label-cell so don’t have much to offer beyond there potentially being something up with the State Description or you need to define the label parameter or something like that.
My most recent post is for a totally different Thing (no curl/REST involved) that is only updated with a normal MQTT message. It has the same issue with the oh-label-cell not updating - even though the underlying data value is correct.
I have reached a deadend with this. Everything (except updating the oh-label-cells) is working very well in V3.0.2 for me.
Maybe if someone else reports a similar problem … then this can be investigated.
That doesn’t tell us about the Item involved. Can we see the JSON for that, like before? It is helpful and heads off questions.
Note that doesn’t look like a valid unit so far as openHAB is concerned.
I don’t think that matters though, as the binding does not currently use it for incoming data.
Take a step back here - you’re telling us you can’t see the value in the UI, and then show us screenshots of (part of) the UI showing the values you do expect. MQTT Things and REST aren’t of much interest here, the Item state gets populated correctly.
As Rich says, the Item metdata pattern controls how the Item state is presented - what have you got there?
you’re telling us you can’t see the value in the UI
RC> YES. The UI shows just ‘-’
and then show us screenshots of (part of) the UI showing the values you do expect.
RC> YES … Inspecting the ITEM shows that it is getting updated with new values. It is just the LAYOUT page that is not updating
MQTT Things and REST aren’t of much interest here, the Item state gets populated correctly.
RC> Correct
“The Item metdata pattern controls how the Item state is presented - what have you got there?”
RC> There is nothing set for the metadata of the item.