# \[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:** 1\
**Showing post:** 672

<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 21, 2022, 9:14pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/672 "2022-09-21T21:14:19Z")

</div>

> [@HuisCHovens](#):
>
> i only get this

(Link to [that shared ADV](https://community.homey.app/t/advanced-virtual-device-share-your-device/68676/12) , for your and my convenience)

Thanks for trying. This one has a bit explanation needed.

As explained in the flow card you’ll have to run the flow at least once, then the HomeyScript variables are created on the fly. Then, the “onbeschikbaar” (“unavailable”) tags should change into the ones of my flow screenshot.  
 ![Screenshot from 2022-09-21 23-11-06](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/1/f11933afb1a7fcf594bf2de2b0315dba22424ade.png)

And, _keep in mind, the HomeyScript flowcard is imported as DeviceCapabilities ‘clone’._ **Explanation below!**  
 ![Screenshot from 2022-09-21 23-22-29](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/0/f06dc1d9c2e00537efa737a49abd8bbf4161ba43.png)  
  
  
So, click on the blue text, copy the script inside of it (ctrl-A ctrl-C),

![Screenshot from 2022-09-21 23-15-54](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/f/bf9deef235904584898279b44adca09a3535c7fb.png)  
  
  
and replace the card with an _ **AND type card** _ HomeyScript “Run code”,  
 ![Screenshot 2022-09-21 at 23-37-28 1.HomeyPro Peter](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/2/f2fcad052daec069a03561aedab5081a1ce7ba49.png)

so it should look as the card in the screenshot above, and paste the just copied script.  
  
  
**Homeyscript and Device Capabilities import**

> [@Arie\_J\_Godschalk](#):
>
> HomeyScript has been “disabled” in the import.  
> Whenever a flowcard is of HomeyScript, it gets replaced with my App.  
> Meaning that the flow stays allright, the code just cannot be triggered automaticly, and you need to replace the card with the HomeyScript cards, keeping (when clicking Replace) the lines and tags all in order!
> 
> It also means, that whenever HomeyScript adds cards, it will still gets replaced, just with a card that doesn’t exists (i’ve “copied” all current HomeyScript cards), thus it will just grey-out (giving me time to implement the new card).
> 
> This implementation might feel straings to some, but you don’t want the ability to import “random” flows which might contain a HomeyScript that runs every seconds and sends keys and codes (only accessible to HomeyScript) to a server somewhere, only to find out what is in the code after it has allready send it.
> 
> Beter save then sorry.

---

_[View the full topic](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287)._
