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

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [September 9, 2022, 9:38pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/547 "2022-09-09T21:38:28Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> Do you now how they did it? And why was it made impossible? Is it that Athom doesn’t want it, or just had to close bugs or improve the SDK and as a result it became impossible?

How, I definitely have no clue, I thought it was just adding set capability including enum values during pairing, but I’ve never looked to deep in that code, the code is still online on [github](https://github.com/ArjanKranenburg/virtual-devices) including lots of the history perhaps you can find it in there.  
As to why it was made impossible, I believe it was a change in one of the bigger SDK updates that just removed the functionality that was used to add it during pairing, probably a safety thing, don’t think Athom ever said any specific reason.

> [@Arie\_J\_Godschalk](#):
>
> Why do you say that? Is there a way you have in mind?

Hmm, I had just a rebuild of (re)pairing code in mind by adding the enum values and send that allong during (re)pairing and thus losing the ID of the capability (forgot about the extra hidden capability thing)  
But if the enum values need to be pre-defined in the app.json that will make it a bit harder without having some generic values… Or just the few default picker capabilities.

And I guess there is no easy way to “overwrite” the i18n title part of the enum right? 🤔

---

<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 9, 2022, 10:03pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/548 "2022-09-09T22:03:09Z")

</div>

> [@Caseda](#):
>
> And I guess there is no easy way to “overwrite” the i18n title part of the enum right? 🤔

That would be a next try, but its not like i can have full control over every instance of i18n.  
I dont think i can hack it before or in the same instance as Homey uses it to build the device.

Btw: during paring, you can create a device (and give it an icon, never knew about adding more stuff here ;)).  
But “repairing” is just an option for a UI per-device, instead of the App settings.

As far as i know, there is nothing special i can do in repairing to edit a device, that you not allready can in the app itself. Only in pairing is the createDevice a special function which allows for manipulation.  
Afaik, you cannot alter device data, like an icon, after creation?! (I just give the devices a unique image and the option the overwrite that file, i dont change the device when altering a device icon).

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [September 9, 2022, 10:45pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/549 "2022-09-09T22:45:04Z")

</div>

Thanks!

---

<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 9, 2022, 11:50pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/550 "2022-09-09T23:50:18Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> Sorry about the changes. This actually had nothing to do with the new Settings themself, but with a few days back added options to all field to: Create Flow Cards and Create Hidden Fields.
> 
> This might get a bit technical, but i’ll still try to explain.

No worries mate, it’s still in test-till-you-drop phase, isn’t it?  
Thanks for explaining, it is a bit to technical for me, but, now I understand the ‘hidden fields’ and the meaning of the ‘Create flow cards’ option a lot better.

Imho I think you should turn your last bullet list (motion alarm, numberfield, thermostat) into a tooltip in some kind of way, and call the option (“Create flow cards”) itself like "Enable zone/status/flow functionality’'? And a link to the forum topic at some places can’t hurt I think.  
I mean, in common, many users don’t seem to know about the forum and support links at the bottom of the app pages @ homey.app

---

<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 10, 2022, 6:21am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/551 "2022-09-10T06:21:36Z")

</div>

Great, great, give me more tips 😉

I’ll try and implement some more clearity today.  
Fist a few small fixes left to the settingscreen, like:

- ~~The close button disappears in Mobile.~~
- ~~Class set to Other by default in Settings.~~
- ~~Device start text is wrong about goto device settings.~~
- ~~The save button doesn’t always respond when pushed.~~
- ~~Remove unneeded Pick Device during Creation of AVD.~~
- Create Flow Cards can only be selected for the first of its type.  
If you allready have a button OnOff and you click on Create Flow Cards, it will (allready) append a surfix to the name. But in Settings it should also hide the field when not applicable.

I have some time today to try and finish this app up a bit, but i also want some family time (and they do too 😉 )

---

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

</div>

> [@Peter\_Kawa](#):
>
> Question (DareToAsk): Is it even possible to copy or clone an existing AVdevice?  
> Or, base a new device on a ‘template’ device?

**@Peter_Kawa Watch this!!! This could be real fun!!!**

---

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

</div>

> [@Arie\_J\_Godschalk](#):
>
> @Peter_Kawa Watch this!!! This could be real fun!!!

Hey @Peter_Kawa , check this out: [Advanced Virtual Device - Share Your Device! - Apps - Homey Community Forum](https://community.homey.app/t/advanced-virtual-device-share-your-device/68676)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/f/2f2cf5c4c2928a9f7cacabd5d7e2ab7c0c092b01.png)  
and then

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

And you’re my first example 🙂 :  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/5/a5ccb604ac3be500498e38ea6231e10b8442991e.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 10, 2022, 9:40am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/554 "2022-09-10T09:40:59Z")

</div>

**Now with device icon in the Share Your Device json!**

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [September 10, 2022, 10:44am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/555 "2022-09-10T10:44:43Z")

</div>

Nice new feature!

I suggest (if possible) to make a note at the settings page of the device that device settings must now be done through the repair option. Now you only see the constant power usage, a hint to new users might help them.

Also, if there a way to trigger/open the repair option from the desktop/webapp? The repair options isn’t available there, so device setting can only be change from within the mobile app.

The close button on the repair screen is visible now, but it doesn’t close the screen, so I can only press the X, that triggers the “Weet je zeker dat je wilt stoppen” warning.

Other question, is there a way to add a device icon to older devices? My older devices doesn’t seem to have that option:

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

One would assume that repairing the device would add the missing settings to the device so you can change the icon for there devices also.

All minor issues, but if you ever get bored it would be great if you could fix there 😉

---

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

</div>

> [@Le\_Cactus](#):
>
> Also, if there a way to trigger/open the repair option from the desktop/webapp? The repair options isn’t available there, so device setting can only be change from within the mobile app.

Yes! Thats why i did it this way:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/2/522c9ddb18eec23eade9e8ee081016864846b0c4.png)

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [September 10, 2022, 10:47am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/557 "2022-09-10T10:47:20Z")

</div>

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

Weird, missing on my end…

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [September 10, 2022, 10:48am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/558 "2022-09-10T10:48:14Z")

</div>

Never mind, restarten the app and it’s there now:

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/c/3c057758216902509515d6f6fd1472e76936f261.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 10, 2022, 11:00am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/559 "2022-09-10T11:00:43Z")

</div>

> [@Le\_Cactus](#):
>
> Other question, is there a way to add a device icon to older devices? My older devices doesn’t seem to have that option:

No, sorry, thats why its locked.  
Best thing: copy your device ID, export the device with Share Your Device.  
Then delete the device.  
Then create new device and import the Share Your Device.  
Then use the script on this forum (link somewhere above) to reset all your flows.

Done. No you can change that icon.

---

<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 10, 2022, 11:35am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/560 "2022-09-10T11:35:39Z")

</div>

> [@\[APP\]\[Pro\] Device Capabilities - Enhance the capabilities of devices](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/553):
>
> Hey @Peter_Kawa , check this out: [Advanced Virtual Device - Share Your Device! - Apps - Homey Community Forum](https://community.homey.app/t/advanced-virtual-device-share-your-device/68676) [image] and then And you’re my first example slight_smile : [image]

Very impressed, Arie! Thanks again!

---

<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 10, 2022, 11:58am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/561 "2022-09-10T11:58:41Z")

</div>

> [@Le\_Cactus](#):
>
> Nice new feature!

Thanks!

> [@Le\_Cactus](#):
>
> I suggest (if possible) to make a note at the settings page of the device that device settings must now be done through the repair option. Now you only see the constant power usage, a hint to new users might help them.

Done!

> [@Le\_Cactus](#):
>
> Also, if there a way to trigger/open the repair option from the desktop/webapp? The repair options isn’t available there, so device setting can only be change from within the mobile app.

Richt click on the Device → Repair

> [@Le\_Cactus](#):
>
> The close button on the repair screen is visible now, but it doesn’t close the screen, so I can only press the X, that triggers the “Weet je zeker dat je wilt stoppen” warning.

Should work now, it is with my mobiles and devices i test with.

> [@Le\_Cactus](#):
>
> Other question, is there a way to add a device icon to older devices? My older devices doesn’t seem to have that option:  
> One would assume that repairing the device would add the missing settings to the device so you can change the icon for there devices also.

No, because the were selected custom icons (which you can still change) or the were default icons, which you cannot write to, and there is no way of altering the iconpath to a device. So the old evices have icons in locations i cannot write to.

> [@Le\_Cactus](#):
>
> All minor issues, but if you ever get bored it would be great if you could fix there 😉

---

<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 10, 2022, 12:01pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/562 "2022-09-10T12:01:25Z")

</div>

> [@Peter\_Kawa](#):
>
> Very impressed, Arie! Thanks again!

Thanks!

And i will make it that custom icon to capabilities/fields can also be included 🙂

---

<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 10, 2022, 12:03pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/563 "2022-09-10T12:03:41Z")

</div>

In Test now: The newest version with bugfixes and Settings clean up after setting values.  
For instance: When you have a icon selected, and change show as to something that makes icon not possible, it will hide icon (allready functional) and will set the icon to empty (new implemented).  
This will keep settings clean for Sharing!

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [September 10, 2022, 12:09pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/564 "2022-09-10T12:09:59Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> No, sorry, thats why its locked.  
> Best thing: copy your device ID, export the device with Share Your Device.

Bummer, the old devices can’t be exported. I guess I just have to recreate them then.

---

<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 10, 2022, 12:12pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/565 "2022-09-10T12:12:23Z")

</div>

> [@Le\_Cactus](#):
>
> Bummer, the old devices can’t be exported. I guess I just have to recreate them then.

Why not?  
The Icon of old devices cannot be exported, but, the rest can be exported. And there is a script here to fix flows.

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [September 10, 2022, 12:16pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/566 "2022-09-10T12:16:30Z")

</div>

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

I can press export all I want, but te list remains empty with one of my devices. Others (also older ones) do get the json export.

It’s a very simple device, only three buttons an a textfield, so I’ll recreate it and use the script to repair my flows.

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

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