# \[APP\]\[Pro\] Advanced Virtual Device (Device Capabilities App) with Unique Text Status Indicator

**URL:** <https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198>\
**Category:** Apps\
**Tags:** app, tools, virtual-device, device-capabilities, avd\
**Created:** [August 30, 2022, 7:24pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198 "2022-08-30T19:24:40Z")\
**Posts on this page:** 20\
**Page:** 42

<div class="post-metadata">

**Author:** ![Damian\_Surma](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/damian_surma/32/48817_2.png) [@Damian\_Surma](https://community.homey.app/u/Damian_Surma)\
**Post date:** [April 15, 2026, 9:16pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/834 "2026-04-15T21:16:11Z")

</div>

Wow, thanks for the help. I managed to set it up according to your instructions. I now have the bulb’s power, but now the question is, how do I set the kWh?

 ![Opera Zrzut ekranu2026-04-15231418my.homey.app](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/7/57fa010e598802aa3af6243eefdf11d8713c88bb.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:** [April 15, 2026, 11:27pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/835 "2026-04-15T23:27:22Z")

</div>

Thanks, and nice to hear.  
To calculate the kWh, you’ll need to know how it’s calculated (just in case you didn’t know yet):  
When the 500W (= 0.5kW) light is turned on for 1h, it used 1h \* 0.5kW = 0.5kWh  
So, when it was on during 15h, it used 15h \* 0.5kW = 7.5kWh

It’s possible to record the “on” time by using a stopwatch, and update the kWh of every “light on” period accordingly.

(You’d use Advanced flow in order to use the Chronograph app’s stopwatch “elapsed time” tag)

When..  
lamp A turned on  
Then..  
start or resume stopwatch X

When..  
lamp A turned off  
Then..  
pause stopwatch X

When..  
stopwatch X is paused  
Then..  
set field Lamp A’s kWh to expression

```auto
(( [Elapsed time (s)] / 60 / 60 ) * 0.5 ) + [tag lamp kWh]

```

To clearify, this is the ‘Then’ card you’d use:

 ![Screenshot20260416013538Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/1/4101f449e7a580c906447ea8e5e05f59225c442e.jpeg)

The sum part, being “`+ [tag lamp kWh]`” adds the current kWh value to the last calculated value, making it increase after each “on” session of the virtual light.

A flow screenshot often is way clearer, so I’ve add it as well;  
In this example, [`tag lamp kWh]` is called `[v_kWh]`, Lamp A is called “Kaarsen Wit IR”

 ![1337](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/4/e4c043e57611ffcd3836c076fd44c659a2c69af2.jpeg)

 ![Screenshot20260416013303Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/1/b1a6b6f77261132b28043504d0520808872c106a.jpeg)

---

<div class="post-metadata">

**Author:** ![Damian\_Surma](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/damian_surma/32/48817_2.png) [@Damian\_Surma](https://community.homey.app/u/Damian_Surma)\
**Post date:** [April 16, 2026, 9:27am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/836 "2026-04-16T09:27:12Z")

</div>

Ok. Tell me, because I don’t understand where I’m supposed to use this

 ![Opera Zrzut ekranu2026-04-16112413community.homey.app](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/4/843f61a1641adc3ae6a33148df5e9fb3c77883df.png)  
and where the kWh calc came from  
 ![Opera Zrzut ekranu2026-04-16112440community.homey.app](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/6/36b8cd563feca84faa0e1b44df06cd70678dc35c.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:** [April 16, 2026, 5:02pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/837 "2026-04-16T17:02:55Z")

</div>

In the “set field to expression” card, belonging to the virtual light, as shown on the flow screenshot on the bottom-right.

The stopwatch name “kWh calc” is one I just made up. You can use any name which suits you. Make sure it’s unique regarding your Chronograph stopwatches.

---

<div class="post-metadata">

**Author:** ![John\_William\_Brekke](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_william_brekke/32/111887_2.png) [@John\_William\_Brekke](https://community.homey.app/u/John_William_Brekke)\
**Post date:** [May 6, 2026, 8:49am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/838 "2026-05-06T08:49:36Z")

</div>

Is there a way to create more icons in the app settings than is already there? i’m not sure which icons to replace with my own so would be nice with more slots maybe?

---

<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:** [May 6, 2026, 2:00pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/839 "2026-05-06T14:00:54Z")

</div>

> [@John\_William\_Brekke](#):
>
> create more icons in the app settings

You mean for capabilities?

There are 80 slots you can customise.

I think that should be enough, right?

Or do you mean something else?

---

<div class="post-metadata">

**Author:** ![John\_William\_Brekke](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/john_william_brekke/32/111887_2.png) [@John\_William\_Brekke](https://community.homey.app/u/John_William_Brekke)\
**Post date:** [May 6, 2026, 2:02pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/840 "2026-05-06T14:02:39Z")

</div>

Oh yeah, i am just unsure which ones to replace 😂😂 it might be good now hearing it’s 80?!?! I just need to make a decision and figure out which ones to replace. But if possible creating more slots as a feature would be cool. Some people might use all 80 and run out. If you can add a create button to make more slots yourself? I don’t know if that’s possible, but would be cool.

---

<div class="post-metadata">

**Author:** ![Homey\_User\_T](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/homey_user_t/32/65605_2.png) [@Homey\_User\_T](https://community.homey.app/u/Homey_User_T)\
**Post date:** [May 12, 2026, 3:09pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/841 "2026-05-12T15:09:49Z")

</div>

Sorry, maybe I didnt get it, but I have several fields which are somehow sorted random “Outlet” \> “Ambient” \> “Comperssor”

is there any way how I can influence the sort order of the fields? Sorry if I oversaw something, but ti me it seems that Device Capabilities renders fields in the order they were created in the device’s lifetime, and offers no built-in drag-to-reorder UI.

The only real way to change the layout is delete-and-recreate in the order you want them to appear - destructive, as I lose insights history on deleted fields.

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [May 12, 2026, 3:23pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/842 "2026-05-12T15:23:23Z")

</div>

Regarding fields, this might be a less cumbersome work-around:

> [@\[APP\]\[Pro\] Device Capabilities - Enhance the capabilities of devices](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/2141):
>
> Though not ideal, but a less cumbersome option compared to completely removing the items, a change in icon also triggers a re-order. So change all the icons to some other one, save and then - in the order of which you want the items to appear - change the icons back.

---

<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:** [May 17, 2026, 8:58pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/843 "2026-05-17T20:58:49Z")

</div>

> [@Homey\_User\_T](#):
>
> but ti me it seems that Device Capabilities renders fields in the order they were created in the device’s lifetime, and offers no built-in drag-to-reorder UI.

Unfortunately this is a limitation of Homey firmware.  
No app developer can add any option/tool to rearrange, or auto-sort the order of the capabilities _after_ a device has been created.

The best workaround is shown by @SunBeech

---

<div class="post-metadata">

**Author:** ![smarthomesven](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/smarthomesven/32/79712_2.png) [@smarthomesven](https://community.homey.app/u/smarthomesven)\
**Post date:** [May 17, 2026, 9:15pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/844 "2026-05-17T21:15:48Z")

</div>

> [@Peter\_Kawa](#):
>
> No app developer can add any option/tool to rearrange, or auto-sort the order of the capabilities _after_ a device has been created.

I think that is actually possible by calling `this.removeCapability()` for every capability and then calling `this.addCapability()` for each capability in the order that you want the capabilities arranged in. However, this does break existing Flows as far as I know

---

<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:** [May 17, 2026, 9:22pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/845 "2026-05-17T21:22:00Z")

</div>

Maybe I don’t understand your remark, Sven, but,  
AFAIK developers can’t add any option / tool _for app users_ to change the order on the fly.

---

<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:** [June 13, 2026, 4:06pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/846 "2026-06-13T16:06:43Z")

</div>

> [@smarthomesven](#):
>
> However, this does break existing Flows as far as I know

No, this is possible and as soon as the capabilities are re-added, flows keep working.

When you change the icon, this is basically what happends in the background.

However, doing this with f.i. 10 capabilities at once, would let the app/homey crash. It’s a mega memory usage to add or remove capabilities.

But yeah, it’s still on my todo list. 😅

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [August 5, 2026, 10:46am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/847 "2026-08-05T10:46:07Z")

</div>

@Arie_J_Godschalk  
Custom icon for AVD: some apps have very nice icons that I would like to re-use for the AVD that works with those apps.

Is there any possibility to store my uploaded .svg icons to the app’s user storage, in order for the users to just pick these instead of uploading multiple times.

---

<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:** [September 25, 2026, 4:06pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/848 "2026-09-25T16:06:41Z")

</div>

> [@Rrrr](#):
>
> Is there any possibility to store my uploaded .svg icons to the app’s user storage

Yeah ill guess this can be made possible.  
Do you mind sending me this as a PM?  
(The bitbucket issues no longer exist and i dont have a good alternative yet)

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [September 29, 2026, 1:13pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/849 "2026-09-29T13:13:58Z")

</div>

@Arie_J_Godschalk

I use AVD a lot and a custom order of fields would be great. In addition, removal of an unused AVD field, when it was not in the original order, deletes a lot of the good fields below it.

A workaround could be if the AVDs could be build, including the fields and properties, in the Homey API. Then I could just tell Claude to remake the fields or create a new AVD. Currently Claude can only read and write to AVD fields, but cannot create.

---

<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:** [September 29, 2026, 1:16pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/850 "2026-09-29T13:16:14Z")

</div>

> [@Rrrr](#):
>
> I use AVD a lot and a custom order of fields would be great. In addition, removal of an unused AVD field, when it was not in the original order, deletes a lot of the good fields below it.

Yes, i am gonna look into sorting.  
Can you send this as a PM?

---

<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:** [October 2, 2026, 3:44pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/851 "2026-10-02T15:44:47Z")

</div>

# Sorting is here!

> [@\[APP\]\[Pro\] Device Capabilities - Enhance the capabilities of devices](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/2276):
>
> # It’s here!
> 
> ### Sorting of fields!
> 
> It took some time, but it’s here. You can now freely change the order of fields, the order in which they appear in the device.  
> This is done in a separate “view”, not in the main repear, but one more click away:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/1/d1911dec59d49124ea81556f7395088015ae5fc0.png)  
> (Sort Fields)
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/6/96dd7e19e57ceaf2873dd421ad35ab59fdf2c3eb.png)  
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/8/7839f5583b0ce597534ddd97102912e690eaff9c.png)
> 
> The reason its been done in a separate view: So you can order based on where it is shown in the Device. For instance, you can have Texts, Numbers and Yes/No’s all on the Sensor tab of your device. By doing it this way, you can actually sort those different fieldtypes just how you want it, f.i.:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/f/4f5aef950d4e2c7e47c87cbf143bea2b84a99b8d.png)  
> Here i repeat a Textfield, then a Yes/No field and after that a Number field.
> 
> This is shown in the Device like this:
> 
> ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/9/f989d8409684349b920d18cd8de787ede2b654c5.jpeg)
> 
> ## Have fun y’all!
> 
> Other updates in this version:
> 
> - Fields can now be ordered/sorted.
> - Numbers decimals, steps, min and max has been synced with each other.
> - When decimals are filled, steps need to be in those decimals, and min and max also.
> - Min can be filled in freely, but max is dependend on the min+step(s).
> 
> - When changing a fieldname, the settings are not reset anymore (because for a second the fieldname became empty).
> - Some small UI and UX changes.
> - Some bugfixes.
> 
> It’s in test now:  
> [Device Capabilities | Homey](https://homey.app/a/nl.qluster-it.DeviceCapabilities/test/)

@Rrrr  
@SunBeech  
@Peter_Kawa

---

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [October 2, 2026, 4:17pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/852 "2026-10-02T16:17:18Z")

</div>

Yes! This is great 😊 👍! Thank you.  
No longer changing icons in a specific order to re-arrange the capabilities!

---

<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:** [October 2, 2026, 4:29pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/853 "2026-10-02T16:29:49Z")

</div>

> [@SunBeech](#):
>
> No longer changing icons in a specific order to re-arrange the capabilities!

Indeed.  
Plus, you can now sort texts, numbers and yes/no all through each other 😁

[Previous page](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198.md?page=41)

[Next page](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198.md?page=43)
