hobaka
(hobaka)
May 28, 2021, 5:54am
1
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.
hmerk
(Hans-Jörg Merk)
May 28, 2021, 7:47am
3
Did You try
badge: “=items.MYITEM.displayState”
hobaka
(hobaka)
May 28, 2021, 8:14am
4
thanks, so easy!!
Do you have a link, to learn this methodology of ITEMS?
hmerk
(Hans-Jörg Merk)
May 28, 2021, 8:18am
5
You can check here for example :
UPDATE: The most current information on this topic is now available at: User Interface Design Overview | openHAB . The following is kept for archival purposes only!
Configuring widgets
No matter which type of page you’re editing, the designer will feature black buttons beside most widgets, that open a contextual menu for the widget in question:
[image]
These menus will in most cases allow you to:
configure the documented parameters with a config sheet (“Configure Widget” or similar);
open th…
system
(system)
Closed
July 9, 2021, 12:18am
6
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.