Can't write history to String item

  • Platform information:
    • Hardware: OrangePi 3 zero / 4 RAM / SD card 16 gb
    • OS: _Orangepizero3_1.0.0_ubuntu_jammy_desktop_xfce_linux6.1.31
    • Java Runtime Environment:openjdk version “17.0.14”
    • openHAB version: 4.3.4
    • Influxe DB

Hello!
sorry for stupid question )
I want to save (and display, of course) some text messages (e.g. “MCU started”).
I created String item, installed InfluxDB persistence.

And I can see the history saves successfully:

curl -X GET "http://127.0.0.1:8080/rest/persistence/items/item_events?serviceId=influxdb"
{"name":"item_events","datapoints":"7","data":[{"time":1745049775160,"state":"**w**"},{"time":1745049782418,"state":"**ww**"},{"time":1745049784035,"state":"**www**"}, etc

But when I try to see the Item’s value or create “list card” - there is only last (runtime, not saved) value.

So can I solve this issue?
Thank you!

The problem here is that there’s no way for a MainUI Widget to query persistence. If you want to show these on MainUI you’ll need to create Items to store these historic values in a way that they can be shown in MainUI. You’ll also need a rule to update these Items as the main Item changes.

… maybe I incorrect described: when I sad “see the Item’s value” I mean:
I can see a historical chart (through Page - cell - analize) .
But it works fine only for numbers.

I found Widget “List card” and it looks like was designed for creating historical String lists.
But I can see only current value (.

No the list card is for lists, but not historical data from a single item. No widget has access to the past states of an item unless you manually configure a way (usually another item) .

This recent thread may help you understand a little better.

1 Like

JustinG, rlkoshak - thank you very much!