# \[APP\]\[Pro\] Device Capabilities - Enhance the capabilities of devices

**URL:** <https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287>\
**Category:** Apps\
**Tags:** flow, virtual-device, homey-pro, device-capabilities, avd\
**Created:** [February 19, 2021, 8:20am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287 "2021-02-19T08:20:51Z")\
**Posts on this page:** 20\
**Page:** 44

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 14, 2022, 9:50am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/871 "2022-11-14T09:50:50Z")

</div>

> [@Mikl](#):
>
> Is it possible to add a card “set button with no trigger” ?

It’s there already m8:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/4/641cf929aeb0a694f3125ef1242414a95a2a0a1b.png)

- Set [button] to [yes/no] and **[do nothing]**

---

<div class="post-metadata">

**Author:** ![Mikl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mikl/32/23226_2.png) [@Mikl](https://community.homey.app/u/Mikl)\
**Post date:** [November 14, 2022, 10:03am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/872 "2022-11-14T10:03:14Z")

</div>

Thank you for this quick feedback.  
Unfortunately it doesn’t seem to work because even with these settings the “enabled” action is executed.

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 14, 2022, 10:34am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/873 "2022-11-14T10:34:22Z")

</div>

> [@Mikl](#):
>
> Unfortunately it doesn’t seem to work because even with these settings the “enabled” action is executed.

Which When card are you using?  
The default “Device turned On/Off”?  
That one is controlled by Homey/(athom-sourcecode).

You need this trigger/When card:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/e/aedb8b6c83f900ec03e1e560de6287088585f17f.png)

- When [button] is [set/changed]

This one will not be triggered/executed with the  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/4/641cf929aeb0a694f3125ef1242414a95a2a0a1b.png)

- Set [button] to [yes/no] and **[do nothing]**

---

<div class="post-metadata">

**Author:** ![Mikl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mikl/32/23226_2.png) [@Mikl](https://community.homey.app/u/Mikl)\
**Post date:** [November 14, 2022, 1:44pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/874 "2022-11-14T13:44:20Z")

</div>

Yes, I was actually using the “Device turned On/Off” card.  
Now it works using the “When [button] is [set]” and “is activacted” cards  
Thanks a lot !

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/e/0e78ba262c4f0a0439d92be3c2c4346a3f732a29.png)

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [November 14, 2022, 4:14pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/875 "2022-11-14T16:14:57Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> It includes about 80 new icons to pick from.

Btw, would be nice Arie to have some “filtering” capability there - if those icons have names. I was 5 min searching for solar panel 😉

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 14, 2022, 4:24pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/876 "2022-11-14T16:24:36Z")

</div>

> [@Sharkys](#):
>
> Btw, would be nice Arie to have some “filtering” capability there - if those icons have names. I was 5 min searching for solar panel 😉

Great Idea, mind creating a feature ticket for it? 😉  
I’ll get to it as soon as i am able, i’ve got a few things to finish atm. 🙂

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [November 14, 2022, 10:52pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/877 "2022-11-14T22:52:21Z")

</div>

Can someone suggest some reliable kWh calculation/method for device reporting Watts only ? Eg. checking Watts every 60 sec and then do the calculation ? Thank 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:** [November 15, 2022, 3:08am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/878 "2022-11-15T03:08:53Z")

</div>

You mean Wh I guess?  
I think you can use [Post #248](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/248), as example, but in your case it is something like:

 ![Screenshot 2022-11-15 at 04-02-44 1.HomeyPro Peter](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/2/12e01f3bfb06f9baa55b9d3cd7697ae591b394b9.png)

(The power meter and [Energy] var = kWh)

Import the example flow:  
Add a new AVD, and in the next screen, import this exchanger file at the top field of the dialog:

```auto
[tef:AVD,FLOWS:"H4sIAAAAAAACA6VU2XKrRhD9FRdPSWxF7AJV5cGgDSFACxLILpdrgGERmzQsErq5/55B0r22E1fKqfACdE/39Dmnu78RHqwjFypunhF9YsIW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R5ILIqdSAyfBOeylEEEw+HkG9m/fL+4aDeHFKeJxBkn4RIVVnmnzlkkEIEPnHMouL93W6C30RehhC1SEpQVgWl42BstcK7X1Zl8eub47b63pr1p2cA3SgFyTXpzSYjCEpogoDol6iCP2p4n15HbfabfQX3AOEIGeyBEyVRGUGcz8dZ32JXYX58bEtOYQnR6z4/Xgq/ea83jpL8KAPUIvxw7zqLyuJy8VvEh7o/ZPlZN+6K6+K/1V2EAMVNcRdjAPTdJZnXSk9DhqR7kOlwvg86LOWyHYEkqQ7DM77geIzL+3x7rmWQ/X2VRKnWYriTK4RgVt7Nb1jc9g6YFTlqG/JLPXjL+kll7jt1y/bce95uYW9C4BM3Eojv+HkgANF//kZE2MxBkcQlYGC0gOuADtkRhR7f8ZieI7AMS0JfbGnFR1f/LAP+kMJtL/UYjIj3xY7AU2SH5UUfMwX5jgNIXqR5HzrAac+dLqo0RF/ArxxnDvMUNv2rGv0v8f1wKf4d6Fc3BFkAvRvaEs97cO19DJXwWFFgSI7vCA4GyAKGxF8+14G+4DKcyNAczvmCiXFpxuWACzq0y+ODPYxD4CCNwXC8KLIC6THwBgHzdgFBkZ+h+OKOaVHUESorkFwDX/HWeb0O2mu+L6McL62bdFdkwG2NxEXDb0SJV87H1sd/z8//uZQ/31H58oKTIegjWIRpjicWOtWPmWmH5itcXili+X/R+X8xBE97XF5xZeIDLRe9vyTjy41Dv12b7Ufk/ZwTquXz7/vMg4WLooso2H5d63fUZZrfyukTGijD31FeZd4vz8+3Ruz3vzIc/f4HGX7DrUXePZC/Xqb25ftf54XQqqoKAAA=":/tef]

```

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [November 15, 2022, 12:08pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/879 "2022-11-15T12:08:19Z")

</div>

Hi @Arie_J_Godschalk ,  
it looks like that when playing with maintenance / setup of device - insights are kept, which are not used anymore. Is it possible to get rid of that or I need to export/remove/import device ?

 ![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/3/1389f42cd99f6fcb23f3ec4ff723e6bdb36def64.png)

![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/7/a76dfa5e8138c672f209983f45e3d69fe9f45c8f.png)

![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/4/64898b7dcb5e9ef7e7e30c595ac9fa6539fdb075.png)

![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/b/abb7215b6f8816da229ab01129c39ac023c17ea8.png)

Shall I sent diag. info ?

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 15, 2022, 12:18pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/880 "2022-11-15T12:18:03Z")

</div>

> [@Sharkys](#):
>
> Shall I sent diag. info ?

No thanks, i know the issue: thats why insights are off by default in AVDs 😉

I haven’t found a way to solve this yet, if i remember correctly, i couldn’t even change the insights in HS.

One sec.

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [November 15, 2022, 12:19pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/881 "2022-11-15T12:19:38Z")

</div>

That’s fine, basically it would mean that upon DC device finalization, it’s always best to remove and re-import given device, or ? …and flows I guess.

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 15, 2022, 12:41pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/882 "2022-11-15T12:41:31Z")

</div>

No, run this in the [WebApi Playground](https://tools.developer.homey.app/tools/api-playground).  
Change the deviceID  
**This will remove ALL insights from that device!**

```auto
async function exe(deviceId) {
  let a = await Homey.insights.getLogs();
  a = a.filter((x)=>x.uri=='homey:device:' + deviceId);
  for(var i=0;i<a.length;i++) {
    await Homey.insights.deleteLog(a[i]);
  }
  console.log(a);
}

exe('05507935-ab90-45d1-9cc7-87e0e0917013');

```

I have just created a ticket to create a better solution.  
[QlusterIT / nl.qluster-it.DeviceCapabilities / issues / #10 - Create a view in App Settings to create a script to remove unused/selected insights — Bitbucket](https://bitbucket.org/QlusterIT/nl.qluster-it.devicecapabilities/issues/10/create-a-view-in-app-settings-to-create-a)

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 15, 2022, 2:44pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/883 "2022-11-15T14:44:11Z")

</div>

> [@Sharkys](#):
>
> Btw, would be nice Arie to have some “filtering” capability there - if those icons have names. I was 5 min searching for solar panel 😉

# It’s live: **Filter** the currently 2343 default icons.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/b/ab03c2f102b66df31acb5a9368fbf8c70d0c455d.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/b/abf6293806e827f135d809e0f547acbe15247b86.png)

Also, increased the loading speed of icons to 100 per second (there is a system making sure all icons are not loaded at once, overloading Homey and getting all non-image-error).  
The speed was 50 per second.

To see and filter all icons, you need to wait till al are done loading (well, if you want to see it).

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 15, 2022, 3:07pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/884 "2022-11-15T15:07:28Z")

</div>

Also added a debounce on the filter fields (so the don’t crash your phone or browser when typing lastly a long word).  
Nice to now find more icons than before i could filter:  
fire

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/f/cf3bb445516cad66393fc3ae82a3bced495ec9c4.png)

---

<div class="post-metadata">

**Author:** ![Sharkys](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sharkys/32/54029_2.png) [@Sharkys](https://community.homey.app/u/Sharkys)\
**Post date:** [November 15, 2022, 3:52pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/885 "2022-11-15T15:52:17Z")

</div>

Works great - just it wasn’t apparent to me I shall replace the Device ID in ‘exe’ part - the last one.  
Thank you Arie, it’s marvelous what can be (you can) achieve.

So I executed the script and then went for maintenance, checked insights (to trigger some change on the device itself) and saved again - and insight are back without waste - excellent. 😉

---

<div class="post-metadata">

**Author:** ![Paul\_Scholte](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paul_scholte/32/16562_2.png) [@Paul\_Scholte](https://community.homey.app/u/Paul_Scholte)\
**Post date:** [November 15, 2022, 6:37pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/886 "2022-11-15T18:37:01Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/9/e93437a024d2cd794f8a98353a69c7bc8a1673f5.jpeg)

I have created a device with 5 virtual luminance-sensors and 5 virtual onoff buttons. Each pair represents the luminance in a room and a switch for the lights in that room. I would like to order them nicely on a grid pair by pair. Instead they seem to appear in random order or the order they were creat3d on the tab (see image) Is there any way to order them nicely the way I prefer?

Greetingd]s,  
Paul

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 15, 2022, 7:38pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/887 "2022-11-15T19:38:43Z")

</div>

> [@Paul\_Scholte](#):
>
> Is there any way to order them nicely the way I prefer?

(Currently, not really, only sort them by (re)creating the fields in the right order by changing all icons for instance at once and pressing save)

Well, everytime a field changes certain properties, it is removed and a new one is created: That one will be the last one.

I have been thinking about sorting orders, just like i do with the first button. But it’s a heavy implementation: change field order # 1, and all sequential fields must be removed and recreated: this is really heavy for your Homey!

I am still trying to think of a better solution before implementing it like this.

And placing them in a specific pattern, like side by side: that’s not something a app developer can setup: we only create device fields: Homey creates the UI.

---

<div class="post-metadata">

**Author:** ![Paul\_Scholte](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/paul_scholte/32/16562_2.png) [@Paul\_Scholte](https://community.homey.app/u/Paul_Scholte)\
**Post date:** [November 15, 2022, 8:49pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/888 "2022-11-15T20:49:14Z")

</div>

Ok, I understand. Probably I will (re)create the fields in the order I want and in triplets.

Given the choice I prefer that you keep the app as lean as possible as at the moment my Homey feels the load already. But the app is very useful!

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 15, 2022, 9:18pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/889 "2022-11-15T21:18:33Z")

</div>

> [@Paul\_Scholte](#):
>
> Given the choice I prefer that you keep the app as lean as possible as at the moment my Homey feels the load already.

Yes, well , just for you information: AVD’s are only heavy during creation or when manually adjusting fields.  
Adding fields, chaning title’s/names etc, thats pretty heavy for Homey.  
But, beside that, al it does is create “default” devices.

DC/AVD’s are not heavy for Homey beside that.

And this implementation would also only be hard on Homey while you are changing the fields in the Device Settings.

Only think is, i currently already do this for buttons and yes/no fields(as buttons), to make sure that button1 is always the first button: thuse the device-tile-button-action.

So, what happens is: if you change for instance the icon for button 1, all buttons after button 1 are removed and re-added. And this is pretty heavy.  
I have a testcase with a total of 40 buttons: changing button1’s icon will let my Homey run the field updates for about 1 minute! And my homey is not overloaded, i have enough spare memory left.

And the testcase for buttons will not happen that easily, because you don’t have that many buttons that fast.

But sensorfields would be a different kind of thing, because it would include yes/no (as sensor, which are most), Text and Numbers.  
And those there are a load more from on many single AVDs.

So, indeed, this is something i want to have solved well (in my head), before building it in.

---

<div class="post-metadata">

**Author:** ![Arie\_J\_Godschalk](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_j_godschalk/32/63027_2.png) [@Arie\_J\_Godschalk](https://community.homey.app/u/Arie_J_Godschalk)\
**Post date:** [November 15, 2022, 9:34pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/890 "2022-11-15T21:34:23Z")

</div>

> [@Paul\_Scholte](#):
>
> Probably I will (re)create the fields in the order

Best way: create them in the order that you want.  
If you ever need to change field 1 or 2 etc, change ALL (higher numbers at least) icons and press save.  
They will al be (re)created in the numbered order.

[Previous page](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287.md?page=43)

[Next page](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287.md?page=45)
