OH3: Item state in badge

If have some number items with map-options and now I would like to present this item state (with string from them option map) in standard widget badge.

like this

badge: “=items.MYITEM.state”
(btw. this expression only present the number of the state of item and not the transformed string from the map).

br hobaka

For badges please have a look here, it explains what is possible/not possible and how to use badges on i.e. the Location card.

Did You try

badge: “=items.MYITEM.displayState”

thanks, so easy!!

Do you have a link, to learn this methodology of ITEMS?

You can check here for example :

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.