Shelly H&T Sensor have a too long value/result at temperature and humidity

Unbenannt

Hello, I am new at openHAB and hope any one can help me.

Can I short this result at the code?

My setup:
openHAB 3.0.1
binding-shelly

code from Pages:

component: oh-label-card
config:
  trendItem: WohnzimmerHT_Temperatur
  action: analyzer
  actionAnalyzerItems:
    - WohnzimmerHT_Temperatur
  item: WohnzimmerHT_Temperatur
  title: Wohnzimmer Temperatur
  icon: oh:temperature

component: oh-label-card
config:
  trendItem: WohnzimmerHT_Luftfeuchtigkeit
  action: analyzer
  actionAnalyzerItems:
    - WohnzimmerHT_Luftfeuchtigkeit
  item: WohnzimmerHT_Luftfeuchtigkeit
  title: Wohnzimmer Luftfeuchtigkeit
  icon: oh:humidity

Create a State Description metadata for the Items and set the Pattern. Assuming these are using Units of Measurement you’d use something like

%.2f  °C

for the temp and

%.2f %%

for the humidity

1 Like

THANK YOU, IT WORKS!!! :grinning: