# \#widgets

**URL:** https://community.openhab.org/tag/widgets/1651.md

[Latest](https://community.openhab.org/latest.md) · [Categories](https://community.openhab.org/categories.md) · [Tags](https://community.openhab.org/tags.md)

---

## [OH 5.1.0 Widget Display issue on Tablet/Apple Device](https://community.openhab.org/t/oh-5-1-0-widget-display-issue-on-tablet-apple-device/167649)

<div class="topic-metadata">

**Author:** [@Mark\_VG](https://community.openhab.org/u/Mark_VG)\
**Replies:** 1\
**Last updated:** [December 31, 2025, 7:51am UTC](https://community.openhab.org/t/oh-5-1-0-widget-display-issue-on-tablet-apple-device/167649 "2025-12-31T07:51:21Z")

</div>

Hi All I have just updated to OH 5.1.0, and am pertty sure this is a new issue, however can’t be 100% sure. I have a widget that should look like: However it is opening like: This only happens on some devices (…

---

## [JavaScript with custom Widgets](https://community.openhab.org/t/javascript-with-custom-widgets/157142)

<div class="topic-metadata">

**Author:** [@L\_B](https://community.openhab.org/u/L_B)\
**Replies:** 14\
**Last updated:** [July 13, 2024, 9:45pm UTC](https://community.openhab.org/t/javascript-with-custom-widgets/157142 "2024-07-13T21:45:58Z")

</div>

Is there a way to use a .js file with a custom widget? I want to be able to run the .js somehow when I switch on that button written in the .yaml file. I’m aware that you can write expressions, but I want to be able …

---

## [Multiple PID Controllers with different rules](https://community.openhab.org/t/multiple-pid-controllers-with-different-rules/157179)

<div class="topic-metadata">

**Author:** [@L\_B](https://community.openhab.org/u/L_B)\
**Replies:** 4\
**Last updated:** [July 13, 2024, 3:50pm UTC](https://community.openhab.org/t/multiple-pid-controllers-with-different-rules/157179 "2024-07-13T15:50:47Z")

</div>

Is it possible to have like 3 rules, each rule has a PID Controller trigger, and only one rule can be run at a time? I haven’t tried something like that since I don’t have a thing to try on yet, but was wondering about …

---

## [Bayesian Sensors in OH4](https://community.openhab.org/t/bayesian-sensors-in-oh4/155686)

<div class="topic-metadata">

**Author:** [@JustinG](https://community.openhab.org/u/JustinG)\
**Replies:** 0\
**Last updated:** [April 28, 2024, 4:01pm UTC](https://community.openhab.org/t/bayesian-sensors-in-oh4/155686 "2024-04-28T16:01:33Z")

</div>

In this tutorial, I’m going to update for OH4 the system I introduced in OH3 for managing items which use Bayesian probabilities for determining a particular binary status. ▶ You can find the components of the OH3 version…

---

## [Widget with JS not properly loaded / displayed](https://community.openhab.org/t/widget-with-js-not-properly-loaded-displayed/155281)

<div class="topic-metadata">

**Author:** [@olili](https://community.openhab.org/u/olili)\
**Replies:** 1\
**Last updated:** [April 9, 2024, 2:52pm UTC](https://community.openhab.org/t/widget-with-js-not-properly-loaded-displayed/155281 "2024-04-09T14:52:33Z")

</div>

I want tot visualize a string of values (“1,2,3,4,5”) in a line chart with chart.js within in a widget. Attached widget code is basically doing the job when I go to settings → pages → page with included widget. (http:…

---

## [\[Widgets\]\[Question\] Why use \`.state.Split(' ')\[0\]\` and not \`Number.parseFloat(.state)\`/\`Number.parseInt(.state)\`?](https://community.openhab.org/t/widgets-question-why-use-state-split-0-and-not-number-parsefloat-state-number-parseint-state/150588)

<div class="topic-metadata">

**Author:** [@ThaDaVos](https://community.openhab.org/u/ThaDaVos)\
**Replies:** 11\
**Last updated:** [October 27, 2023, 2:49pm UTC](https://community.openhab.org/t/widgets-question-why-use-state-split-0-and-not-number-parsefloat-state-number-parseint-state/150588 "2023-10-27T14:49:24Z")

</div>

In a lot of Widgets I see people use .state.split(' ')\[0\] to get rid of the unit used, but as far as I know the whole Number object is available, including Number.parseInt and Number.parseFloat - why aren’t these used mo…

---

## [Substitutions in widgets](https://community.openhab.org/t/substitutions-in-widgets/150303)

<div class="topic-metadata">

**Author:** [@d51x](https://community.openhab.org/u/d51x)\
**Replies:** 12\
**Last updated:** [October 21, 2023, 3:58pm UTC](https://community.openhab.org/t/substitutions-in-widgets/150303 "2023-10-21T15:58:04Z")

</div>

Hi, All when making complex widgets where you need to calculate a color or icon depending on conditions, you have to describe the same thing many times and in continuation of the topic Using vars in custom widgets: wh…

---

## [Custom Widget: Item defined in property not shown](https://community.openhab.org/t/custom-widget-item-defined-in-property-not-shown/132707)

<div class="topic-metadata">

**Author:** [@eric1905](https://community.openhab.org/u/eric1905)\
**Replies:** 11\
**Last updated:** [October 14, 2023, 6:01am UTC](https://community.openhab.org/t/custom-widget-item-defined-in-property-not-shown/132707 "2023-10-14T06:01:20Z")

</div>

Hello everyone, I am trying to build a custom widget to show my energy consumption in a bar chart. But I have some troubles showing my Item defined in the property. uid: strom\_balkendiagramm\_Stunde tags: \[\] props: p…

---

## [MainUI check for Null value to set visibility](https://community.openhab.org/t/mainui-check-for-null-value-to-set-visibility/147809)

<div class="topic-metadata">

**Author:** [@Dominik\_Bernhardt](https://community.openhab.org/u/Dominik_Bernhardt)\
**Replies:** 3\
**Last updated:** [July 15, 2023, 10:39am UTC](https://community.openhab.org/t/mainui-check-for-null-value-to-set-visibility/147809 "2023-07-15T10:39:17Z")

</div>

I try to set a oh-list-item to be visible depending whether a certain item contains a value or is NULL. It was easy to check for specific values but I fail to check for NULL. Could someone please advise how a expression …

---

## [Example Custom List Widgets](https://community.openhab.org/t/example-custom-list-widgets/116265)

<div class="topic-metadata">

**Author:** [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Replies:** 90\
**Last updated:** [July 3, 2023, 2:26am UTC](https://community.openhab.org/t/example-custom-list-widgets/116265 "2023-07-03T02:26:24Z")

</div>

NOTE: I will keep this post around for reference but all of these widgets will be migrated to the new Marketplace. I’ve been creating a bunch of custom list widgets to use as default list widgets on my similar Items. Th…

---

## [Button text vertical](https://community.openhab.org/t/button-text-vertical/145901)

<div class="topic-metadata">

**Author:** [@adm105](https://community.openhab.org/u/adm105)\
**Replies:** 2\
**Last updated:** [April 8, 2023, 4:26pm UTC](https://community.openhab.org/t/button-text-vertical/145901 "2023-04-08T16:26:09Z")

</div>

I would like to vertically arrange the text of a button within a widget to save space. In CSS I found a wording like ‘text orientation upright’. Is this even possible in OH3 and how can I realize this? - component: …

---

## [Simple light switch widget with icon/image of bulb f.ex is clickable and changing state](https://community.openhab.org/t/simple-light-switch-widget-with-icon-image-of-bulb-f-ex-is-clickable-and-changing-state/144807)

<div class="topic-metadata">

**Author:** [@ollys](https://community.openhab.org/u/ollys)\
**Replies:** 14\
**Last updated:** [March 1, 2023, 10:56pm UTC](https://community.openhab.org/t/simple-light-switch-widget-with-icon-image-of-bulb-f-ex-is-clickable-and-changing-state/144807 "2023-03-01T22:56:58Z")

</div>

Maybee i didn’t searched well, but i didn’t found such a simple widget solution till now… I want to show only an image of a light bulb or a pump or whatever… in the “off” state… and when hitting this state it turn on an…

---

## [Displaying item value leveraging "Item-Steuerung" widget in Android app ignores formatting](https://community.openhab.org/t/displaying-item-value-leveraging-item-steuerung-widget-in-android-app-ignores-formatting/140012)

<div class="topic-metadata">

**Author:** [@ohb1138](https://community.openhab.org/u/ohb1138)\
**Replies:** 7\
**Last updated:** [December 4, 2022, 1:35pm UTC](https://community.openhab.org/t/displaying-item-value-leveraging-item-steuerung-widget-in-android-app-ignores-formatting/140012 "2022-12-04T13:35:26Z")

</div>

Hi there, I am using the latest version of the OpenHAB Beta app for Android and I just want just to display an item value on my Android Desktop without doing any action. Hence I “misuse” the item control widget “Item-S…

---

## [Parsing through the model in a widget,](https://community.openhab.org/t/parsing-through-the-model-in-a-widget/140991)

<div class="topic-metadata">

**Author:** [@Schrott.Micha](https://community.openhab.org/u/Schrott.Micha)\
**Replies:** 6\
**Last updated:** [November 16, 2022, 10:19pm UTC](https://community.openhab.org/t/parsing-through-the-model-in-a-widget/140991 "2022-11-16T22:19:10Z")

</div>

Hi guys, is there a way I can parse the model in my widgets? e.g. I have hundreds of temperature items that shall get a “Default Standalone widget”. It would be great if I didn’t have to configure each widget separate…

---

## [Map widget-table cells to items](https://community.openhab.org/t/map-widget-table-cells-to-items/140413)

<div class="topic-metadata">

**Author:** [@Gthorsten](https://community.openhab.org/u/Gthorsten)\
**Replies:** 2\
**Last updated:** [October 29, 2022, 2:43pm UTC](https://community.openhab.org/t/map-widget-table-cells-to-items/140413 "2022-10-29T14:43:01Z")

</div>

Hi, I’m not shure what’s the right category for that. I try to explain my use case, and my actual solution. But I’m not shure if this is the best or correct solution. Maybe someone have better ideas. In a custom-widge…

---

## [OH3 Questions about designing an OH button](https://community.openhab.org/t/oh3-questions-about-designing-an-oh-button/139625)

<div class="topic-metadata">

**Author:** [@adm105](https://community.openhab.org/u/adm105)\
**Replies:** 2\
**Last updated:** [October 4, 2022, 1:57am UTC](https://community.openhab.org/t/oh3-questions-about-designing-an-oh-button/139625 "2022-10-04T01:57:01Z")

</div>

Hallo Community, in a user widget I added an oh-button at the end and would like to configure it a bit. After several unsuccessful attempts, I am no longer sure whether my ideas are effective. First the code: - co…

---

## [OH3 item/widget: switch with multiple buttons?](https://community.openhab.org/t/oh3-item-widget-switch-with-multiple-buttons/112671)

<div class="topic-metadata">

**Author:** [@franks](https://community.openhab.org/u/franks)\
**Replies:** 37\
**Last updated:** [October 1, 2022, 4:13pm UTC](https://community.openhab.org/t/oh3-item-widget-switch-with-multiple-buttons/112671 "2022-10-01T16:13:34Z")

</div>

Hey forumers, I want to use/develop a widget to control the HVAC mode of my heating actuator. In a sitemap you simply would do something like that: Switch item=Livingroom\_Heating\_HVAC\_Mode label="HVAC Mode" icon="heati…

---

## [displayState should be ALWAYS set, making widget code less cumbersome](https://community.openhab.org/t/displaystate-should-be-always-set-making-widget-code-less-cumbersome/136596)

<div class="topic-metadata">

**Author:** [@sidamos](https://community.openhab.org/u/sidamos)\
**Replies:** 2\
**Last updated:** [June 13, 2022, 12:26pm UTC](https://community.openhab.org/t/displaystate-should-be-always-set-making-widget-code-less-cumbersome/136596 "2022-06-13T12:26:27Z")

</div>

The displayState of an item should be ALWAYS set. Currently it is not, so developing custom widgets can get quite annoying. These seem to be the rules: No state description from me or binding → no displayState set St…

---

## [Standard widget, configuration popup doesnt appear when click on + button or configure icon menu](https://community.openhab.org/t/standard-widget-configuration-popup-doesnt-appear-when-click-on-button-or-configure-icon-menu/134266)

<div class="topic-metadata">

**Author:** [@livio](https://community.openhab.org/u/livio)\
**Replies:** 14\
**Last updated:** [March 21, 2022, 12:38pm UTC](https://community.openhab.org/t/standard-widget-configuration-popup-doesnt-appear-when-click-on-button-or-configure-icon-menu/134266 "2022-03-21T12:38:23Z")

</div>

Dear all, I’m running OH 3.3.0 snapshot S 2806, the latest one; When adding a layout page, after adding block, row and column and then I click on the “+” button, nothing happens ( It should popup the list of available …

---

## [UI3 widgets with very slow response times](https://community.openhab.org/t/ui3-widgets-with-very-slow-response-times/134106)

<div class="topic-metadata">

**Author:** [@ffr](https://community.openhab.org/u/ffr)\
**Replies:** 4\
**Last updated:** [March 15, 2022, 1:08pm UTC](https://community.openhab.org/t/ui3-widgets-with-very-slow-response-times/134106 "2022-03-15T13:08:23Z")

</div>

I switched from Sitemaps to UI3 pages on my wall tablets recently. Response times on my budget tablets ( dragontouch MAX-10 running Android 10) with Sitemaps where fine. The response time for UI3 pages in general is als…

---

## [Overriding the model State Description in an OH standard widget](https://community.openhab.org/t/overriding-the-model-state-description-in-an-oh-standard-widget/134150)

<div class="topic-metadata">

**Author:** [@sidamos](https://community.openhab.org/u/sidamos)\
**Replies:** 9\
**Last updated:** [March 12, 2022, 3:04pm UTC](https://community.openhab.org/t/overriding-the-model-state-description-in-an-oh-standard-widget/134150 "2022-03-12T15:04:25Z")

</div>

For example, I have a CO2 sensor and I have set the State Description in the model to “%.0f ppm”. Now I have parts of the UI with little space and I just want to have the number alone (“%.0f”) there. Same with temperatu…

---

## [Custom widget properties: Color picker?](https://community.openhab.org/t/custom-widget-properties-color-picker/133958)

<div class="topic-metadata">

**Author:** [@sidamos](https://community.openhab.org/u/sidamos)\
**Replies:** 2\
**Last updated:** [March 6, 2022, 5:25pm UTC](https://community.openhab.org/t/custom-widget-properties-color-picker/133958 "2022-03-06T17:25:37Z")

</div>

For HabPanel, properties of custom widgets can have various types like String, Number, Checkbox, Item, Color. For OH3 custom widgets, according to https://www.openhab.org/docs/developer/bindings/config-xml.html, context…

---

## [Display the number of filtered groups items in a widget](https://community.openhab.org/t/display-the-number-of-filtered-groups-items-in-a-widget/121114)

<div class="topic-metadata">

**Author:** [@bdollerup](https://community.openhab.org/u/bdollerup)\
**Replies:** 30\
**Last updated:** [January 19, 2022, 3:46pm UTC](https://community.openhab.org/t/display-the-number-of-filtered-groups-items-in-a-widget/121114 "2022-01-19T15:46:53Z")

</div>

Hi all, I am looking for a way to display a summary of devices that are low on battery in a widget. Presently, I’m using a group, and when one or more devices are low on battery that group aggregate goes “ON” and change…

---

## [Further Documentation?](https://community.openhab.org/t/further-documentation/131984)

<div class="topic-metadata">

**Author:** [@CHTHSCH](https://community.openhab.org/u/CHTHSCH)\
**Replies:** 3\
**Last updated:** [January 17, 2022, 6:28pm UTC](https://community.openhab.org/t/further-documentation/131984 "2022-01-17T18:28:51Z")

</div>

When I started with openHAB 2 I purchased the book Spiller, Marianne, Smart Home mit openHAB 2 where I got a lot of inspirations and information how to setup openHAB. openHAB 3 provides a lot more functionality throug…

---

## [OH3 oh-cell popup from f7-chip or oh-button](https://community.openhab.org/t/oh3-oh-cell-popup-from-f7-chip-or-oh-button/131295)

<div class="topic-metadata">

**Author:** [@Mark\_VG](https://community.openhab.org/u/Mark_VG)\
**Replies:** 22\
**Last updated:** [January 8, 2022, 4:32pm UTC](https://community.openhab.org/t/oh3-oh-cell-popup-from-f7-chip-or-oh-button/131295 "2022-01-08T16:32:33Z")

</div>

Hi All On OH 3.2 is it possible to have multiple popups from an oh-cell using oh-button, f7-chip etc? I would like Test1 and Test 2 to popup different widget variations. I have tried the following (with a few varia…

---

## [YAML Code for Widgets in Getting Started - Pages - Overview Page](https://community.openhab.org/t/yaml-code-for-widgets-in-getting-started-pages-overview-page/129074)

<div class="topic-metadata">

**Author:** [@ohash](https://community.openhab.org/u/ohash)\
**Replies:** 12\
**Last updated:** [November 23, 2021, 5:22pm UTC](https://community.openhab.org/t/yaml-code-for-widgets-in-getting-started-pages-overview-page/129074 "2021-11-23T17:22:22Z")

</div>

Hi, i am almost done with the migriation to OH3 (currently running 3.2M4 on a Openhabian-installed Raspi 4). I am building now the UI with pages / widgets etc. I have seen the Getting Started - Pages part in the OH Do…

---

## [Default Value for widget properties](https://community.openhab.org/t/default-value-for-widget-properties/120752)

<div class="topic-metadata">

**Author:** [@stue](https://community.openhab.org/u/stue)\
**Replies:** 8\
**Last updated:** [April 19, 2021, 8:43pm UTC](https://community.openhab.org/t/default-value-for-widget-properties/120752 "2021-04-19T20:43:42Z")

</div>

Im looking for a way to define a default value for properties in custom widgets. I see the “workaround” @RGroll is using in the weather widget. "=(!props.itemPrefix) ? items.UVIndex.state : 'UV Index: ' + items\[props.i…

---

## [Size of oh-cell, possible to configure?](https://community.openhab.org/t/size-of-oh-cell-possible-to-configure/120989)

<div class="topic-metadata">

**Author:** [@Logos](https://community.openhab.org/u/Logos)\
**Replies:** 1\
**Last updated:** [April 18, 2021, 11:20am UTC](https://community.openhab.org/t/size-of-oh-cell-possible-to-configure/120989 "2021-04-18T11:20:44Z")

</div>

Is it possible to change the size of the OH-cell, e.g. same size as Location cards? Thanks for a hint on this

---

## [\[OH3\] Alignment questions](https://community.openhab.org/t/oh3-alignment-questions/116136)

<div class="topic-metadata">

**Author:** [@icompas](https://community.openhab.org/u/icompas)\
**Replies:** 2\
**Last updated:** [February 8, 2021, 12:15pm UTC](https://community.openhab.org/t/oh3-alignment-questions/116136 "2021-02-08T12:15:51Z")

</div>

I like to align an oh-icon object with a oh-button, but get different results in the mainUI widget designer vs. the actual page, where I’m using it. While designing it, the widget is displayed as desired, Using it i…

---

## [Widget that simulate mapping in Sitemap](https://community.openhab.org/t/widget-that-simulate-mapping-in-sitemap/115067)

<div class="topic-metadata">

**Author:** [@Yaron\_Cohen](https://community.openhab.org/u/Yaron_Cohen)\
**Replies:** 4\
**Last updated:** [January 29, 2021, 3:36pm UTC](https://community.openhab.org/t/widget-that-simulate-mapping-in-sitemap/115067 "2021-01-29T15:36:06Z")

</div>

Hello, In OH2.5 I used Sitemap to control my smart home. I used mapping to created buttons and scenarios: Switch item=Roller\_Control label="Blind \[%d\]" mappings=\["75"="75%", "DOWN"="▼", "STOP"="■", "UP"="▲"\] Switch ite…

[Next page](https://community.openhab.org/tag/widgets/1651.md?match_all_tags=true&page=1&tags%5B%5D=widgets)
