# \[APP\]\[Pro\] \< group \> (3.2.4 - Stable)

**URL:** <https://community.homey.app/t/app-pro-group-3-2-4-stable/3168>\
**Category:** Apps\
**Tags:** app, homey-pro\
**Created:** [October 23, 2018, 4:16pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168 "2018-10-23T16:16:01Z")\
**Posts on this page:** 20\
**Page:** 23

<div class="post-metadata">

**Author:** ![Magnus\_Bjelksjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/magnus_bjelksjo/32/47854_2.png) [@Magnus\_Bjelksjo](https://community.homey.app/u/Magnus_Bjelksjo)\
**Post date:** [January 23, 2022, 12:34pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/463 "2022-01-23T12:34:00Z")

</div>

When you are looping over all devices in a group and turning then on/off…how is the “on/off”-action implmented?

Are you doing something like “await device.setCapabilityValue(‘onoff’, true);”

If you do something like above I specifically am asking if you are using “await” or not.

---

<div class="post-metadata">

**Author:** ![Magnus\_Bjelksjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/magnus_bjelksjo/32/47854_2.png) [@Magnus\_Bjelksjo](https://community.homey.app/u/Magnus_Bjelksjo)\
**Post date:** [January 23, 2022, 12:35pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/464 "2022-01-23T12:35:41Z")

</div>

i found an easier way. I simply use the following in the code.

“device.settings.devices”

the above gives me an array with all device that are part of a specific group-device.

device is pointing to a device that is a “\< group \>”-device.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [January 23, 2022, 2:46pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/465 "2022-01-23T14:46:48Z")

</div>

Nice. Can you share the code please?

---

<div class="post-metadata">

**Author:** ![Magnus\_Bjelksjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/magnus_bjelksjo/32/47854_2.png) [@Magnus\_Bjelksjo](https://community.homey.app/u/Magnus_Bjelksjo)\
**Post date:** [January 23, 2022, 3:16pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/466 "2022-01-23T15:16:37Z")

</div>

I get console output as below (“Källa Lamgrupp” is a device created with “\< group \>”-app.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/e/2e68ae22c821a09f13df03aa47acb4fdf1d5e9be.png)

The code used is as below

/\*

- In this script we turn on all lights.

\*/

// Get all devices

const devices = await Homey.devices.getDevices();

// Loop over all devices

const devicelist = [“Köksfönster”, “Ljusslinga Balkong”];

for (const device of Object.values(devices)) {

// If this device is a light (class)

// Or this is a ‘What’s plugged in?’-light (virtualClass)

// if (device.class === ‘light’ || device.virtualClass === ‘light’) {

// if (device.class === ‘socket’ || device.class === ‘light’) {

// if (device.name === ‘Köksfönster’ || device.name === ‘Ljusslinga Balkong’) {

// if (devicelist.includes(device.name)) {

```
if (1 === 1) {

  if (device.name === "Källare Lampgrupp") {

    console.log(device.name + ',' + device.id + ',' + device.class);

    //console.log(device);

    _deviceslistTEST = device.settings.devices;

    console.log(_deviceslistTEST);

    console.log(_deviceslistTEST[0]);

  }

}

else {console.log(device.name + ',' + device.id + ',' + device.class);}

 // Turn the light on by setting the capability `onoff` to `true`

```

/\*

```
await device.setCapabilityValue('onoff', false)

  .then(() => log('OK'))

  .catch(error => log(`Error:`, error));

```

\*/

// } else {

// log(`\nEJ OK '${device.name}' - '${device.class}' - '${device.virtualClass}' on...`);

// }

}

---

<div class="post-metadata">

**Author:** ![Thunstop](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/thunstop/32/33966_2.png) [@Thunstop](https://community.homey.app/u/Thunstop)\
**Post date:** [January 28, 2022, 9:07pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/467 "2022-01-28T21:07:18Z")

</div>

Hi

When or will there be homey Bridge support? Would really like have same group option for bridge.

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [January 28, 2022, 9:21pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/468 "2022-01-28T21:21:45Z")

</div>

> [@Thunstop](#):
>
> When or will there be homey Bridge support?

Read back:

> [@\[APP\]\[Pro\] \< group \> (3.2.4 - Stable)](https://community.homey.app/t/app-pro-group-2-5-3-stable/3168/439):
>
> According to Athom, apps from the “tools” category will not be made available for Homey Cloud/Bridge. You need a Homey Pro for that.

---

<div class="post-metadata">

**Author:** ![Magnus\_Bjelksjo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/magnus_bjelksjo/32/47854_2.png) [@Magnus\_Bjelksjo](https://community.homey.app/u/Magnus_Bjelksjo)\
**Post date:** [January 30, 2022, 10:05pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/469 "2022-01-30T22:05:03Z")

</div>

When using “\< groups \>”-app i have experienced devices not being handled,

The answer i have got to solve this to add a delay between each device. I have added delay of both 100 and 200 milliseconds but devices are still sometimes missed.

How is the on/off-command actually sent to the devices in a group?

Are the on/off-commands send as “await”-commands so that a command is surely executed before the next one is triggered?

---

<div class="post-metadata">

**Author:** ![Jamie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jamie/32/5274_2.png) [@Jamie](https://community.homey.app/u/Jamie)\
**Post date:** [February 14, 2022, 10:47am UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/470 "2022-02-14T10:47:17Z")

</div>

ON/OFF is sent as a standard command, same way as the original app, the group app works very similar to how it would work if you just did the same stuff using flows … with two differences.

1. Its easier
2. The group app will actually try to retry failed commands (though that doesnt seem to fix the problem many times as its due to the Homey getting ‘backed up’ rather then the receiving device.

In the settings page of the group app, im pretty sure you can add a delay if that works for you;

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [February 14, 2022, 3:57pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/471 "2022-02-14T15:57:18Z")

</div>

> [@Magnus\_Bjelksjo](#):
>
> I have added delay of both 100 and 200 milliseconds but devices are still sometimes missed.

Just increase the delay time step by step until you have a balance between delay & fails I would say.  
It’s quite a brilliant workaround if you want to switch many devices at once imho.  
Because Homey itself can’t.

---

<div class="post-metadata">

**Author:** ![Peter\_Hendrix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_hendrix/32/8090_2.png) [@Peter\_Hendrix](https://community.homey.app/u/Peter_Hendrix)\
**Post date:** [February 19, 2022, 3:59pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/472 "2022-02-19T15:59:07Z")

</div>

@Jamie , it looks like I have found a bug. I have a group that has no devices. I want to add a device, however when I click one of the eligible devices suddenly all are selected. So I am unable to add a device to the group. Every click does a select-all or deselect-all.  
When I create a new group everything works ok… also with some other groups I have no problems.

 ![20220219_155639000_iOS](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/f/6f5f1972bb9611cba656171b11ed4a02850febde.jpeg)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [February 19, 2022, 7:57pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/473 "2022-02-19T19:57:48Z")

</div>

Confirmed. But, I even didn’t know one can create a group without devices…  
Now I’m a bit curious why you shouldn’t add devices while creating a group?

---

<div class="post-metadata">

**Author:** ![Joep\_Vullings](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joep_vullings/32/9293_2.png) [@Joep\_Vullings](https://community.homey.app/u/Joep_Vullings)\
**Post date:** [February 19, 2022, 10:47pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/474 "2022-02-19T22:47:08Z")

</div>

Moet die derde niet ‘stoekdraad’ zijn, Peter?

---

<div class="post-metadata">

**Author:** ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)\
**Post date:** [February 20, 2022, 7:52am UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/475 "2022-02-20T07:52:08Z")

</div>

> If you could please keep the conversation in English as much as possible, then more people will be able to participate and help you.  
> Please translate your post.

---

<div class="post-metadata">

**Author:** ![B3rt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/b3rt/32/9435_2.png) [@B3rt](https://community.homey.app/u/B3rt)\
**Post date:** [February 28, 2022, 8:34pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/476 "2022-02-28T20:34:35Z")

</div>

[feature request]

When i add a gas meter it shows only the total usage, is it possible to add the current usage?  
(this would be great due to the explosion of current gas prices)

Thx.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 1, 2022, 12:21am UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/477 "2022-03-01T00:21:39Z")

</div>

Afaik (most) gasmeters only report the total usage once every x minutes

 ![Screenshot_20220228-224515_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/7/5760262c2d3a728f11cac06b8f4444056b4b8fe7.jpeg)

You could create a variable f.i. [GasmeterLastValue]

With this flow, you can store the current meter value, and compare it to the one stored 5 minutes ago.  
Subtract the values and feed the result to f.i. a virtual gasmeter

 ![Screenshot_20220228-235329_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/2/9226418c93ad9353bd3f9e0368b8caf2e5e94e6b.jpeg)

---

<div class="post-metadata">

**Author:** ![B3rt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/b3rt/32/9435_2.png) [@B3rt](https://community.homey.app/u/B3rt)\
**Post date:** [March 1, 2022, 5:54pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/478 "2022-03-01T17:54:31Z")

</div>

> [@Peter\_Kawa](#):
>
> GasmeterLastValue

the actual/current usage of the gas is broadcast by the P1 meter with label ‘gas’, so there is no need for any calculations etc, the data is already present..

 ![2022-03-01_ 185322](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/1/41e78f70255f3082cf24093f494076238e2ed90d.png)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 2, 2022, 12:35am UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/479 "2022-03-02T00:35:54Z")

</div>

Ah, you’re in luck I think. Or I’m in bad luck 😅  
The HomeWizard P1 app or my energymeter doesn’t show it. Also the High/Low rate indicator isn’t here.  
Running latest app v2.1.4 version

 ![Screenshot_20220302-012812_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/7/e73913f5252338b724262ca346f96c54134e6706.jpeg)

 ![Screenshot_20220302-013400_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/8/98bca9672b9f6ce7580cb56d9332919d1adb2625.jpeg)

 ![Screenshot_20220302-220915_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/c/9c42909ae304b40b6b2bda0318ff841b8cf0249f.jpeg)

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [March 2, 2022, 12:27pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/480 "2022-03-02T12:27:18Z")

</div>

The gas flow is something I added to the energy apps I created (Plugwise Smile P1, Youless, Beeclear).

But I have good news for you: Add your Homewizard P1 to Power By The Hour. And you will get a gas flow as bonus (albeit in liter/minute) 🙂

> **[Power by the Hour](https://homey.app/en-us/app/com.gruijter.powerhour/Power-by-the-Hour/)**
>
> Summarize the energy/water usage or (solar) production per hour, day, month and year. Use dynamic tariffs.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 13, 2022, 7:00pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/481 "2022-04-13T19:00:51Z")

</div>

**EDIT** : App restart did the trick up 'till now.

Hi Jamie,  
I hope all’s fine, and congrats!

 ![Screenshot_20220413-205930_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/c/2c5763ed73c4dd17b6a2e889cca8834cafc7c3df.jpeg)

The app memory useage grows a lot the last couple of hours.  
I sent a diag before I restarted the app  
`db07c52c-d36b-4929-87e4-8c5d8a2f8c2e`  
Maybe the restart is sufficient, no hurries.

---

<div class="post-metadata">

**Author:** ![DominicVonk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dominicvonk/32/53804_2.png) [@DominicVonk](https://community.homey.app/u/DominicVonk)\
**Post date:** [June 5, 2022, 7:07pm UTC](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168/482 "2022-06-05T19:07:35Z")

</div>

Can you add the option to add devices with less capabilities? For example i’ve a light switch and hue lamps separated, but I would like to group them, but the light switch is not dimmable.

[Previous page](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168.md?page=22)

[Next page](https://community.homey.app/t/app-pro-group-3-2-4-stable/3168.md?page=24)
