Oh-list-item no longer displays items state

  • Platform information:
    • Hardware: aarch64/8GB/SD card UHS 1
    • OS: Raspbian (based on Debian 13)
    • Java Runtime Environment: OpenJDK Runtime Environment Temurin-21.0.8+9 (build 21.0.8+9-LTS)
    • openHAB version: 5.0.1 and 5.1.1
  • Issue of the topic: Oh-list-item no longer displays items state
  • Please post configurations (if applicable)

I have Oh-list-card widget defined on my Overview page.

It was running fine till this week, currently it looks like that:

component: oh-list-card
config:
  mediaList: false
  simpleList: true
  title: Gas meter
slots:
  default:
    - component: oh-label-item
      config:
        item: PI42_GARDEN_Gas_reader_current
        title: ="Current " + items.PI42_GARDEN_Gas_reader_current.state
        icon: gas
    - component: oh-label-item
      config:
        icon: gas
        iconUseState: false
        item: PI42_GARDEN_Gas_reader_yesterday
        title: Yesterday
    - component: oh-label-item
      config:
        item: PI42_GARDEN_Gas_reader_pre_yesterday
        title: Pre yesterday
  • Description:

Till this week all component configuration looked the same as the one named “Pre yesterday”.
All of them were presenting value I was expecting - namely the state of the item, title aligned to left, value aligned to right.
Two days ago I have noticed the values have disappeared.
I have not done anything that I would be aware of.
I see nothing in logs (/var/logs/openhab/*), but then I do not even know what I would need to look for.
I have noticed that OH has never version, so just for check I have updated from 5.0.1 to 5.1.1.

That did not help/changed anything.

The last thing I have tried is in first item, with this “dirty” hack it kind of works I see the state value but I would like to get original functionality working (it looks way better).

I would appreciate any hint where to look for solution, so far I was not able to dig any similar issue here.

https://community.openhab.org/t/items-in-list-on-page-do-not-show-values-anymore-in-oh-5-1

1 Like

Two things:

  1. I have no idea how I did not found this ticket before… Thank you very much
  2. The ultimate solution for me was to remove both attributes - mediaList and simpleList.