# \[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:** 23

<div class="post-metadata">

**Author:** ![luguber](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luguber/32/16795_2.png) [@luguber](https://community.homey.app/u/luguber)\
**Post date:** [September 7, 2022, 2:22pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/446 "2022-09-07T14:22:22Z")

</div>

Another question, is it possible to make it possible to rearrange the capabilities on a device?  
For example, I have a device with 18 capabilities. If I want to add one more now it will end up at the bottom. However, this new capability would fit better at the top together with other similar capabilities, to make it more tidy and organized. So to rearrange it now, you have to make small edits to all the others you want the new to be on top of, in the right order, as an edited one will end up at the bottom of the list.  
Would love for it to be an easier way of doing this.

---

<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:** [September 7, 2022, 2:26pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/447 "2022-09-07T14:26:29Z")

</div>

> [@luguber](#):
>
> It just doesn’t look so clean with that random number in front.

Different views… It is a ‘hack’ yes, but I’m totally enthousiast I can finally show any text and emoji as tile status 🥳

@Arie_J_Godschalk For the mobile app, the numberfield has to have a value with the “set status to” flow cards, but is it possible you set it to hidden (or make that a user choice)?

---

<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 7, 2022, 2:31pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/448 "2022-09-07T14:31:49Z")

</div>

> [@luguber](#):
>
> Yes, I’m using this way now. It just doesn’t look so clean with that random number in front.  
> And it made me wonder since, i.e. the Kodi app can have play and pause symbol when you play something. Lamps can have a ball off different colors. My door have a lock symbol, and then there are the battery symbols. So somehow it is possible to not only have numbers as status indicator. I haven’t seen any with only text though.

All those are possible with an AVD 🙂

The 0 for the status can be zet to empty through the flowcard Set status with Number (leave it empty).  
I have set it to 0 by default, so it shows up in the Mobile App, which otherwise will not happen.

---

<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 7, 2022, 2:47pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/449 "2022-09-07T14:47:52Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> All those are possible with an AVD 🙂

Well appareantly, not. I lost a few items off a list:

| Speaker | speaker | Use this device class for devices that can play music, usually together with the `speaker_*` capabilities. | | |
| --- | --- | --- | --- | --- |
| Solar Panel | solarpanel | Use this device class for solar panels. | | |
| Sunshade | sunshade | Use this device class for sunshades (window coverings against the sun). | | |
| Thermostat | thermostat | Use this device class for thermostats, either for the entire home or radiator-mounted, usually together with the `measure_temperature`, `target_temperature` and `thermostat_mode` capabilities. | | |
| TV | tv | Use this device class for TVs. | | |
| Vacuum Cleaner | vacuumcleaner | Use this device class for vacuum cleaners, usually together with the `vacuumcleaner_state` capability. | | |
| Window Coverings | windowcoverings | Use this device class for window coverings, when the `curtains`, `blinds` or `sunshade` device class doesn’t apply. | | |

I have added those back in the Current Test version.

Now, if you add a new AVD:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/e/deb50adc1a8577f65655e701f0d0ebaa27e0214c.png)  
and  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/d/6da49b92bc3058da76c76a3e8de4e026e922b63e.png)  
(doesn’t need to be Button 1, but its the most handy, else the indicator is differend then the button itself)

This will give you:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/f/2fc15b60cc76366a5bfc7b04d16c332a96a787f6.jpeg)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/3/a3e8b5b5cd97063dc3a9ddab9549deee9811fe19.png)

EDIT

* * *

You can change the Class to Lock:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/a/8aef9387c70c324e9abe7c46077c0af14bf9b431.png)

Now add a Lock button as **second/2** button:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/5/75de3e816f21d798225ab32b3ab47a7b4db7e792.png)

Now you will get:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/d/5d6c7c2764412f6dfb51b814c031a553e3e49ef9.png)

But if you push the Device tile in Mobile, it start/stops playing. And the Backgroundcolor of the device tile is also based on **Playing**.  
But the indicator show the **lock status**.

---

<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 7, 2022, 2:54pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/450 "2022-09-07T14:54:59Z")

</div>

The above is standing ready in test.

---

<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 7, 2022, 2:59pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/451 "2022-09-07T14:59:13Z")

</div>

> [@luguber](#):
>
> Another question, is it possible to make it possible to rearrange the capabilities on a device?  
> For example, I have a device with 18 capabilities. If I want to add one more now it will end up at the bottom. However, this new capability would fit better at the top together with other similar capabilities, to make it more tidy and organized. So to rearrange it now, you have to make small edits to all the others you want the new to be on top of, in the right order, as an edited one will end up at the bottom of the list.  
> Would love for it to be an easier way of doing this.

Yeah, and yes there is, i allready do it with button1.  
When button 1 is changed (not name, but icon or type) all other buttons (and yes/no with button option) will be recreated!  
This, because the order off appending the capabilities makes up the sequence.

So yeah, i know of a simple way (just add sequence fields to every field).  
Only thing is, changing a #1 field, will make it really heavy.

So i actually wait a bit to see if the app works correct, before adding this functionallity.  
But it is on my list.

---

<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 7, 2022, 3:02pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/452 "2022-09-07T15:02:51Z")

</div>

> [@Peter\_Kawa](#):
>
> @Arie_J_Godschalk For the mobile app, the numberfield has to have a value with the “set status to” flow cards, but is it possible you set it to hidden (or make that a user choice)?

Yes, just set the Status with Number field, but leave the number empty. It will clear the number, giving a dash (-) in Web and nothing in Mobile.  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/2/32971d1c793d1e5161582a5c1477582630b5fefe.png)

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

Without a number, it will also not show it on the tabs:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/c/4c56d64950a25cbd94fd46e7398e66d2571257e8.png)  
([Status] is still “or away”, but you cannot see it).

You need a number in it to see it here:

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

Still hoping to find a secret number which makes it invisible or something…

---

<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 7, 2022, 3:19pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/453 "2022-09-07T15:19:03Z")

</div>

Weird.  
When i enter  
9223372036854775295  
i get:  
9223372036854775000

when i enter  
9223372036854775296  
i get:  
9223372036854776000

While i would assume 9223372036854775807 would be the highest. Weird.

---

<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 7, 2022, 8:52pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/455 "2022-09-07T20:52:00Z")

</div>

Small update to Test:  
Execute Expression card:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/b/ab8d8add79be658475d4c3be0655f33253312355.png)

It works the same as Set expression, but its an App flowcard (not device) and gives the values back as tokens.

I know you can use HomeyScript and some other apps.  
I just want to be able to use my own predefined functions from App Settings.

---

<div class="post-metadata">

**Author:** ![luguber](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luguber/32/16795_2.png) [@luguber](https://community.homey.app/u/luguber)\
**Post date:** [September 8, 2022, 12:31am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/456 "2022-09-08T00:31:09Z")

</div>

Yes, don’t get me wrong, I think this app is awesome. I just don’t know what are hard limits enforced by Athom, and what are bugs, or tweaks waiting to happen 🙂

---

<div class="post-metadata">

**Author:** ![luguber](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luguber/32/16795_2.png) [@luguber](https://community.homey.app/u/luguber)\
**Post date:** [September 8, 2022, 12:33am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/457 "2022-09-08T00:33:53Z")

</div>

I see, they are not status indicators as such.  
Is it possible to make a custom class, with custom icons attached to them?

---

<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 8, 2022, 7:14am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/458 "2022-09-08T07:14:33Z")

</div>

> [@luguber](#):
>
> Is it possible to make a custom class, with custom icons attached to them?

You mean, can i as a developer, instead of setting a device class to Lock with a Lock Status Indicator, create a new class with its own status indicator icon?

If so: No that is not possible.

---

<div class="post-metadata">

**Author:** ![luguber](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/luguber/32/16795_2.png) [@luguber](https://community.homey.app/u/luguber)\
**Post date:** [September 8, 2022, 7:31am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/459 "2022-09-08T07:31:21Z")

</div>

Thanks, that was what I meant.

---

<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 8, 2022, 7:48am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/460 "2022-09-08T07:48:27Z")

</div>

You can cheat a bit tho, with emoji’s:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/1/01b394cd4005d3abaf28610ac77f802d8d189ded.png)

---

<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 8, 2022, 8:13am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/461 "2022-09-08T08:13:09Z")

</div>

Just updated TEST with a few “icons” in device Settings:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/7/27a7e2a4ee611751b0275cb860709a5151d64933.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/7/a70c8a222f71a18ed7a47962254d7dcdd49efc71.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/0/804ba3ab8338b4fdc7442c607a9654ea21987804.png)

With these colors, you can scroll through settings a bit faster when looking for certain fieldtypes.  
I (tried) to use the colors that Homey uses for variable types.

---

<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 8, 2022, 8:42am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/462 "2022-09-08T08:42:08Z")

</div>

@Caseda , @DirkG , @Le_Cactus , @Gruijter , @Peter_Kawa

Wanted to ask you a question.  
Because i just realized, that i can give each created device it’s own customisable icon, without adding to app.json or the iconlist.  
And the most part of the sourcecode is allready done, beccause this is what i tried first (but now know how to complete).

Question 1:  
**Should i implement this?**  
It would mean during creation you can just pick a icon out of all default icons (or upload your own here again) with a text that you can customise it after creation also.  
It would also mean that the custom icon list is just for capabilities.

Question 2:  
**Or should it be still an option to pick a custom icon (and replace that later) just like now?**  
The only win is that when you have 10 devices with the same icon and can change it later with just one adjustment. However, this can never be undone, you can never split the device icons again this way.

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [September 8, 2022, 9:06am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/463 "2022-09-08T09:06:29Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> Should i implement this?

+1

---

<div class="post-metadata">

**Author:** ![Joka](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Joka](https://community.homey.app/u/Joka)\
**Post date:** [September 8, 2022, 9:46am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/464 "2022-09-08T09:46:47Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> Question 1:  
> **Should i implement this?**

👍

---

<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 8, 2022, 9:53am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/465 "2022-09-08T09:53:08Z")

</div>

But please note, i am thinking about removing the 21-40 device from customlist and add them to 21-40 capabilities, since the will be just primaraly for capabilities.

What do you guys think?

(It’s just a name, in the background the icon is named custom\_\*\* and will not change.)  
So nothing will break, just a few icons change names (device21-40 to capabilities 21-40)

---

<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 8, 2022, 10:18am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/466 "2022-09-08T10:18:15Z")

</div>

Version 2.0.14 just went live (thanks Athom)!:

- Solving some bugs
- improved Device settings (a few color items to make it more clear which fields you are at)

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

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