How to change the Label of a ListItem?

Hello,
short question. I am trying to manipulate the label of a listitem in the Yaml. However, it does not work. Does a ListItem do not have a Label?

component: oh-label-item
config:
  item: secondStartBatteryfromGrid
  label: Test
  title: 2nd Start Time Battery Grid

In a normal Label Card I am doing something like this which works as expected:

component: oh-label-card
config:
  title: 2nd Battery Grid Charging End Time
  item: endTime2ndBatteryChargingGrid
  label: =(Number(items.secondStartBatteryfromGrid.state)+Number(items.secondStartBatteryfromGridDuration.state))+":00"

However, same behaviour in Label ListItem without any effect?

  • Platform information:
    • Hardware: Rasperry Pi3
    • OS: Openhabian
    • Java Runtime Environment: Java22
    • openHAB version: 4.3.0

The oh-label-item does not have a label property:

When you supply the item the items display state will populate the label area of the item. There is no way to override that.

If you want something that is static, instead of the item state, then you probably just want to use the more generic oh-list-item instead (with the after property).

Yes, thanks after is doing the trick