# \#groupitems

**URL:** https://community.openhab.org/tag/groupitems/1126.md

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

---

## [Randomize members list order in for loops](https://community.openhab.org/t/randomize-members-list-order-in-for-loops/70076)

<div class="topic-metadata">

**Author:** [@petero](https://community.openhab.org/u/petero)\
**Replies:** 1\
**Last updated:** [June 20, 2024, 6:13am UTC](https://community.openhab.org/t/randomize-members-list-order-in-for-loops/70076 "2024-06-20T06:13:38Z")

</div>

When using for loops for away ghost modes, or party random lights most of the samples does not randomize the order of light switching. A simple and quick way of randomizing the order of members in a group for use in a f…

---

## [Problem commanding Tapo P300 Power Strip channels because of min\_gap](https://community.openhab.org/t/problem-commanding-tapo-p300-power-strip-channels-because-of-min-gap/150082)

<div class="topic-metadata">

**Author:** [@nelson.aponte](https://community.openhab.org/u/nelson.aponte)\
**Replies:** 5\
**Last updated:** [November 19, 2023, 7:00pm UTC](https://community.openhab.org/t/problem-commanding-tapo-p300-power-strip-channels-because-of-min-gap/150082 "2023-11-19T19:00:35Z")

</div>

Hi. I recently updated to OH 4.0.1 and then to 4.0.3 but I keep having an issue sending commands to 2 of the channels (output2 and output3) of a P300 power strip with the OR Switch group I created to control the 3 items…

---

## [Members of a group what is correct way in OH3](https://community.openhab.org/t/members-of-a-group-what-is-correct-way-in-oh3/144809)

<div class="topic-metadata">

**Author:** [@Peter\_Novotny](https://community.openhab.org/u/Peter_Novotny)\
**Replies:** 10\
**Last updated:** [March 1, 2023, 9:42pm UTC](https://community.openhab.org/t/members-of-a-group-what-is-correct-way-in-oh3/144809 "2023-03-01T21:42:41Z")

</div>

During migration from OH2 to OH3 the groups does not work correctly. In forum many possibilities are mentioned: getMembers allMembers members Somehow members does not work in my DSL, allMembers seems to work, but retu…

---

## [How do I use members of an equipment group in a custom widget?](https://community.openhab.org/t/how-do-i-use-members-of-an-equipment-group-in-a-custom-widget/142186)

<div class="topic-metadata">

**Author:** [@RiFrioh33](https://community.openhab.org/u/RiFrioh33)\
**Replies:** 2\
**Last updated:** [December 17, 2022, 10:03pm UTC](https://community.openhab.org/t/how-do-i-use-members-of-an-equipment-group-in-a-custom-widget/142186 "2022-12-17T22:03:05Z")

</div>

Hello all, I am in the process of creating my first widget. The widget should access the members of the group gKuecheHVAC. I tried in the widget code to access the group member nKuecheSoll via props.item+“\_nKuecheSoll” …

---

## [Add/delete Group Members in Blockly?](https://community.openhab.org/t/add-delete-group-members-in-blockly/133282)

<div class="topic-metadata">

**Author:** [@mimafamilie](https://community.openhab.org/u/mimafamilie)\
**Replies:** 10\
**Last updated:** [May 6, 2022, 1:57pm UTC](https://community.openhab.org/t/add-delete-group-members-in-blockly/133282 "2022-05-06T13:57:34Z")

</div>

I am struggling through the different syntax (ECMA 5.1, ECMA 11, DSL). I am a beginner, so for many examples I don’t even know which syntax it is. Accordingly, I use Blockly where possible. Which code does Blockly actual…

---

## [Jython Rule: Member of group / do stuff only if the value of ALL items falls below a specific value](https://community.openhab.org/t/jython-rule-member-of-group-do-stuff-only-if-the-value-of-all-items-falls-below-a-specific-value/126783)

<div class="topic-metadata">

**Author:** [@boogie](https://community.openhab.org/u/boogie)\
**Replies:** 2\
**Last updated:** [September 23, 2021, 8:02pm UTC](https://community.openhab.org/t/jython-rule-member-of-group-do-stuff-only-if-the-value-of-all-items-falls-below-a-specific-value/126783 "2021-09-23T20:02:04Z")

</div>

Hi there, i´m in the process of implementing moisture monitoring. To do this, i put all my moisture sensors (tado) together in a group and created a dummy switch. As soon as an item rises above 60% humidity, the dummy …

---

## [Main UI Toggle Card not working with Groupitems](https://community.openhab.org/t/main-ui-toggle-card-not-working-with-groupitems/112743)

<div class="topic-metadata">

**Author:** [@isiko](https://community.openhab.org/u/isiko)\
**Replies:** 0\
**Last updated:** [January 3, 2021, 5:48pm UTC](https://community.openhab.org/t/main-ui-toggle-card-not-working-with-groupitems/112743 "2021-01-03T17:48:44Z")

</div>

Platform information: Hardware: Raspberry Pi 4 (4GB) OS: OpenHABian 64bit v1.6.2 Java Runtime Environment: Default openHAB version:Default I Tried to add Elements controlling Group Items to my overview Page, but they …

---

## [Sending off command to group of lights results in some lights staying on, with missing "changed to" log message](https://community.openhab.org/t/sending-off-command-to-group-of-lights-results-in-some-lights-staying-on-with-missing-changed-to-log-message/85824)

<div class="topic-metadata">

**Author:** [@petero](https://community.openhab.org/u/petero)\
**Replies:** 14\
**Last updated:** [April 28, 2020, 6:55pm UTC](https://community.openhab.org/t/sending-off-command-to-group-of-lights-results-in-some-lights-staying-on-with-missing-changed-to-log-message/85824 "2020-04-28T18:55:37Z")

</div>

I have a group of lights that corresponds to All First Floor lights (FF\_All\_Lights) I have this for Basement, and Second floor also, the problem happens on all groups. I am running openHAB M5. On the RPI 4. Problem: Wh…

---

## [Struggling with the concept of "Groups" - limitations or misunderstanding?](https://community.openhab.org/t/struggling-with-the-concept-of-groups-limitations-or-misunderstanding/76687)

<div class="topic-metadata">

**Author:** [@Nosepull](https://community.openhab.org/u/Nosepull)\
**Replies:** 10\
**Last updated:** [June 20, 2019, 7:21pm UTC](https://community.openhab.org/t/struggling-with-the-concept-of-groups-limitations-or-misunderstanding/76687 "2019-06-20T19:21:56Z")

</div>

Hello, for the setup of my smarthome I’m kind of struggling with OpenHAB’s concept of groups. I don’t know if I’m just misunderstanding something?! Right now I’m missing any added value because of the limitations I’m ex…

---

## [\[SOLVED\] Control a group of items via REST API](https://community.openhab.org/t/solved-control-a-group-of-items-via-rest-api/74425)

<div class="topic-metadata">

**Author:** [@Eddy1015](https://community.openhab.org/u/Eddy1015)\
**Replies:** 3\
**Last updated:** [May 14, 2019, 6:33pm UTC](https://community.openhab.org/t/solved-control-a-group-of-items-via-rest-api/74425 "2019-05-14T18:33:48Z")

</div>

Hi there! I’m trying to control a group of items via the REST API for creating iOS shortcuts. Here is screenshot my primitive setup of the iOS Shortcut for the request: ▶ 📷http://192.168.178.100:8080/rest/items/OG\_Wohn…

---

## [\[SOLVED\] findFirst\[ \] from Group doesn't find a match](https://community.openhab.org/t/solved-findfirst-from-group-doesnt-find-a-match/69098)

<div class="topic-metadata">

**Author:** [@dancemichi](https://community.openhab.org/u/dancemichi)\
**Replies:** 26\
**Last updated:** [March 2, 2019, 7:16pm UTC](https://community.openhab.org/t/solved-findfirst-from-group-doesnt-find-a-match/69098 "2019-03-02T19:16:26Z")

</div>

From a group that is defined as Group:Number:MIN gSpritpreise "Spritpreise \[%.2f\]" I’m trying to get the Item with the lowest value in a rule using cheapestItem = gSpritpreise.members.findFirst\[ p | p.state == gSpritp…

---

## [\[SOLVED\] Simple group forEach fails with NULL exception, why?](https://community.openhab.org/t/solved-simple-group-foreach-fails-with-null-exception-why/57910)

<div class="topic-metadata">

**Author:** [@kintrupf](https://community.openhab.org/u/kintrupf)\
**Replies:** 8\
**Last updated:** [November 26, 2018, 8:41pm UTC](https://community.openhab.org/t/solved-simple-group-foreach-fails-with-null-exception-why/57910 "2018-11-26T20:41:33Z")

</div>

I have a rather simple rule that should forward a global temperature setpoint for my radiators to each Z-Wave thermostat. Each Z-Wave thermostat has a setpoint item (type Number) that is a member of the group “group\_setp…

---

## [\[SOLVED\] Wrong number of lights "ON"](https://community.openhab.org/t/solved-wrong-number-of-lights-on/52812)

<div class="topic-metadata">

**Author:** [@Schuppenzot](https://community.openhab.org/u/Schuppenzot)\
**Replies:** 6\
**Last updated:** [October 2, 2018, 7:46pm UTC](https://community.openhab.org/t/solved-wrong-number-of-lights-on/52812 "2018-10-02T19:46:58Z")

</div>

Group:Switch:OR(ON, OFF) Lights "Aantal lampen aan: \[%d\]" \<light\> Group:Switch:OR(ON, OFF) LightSwitches (Lights) Group:Dimmer LightDimmers (Lights) The number of lights on my sitemap is wrong (6 where it should be 4). …

---

## [Best way to assign groups to many items](https://community.openhab.org/t/best-way-to-assign-groups-to-many-items/51990)

<div class="topic-metadata">

**Author:** [@stevegroom](https://community.openhab.org/u/stevegroom)\
**Replies:** 0\
**Last updated:** [September 22, 2018, 8:10am UTC](https://community.openhab.org/t/best-way-to-assign-groups-to-many-items/51990 "2018-09-22T08:10:21Z")

</div>

Platform information: Hardware: Raspberry Pi IIIB+ openHAB version: 2.3.0-1 release build Issue of the topic: I have added a lot of devices - including HueLights, TradfriLights, MyStrom switches mostly using Pa…

---

## [Group Definition types/functions in .items](https://community.openhab.org/t/group-definition-types-functions-in-items/47256)

<div class="topic-metadata">

**Author:** [@SkyDivingGeek](https://community.openhab.org/u/SkyDivingGeek)\
**Replies:** 6\
**Last updated:** [July 2, 2018, 8:02pm UTC](https://community.openhab.org/t/group-definition-types-functions-in-items/47256 "2018-07-02T20:02:27Z")

</div>

HI There, I have a question around groups in items. Yes, I am a total newbie. I have created a few easy groups from exapmples like: Group:Switch:OR(ON,OFF) gGuestBedroomLights “Guest Bedroom Lights” And they work wel…

---

## [Find out if an item is in another group](https://community.openhab.org/t/find-out-if-an-item-is-in-another-group/46631)

<div class="topic-metadata">

**Author:** [@kevin](https://community.openhab.org/u/kevin)\
**Replies:** 5\
**Last updated:** [June 19, 2018, 3:34am UTC](https://community.openhab.org/t/find-out-if-an-item-is-in-another-group/46631 "2018-06-19T03:34:44Z")

</div>

I’ve got a rule that picks out an Item based upon how long its been run for, and if its ON, I then want to check whether that Item is in another Group so I can apply a different set of conditions to it. Is there an easy…

---

## [Items that belong to two groups](https://community.openhab.org/t/items-that-belong-to-two-groups/33365)

<div class="topic-metadata">

**Author:** [@Fredrik\_Karlsson](https://community.openhab.org/u/Fredrik_Karlsson)\
**Replies:** 3\
**Last updated:** [May 1, 2018, 8:33pm UTC](https://community.openhab.org/t/items-that-belong-to-two-groups/33365 "2018-05-01T20:33:00Z")

</div>

Hi, Maybe this is expecting too much, but as I mainly program i languages where the “set” idea is important, i tend to want to think in sets. Ok, so if I have a group gOutsideLights that contain all lights outside. Now…

---

## [Persistence and "and" group aggregation](https://community.openhab.org/t/persistence-and-and-group-aggregation/43498)

<div class="topic-metadata">

**Author:** [@froemer](https://community.openhab.org/u/froemer)\
**Replies:** 3\
**Last updated:** [April 11, 2018, 9:21pm UTC](https://community.openhab.org/t/persistence-and-and-group-aggregation/43498 "2018-04-11T21:21:56Z")

</div>

Hello, I’m new here so please forgive me my ignorance. First thank you so much altogether, I wouldn’t have made it without you. For about two years all my questions have been asked and answered before. But now I facing…

---

## [Problems changing item type](https://community.openhab.org/t/problems-changing-item-type/37746)

<div class="topic-metadata">

**Author:** [@porsche](https://community.openhab.org/u/porsche)\
**Replies:** 3\
**Last updated:** [December 25, 2017, 7:42pm UTC](https://community.openhab.org/t/problems-changing-item-type/37746 "2017-12-25T19:42:50Z")

</div>

Hey guys, i have a problem after changing an item from String to Number. I have included this item in jdbc persistence and an item group, that i want to visualise as chart. The creation of the chart was done when the it…

---

## [Lifx Multi Command](https://community.openhab.org/t/lifx-multi-command/36932)

<div class="topic-metadata">

**Author:** [@eangulus](https://community.openhab.org/u/eangulus)\
**Replies:** 2\
**Last updated:** [December 4, 2017, 7:50pm UTC](https://community.openhab.org/t/lifx-multi-command/36932 "2017-12-04T19:50:41Z")

</div>

OK, complete noob here. Just getting my feet wet with OpenHAB and trying to learn some of the basics. Anyway, I have successfully setup and can control a Lifx Mini Colour Bulb. I did this using the text files for items…

---

## [Getting subgroup from group](https://community.openhab.org/t/getting-subgroup-from-group/35749)

<div class="topic-metadata">

**Author:** [@skatun](https://community.openhab.org/u/skatun)\
**Replies:** 1\
**Last updated:** [November 2, 2017, 3:11pm UTC](https://community.openhab.org/t/getting-subgroup-from-group/35749 "2017-11-02T15:11:19Z")

</div>

I would like to get a subgroup as a groupItem from a group, however i get this error 2017-11-02 07:41:58.109 \[INFO \] \[e.smarthome.model.script.time of day\] - G is now Group\_SetPoint\_PreHeat 2017-11-02 07:41:58.114 \[ERRO…

---

## [How to use groupItem.state in rule?](https://community.openhab.org/t/how-to-use-groupitem-state-in-rule/35584)

<div class="topic-metadata">

**Author:** [@JGluch](https://community.openhab.org/u/JGluch)\
**Replies:** 2\
**Last updated:** [October 28, 2017, 4:51pm UTC](https://community.openhab.org/t/how-to-use-groupitem-state-in-rule/35584 "2017-10-28T16:51:58Z")

</div>

I have a 24V power supply (on a KNX actor) that I want to switch off if no lights (on DALI) are on. So I have made the following items: Group:Dimmer:MAX g24Volt Dimmer Licht\_LED1 "Lichtleiste A \[%d %%\]" (g24Volt) { knx…

---

## [Switch items, one real, one fake, act as one](https://community.openhab.org/t/switch-items-one-real-one-fake-act-as-one/34454)

<div class="topic-metadata">

**Author:** [@psyciknz](https://community.openhab.org/u/psyciknz)\
**Replies:** 3\
**Last updated:** [September 24, 2017, 1:49am UTC](https://community.openhab.org/t/switch-items-one-real-one-fake-act-as-one/34454 "2017-09-24T01:49:38Z")

</div>

I have a zwave relay controlling my central heating (boiler) system. While making the rules, I had a switch item called pretend\_central\_heating that I would use as a guide to manually turn on the heating system when the…

---

## [Set default state of a group](https://community.openhab.org/t/set-default-state-of-a-group/34047)

<div class="topic-metadata">

**Author:** [@psyciknz](https://community.openhab.org/u/psyciknz)\
**Replies:** 2\
**Last updated:** [September 11, 2017, 5:59am UTC](https://community.openhab.org/t/set-default-state-of-a-group/34047 "2017-09-11T05:59:57Z")

</div>

I saw in \[SOLVED\]Set default item state to OFF instead of NULL that I can use a rule to set a default state of items. Is there an easy way I can set a whole group - ie all my motion\_detection items in one command: eg g…

---

## [\[SOLVED\] Can I mix a dynamic sitemap item (ie a group) with a specified item (image)](https://community.openhab.org/t/solved-can-i-mix-a-dynamic-sitemap-item-ie-a-group-with-a-specified-item-image/33352)

<div class="topic-metadata">

**Author:** [@psyciknz](https://community.openhab.org/u/psyciknz)\
**Replies:** 1\
**Last updated:** [August 17, 2017, 8:10pm UTC](https://community.openhab.org/t/solved-can-i-mix-a-dynamic-sitemap-item-ie-a-group-with-a-specified-item-image/33352 "2017-08-17T20:10:56Z")

</div>

So I have a group of temperatures that I currently list on my sitemap with: \` Group item=g\_temperature label=“Temperatures” icon=“temperature” \` if I do this though I get a subpage for the temperatures, and then th…

---

## [Disadvantages with using group item summary functions?](https://community.openhab.org/t/disadvantages-with-using-group-item-summary-functions/33286)

<div class="topic-metadata">

**Author:** [@Fredrik\_Karlsson](https://community.openhab.org/u/Fredrik_Karlsson)\
**Replies:** 2\
**Last updated:** [August 15, 2017, 3:54pm UTC](https://community.openhab.org/t/disadvantages-with-using-group-item-summary-functions/33286 "2017-08-15T15:54:59Z")

</div>

Hi, I really like the group summary function functionality of OH, so I have been using it a lot, everywhere almost :-), in my item configuration files. Now, I have not gone into rules very much yet, but I ask myself no…

---

## [Group:Switch:OR(ON,OFF) as a Switch?](https://community.openhab.org/t/group-switch-or-on-off-as-a-switch/32663)

<div class="topic-metadata">

**Author:** [@Fredrik\_Karlsson](https://community.openhab.org/u/Fredrik_Karlsson)\
**Replies:** 3\
**Last updated:** [August 3, 2017, 6:21pm UTC](https://community.openhab.org/t/group-switch-or-on-off-as-a-switch/32663 "2017-08-03T18:21:07Z")

</div>

Hi, Groups are super convenient and I wonder if I can also to do what I want with them. I have this group: Group:Switch:OR(ON,OFF) presenceFredrik "Fredrik är hemma? \[%d\]" \<man\_3\> (gPresentPersons,gAnyonePresent) an…

---

## [Group Items not reflecting state in Sitemap](https://community.openhab.org/t/group-items-not-reflecting-state-in-sitemap/19189)

<div class="topic-metadata">

**Author:** [@rgerrans](https://community.openhab.org/u/rgerrans)\
**Replies:** 0\
**Last updated:** [December 31, 2016, 5:20pm UTC](https://community.openhab.org/t/group-items-not-reflecting-state-in-sitemap/19189 "2016-12-31T17:20:49Z")

</div>

So I setup a Group Item to reflect all lights on a floor: Group:Switch SF\_Lights "Upstairs Lights" \<light\> In my SItemap, I’ve tried both: Switch item=SF\_Lights icon="light" and Group item=SF\_Lights label="Upstairs …
