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

<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 17, 2023, 6:31am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1428 "2023-06-17T06:31:28Z")

</div>

> [@Peter\_Kawa](#):
>
> I used this as **BLL expression** :
> 
> ```auto
> $values[0]*100
> 
> ```

Hey @Peter_Kawa ,

First off: This is fine and works fine, however, let me explain the fields a bit and it’s logic.  
I want to create a good manual for the DC App when i have the time, but for now, let me explain the Reflect Calculation and BLL fields.

When you enter multiple Reflect devices, the Calculation field becomes mandatory.  
You can pick a default Calculation, or pick BLL, which makes the Calculation BLL Expression field available.  
During/within the Calculation fields, you only have access to the Array `$values`, which contains all the reflected values.  
After the calculations (BLL or default), the `$value` variable becomes available, generated by the calculation.  
In you example, the `$value` wil contain the first reflected value because of the Calculation BLL Expression you have `$values[0]`.  
So in you example, in the BLL Expression field (which is for this example a bit redundent), you can just write `$value*100` if you wanted.

The field BLL Expression becomes mandatory when you have Reflect-properties which are not of the same type as the Field itself. But since you use calculation (which is also mandatory), i need to adjust the logic so that BLL Expression is not mandatory when a Calculation is entered.  
Because technicly, you could just write `$values[0]*100` in the Calculation BLL Expression field, and that should be enough.  
But since, right now, the BLL Expression field is still mandatory because of the Turned on (boolean) property, you would then need to write `$value` in the BLL Expression field.

So no need to change how you did it, just a clarification on how it all works 🙂

---

<div class="post-metadata">

**Author:** ![t\_F](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/t_f/32/12457_2.png) [@t\_F](https://community.homey.app/u/t_F)\
**Post date:** [June 18, 2023, 11:06am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1429 "2023-06-18T11:06:16Z")

</div>

Hi Arie,

This is not working for numberfields with predefined sensory “show as” values - for example [humidity (sensor)] - right? Those fields for example always stay above of non defined textfields no matter what.

Thanks!

---

<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 18, 2023, 11:41am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1430 "2023-06-18T11:41:00Z")

</div>

Not as far as i know, afaik, fields are shown based one when the are created as capabilities on the device. And whenever you change the ShowAs, icon of CreateFlowcards, the field is recreated as another capability, placing it as the most below field.

I made an exception for Button1 (so it will always be the device-tile-button): whenever Button1 is changed, all other yes/no and button fields are recreated.

---

<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:** [June 18, 2023, 12:21pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1431 "2023-06-18T12:21:14Z")

</div>

Arie apologies if already asked but would it be possible to return rather names for values fields ?  
It works fine for non DC devices.

![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/c/ec1c461854079a2492d45fafa1aaf349f8c929a8.png)

_Well, I see now in the Maintenance names of the fields so there is a way to identify correct field quite easily_

---

<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 18, 2023, 1:42pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1432 "2023-06-18T13:42:47Z")

</div>

Sure, please create a ticket? Thanks!

---

<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 20, 2023, 3:06pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1433 "2023-06-20T15:06:51Z")

</div>

> [@Sharkys](#):
>
> Arie apologies if already asked but would it be possible to return rather names for values fields ?  
> It works fine for non DC devices.

Fixed in the upcoming release.

---

<div class="post-metadata">

**Author:** ![Pbmco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pbmco/32/77880_2.png) [@Pbmco](https://community.homey.app/u/Pbmco)\
**Post date:** [June 21, 2023, 8:38am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1434 "2023-06-21T08:38:58Z")

</div>

Hi, new here sorry.  
Tried to read previous issues, but not clear if this regards the “homey bug” mentioned earlier.

The triggers based on a text field don’t seem to start at all on my HomeyPro 23:

 ![Screenshot 2023-06-21 at 10.32.58](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/b/bbeef4c21f3eaec574912484b21ac496633a860e.png)  
 ![Screenshot 2023-06-21 at 10.32.15](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/1/015c721168d99b7f80112ea6da3cc541ae535d28.png)

Question 1:  
Is that a known bug (Homey or app), or did I do sthg wrong ? 😁

Question 2:  
Also, I do understand a bit of dutch, but it’s hard to follow the conversation, since the nomenclature of the AVDs/related cards is obviously different in all languages 😅.  
What’s the difference in this text field card, between **"is changed**" and “ **is set** ” ?

Thanks!  
Pierre

---

<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 21, 2023, 8:42am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1435 "2023-06-21T08:42:17Z")

</div>

> [@Pbmco](#):
>
> **"is changed**" and “ **is set** ”

If the value is 1, and you set the value to 1 again, Is changed will not trigger, but is Set will trigger.

To trigger the flowcards, make sure to select that option in the Set value cards.

---

<div class="post-metadata">

**Author:** ![Pbmco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pbmco/32/77880_2.png) [@Pbmco](https://community.homey.app/u/Pbmco)\
**Post date:** [June 21, 2023, 8:45am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1436 "2023-06-21T08:45:04Z")

</div>

Thanks Arie, that was fast. So sorry, I hadn’t understood that activating the « when » cards is an option.  
All is clear now 🙏🙏 😀  
Pierre

---

<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 21, 2023, 9:19am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1437 "2023-06-21T09:19:22Z")

</div>

> [@Pbmco](#):
>
> So sorry, I hadn’t understood that activating the « when » cards is an option.

Yeah, i have kind off build this wrong.  
I am still thinking about deprecating the current flowcard and building a new one, which would be kinda the same, but have the “Execute flowcards” set to true by default.

---

<div class="post-metadata">

**Author:** ![Pbmco](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pbmco/32/77880_2.png) [@Pbmco](https://community.homey.app/u/Pbmco)\
**Post date:** [June 21, 2023, 9:28am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1438 "2023-06-21T09:28:50Z")

</div>

Don’t be too hard on yourself 😉  
Yes, for a new user like me, having the « execute the _when_ flowcards » to true as a default is likely more intuitive.  
But once you understood it, it’s not a big deal.

Just consider changing it, if questions such as mine are too frequent, in view also of the large user base you already have with the current mechanism.

---

<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 21, 2023, 9:38am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1439 "2023-06-21T09:38:17Z")

</div>

> [@Pbmco](#):
>
> Just consider changing it, if questions such as mine are too frequent, in view also of the large user base you already have with the current mechanism.

Well, creating multiple flowcards, even if old once get deprecated, will still increase memory usage and complexity.

When you do not select a value for the "nothing else/ execute flowcards, it already defaults to do nothing.  
This i cannot change, because it would break current flows from running as the are build.

### However

I just realized i can enter a default value for the argument, so that when users add the flowcard to a flow, a value will be pre-selected.  
And i just filled the fields with the Execute Flowcards (When) as the default value when adding the flowcard to a flow 🙂

So, from 2.14.6, when you add this card, the Execute Flowcards will be auto-selected, just like most users would want, without breaking current flows 🙂

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

It’s in test now:

> **[Device Capabilities | Homey](https://homey.app/en-us/app/nl.qluster-it.DeviceCapabilities/Device-Capabilities/)**
>
> Enhance the capabilities of devices

---

<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 21, 2023, 10:17pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1440 "2023-06-21T22:17:11Z")

</div>

I have just created my first [Sharptools.io](http://Sharptools.io) Dashboard.  
First i created a custom present/sleeping tile.  
After that a custom container tile based on a AVD + BLL Variable:  
[[APP][Pro] Better Logic Library - Just some better logic, variable and library management - #345 by Arie\_J\_Godschalk](https://community.homey.app/t/app-pro-better-logic-library-just-some-better-logic-variable-and-library-management/5568/345)

And after that, i have duplicated my Garden(back)Light:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/2/628ac1331aee9a917cb1ada0aeec04b4390cd944.png)

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/1/9115149129184828122b8eac49ea82452a34df17.png)

Results in:  
Normal / off:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/b/3b394566091ef8ad1bee9f13d109ff4ba447ae6e.jpeg)

When there is motion (and the light is turned on):  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/f/9f2648d92521a2bac83ac2fa4a348b675fa530ab.png)

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

I can push the light, and it turnes off.

Nice @joshua !

---

<div class="post-metadata">

**Author:** ![joshua](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/joshua/32/44829_2.png) [@joshua](https://community.homey.app/u/joshua)\
**Post date:** [June 21, 2023, 10:35pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1441 "2023-06-21T22:35:02Z")

</div>

That looks great! Thanks for sharing!

If the icon in the top right is an SVG, as long as it doesn’t explicitly specify the fill/stroke color, it will automatically adapt to your theme colors.

If it’s an SVG, but it has the color specified, you can try the little “SVG stripper” tool I threw together:

[https://svg-stripper.glitch.me/](https://svg-stripper.glitch.me/)

---

<div class="post-metadata">

**Author:** ![Heula](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heula/32/31852_2.png) [@Heula](https://community.homey.app/u/Heula)\
**Post date:** [June 22, 2023, 5:30am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1442 "2023-06-22T05:30:58Z")

</div>

Hi @Arie_J_Godschalk , I really love all we can do with this app and all other apps you have created.  
Learning every day again.  
there is only one thing I miss and that is the option to sortorder the items. When we have added devices and later on we add an item extra it is at the bottom of the AVD with no way of placing it further up or down if needed.

Further I like to have the option we can reflect to (Start) flows and apps items like for example Hue scenes from the Hue app if possible off course.

Thanks.

---

<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 22, 2023, 5:41am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1443 "2023-06-22T05:41:36Z")

</div>

> [@Heula](#):
>
> Further I like to have the option we can reflect to (Start) flows and apps items like for example Hue scenes from the Hue app if possible off course.

Could you explain this some more?

---

<div class="post-metadata">

**Author:** ![Heula](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heula/32/31852_2.png) [@Heula](https://community.homey.app/u/Heula)\
**Post date:** [June 22, 2023, 6:03am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1444 "2023-06-22T06:03:21Z")

</div>

Sure, now we have three options, devices, BLL and Chronograph.  
If possible , Start flows and Apps could be added to this list. For me it would be handy to have apps so I can add Hue scenes to my AVD’s and for flows it can start a flow off course.

 ![2023-06-22 07_51_19-Homey 2023 Alex en Astrid](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/0/40031109f783056c39268a32a583dba85dd5dcff.png)

Thanks.

---

<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 22, 2023, 6:06am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1445 "2023-06-22T06:06:23Z")

</div>

> [@Heula](#):
>
> Hue scenes

How do you currently start Hue scenes?  
(I dont have Hue, i have no idea how that works prakticly).

> [@Heula](#):
>
> flows it can start a flow

Sorry, flows cannot be started from an app, so this would not be possible. Apps do not have (or get) permissions for that.

---

<div class="post-metadata">

**Author:** ![Heula](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heula/32/31852_2.png) [@Heula](https://community.homey.app/u/Heula)\
**Post date:** [June 22, 2023, 6:23am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1446 "2023-06-22T06:23:41Z")

</div>

Now I have a flow doing all that. I can select all available Hue scenes from the Philips Hue app.

 ![2023-06-22 08_19_39-Homey 2023 Alex en Astrid](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/5/a53bb24e30aebfc5b7edd1901d31367298be7a44.jpeg)

---

<div class="post-metadata">

**Author:** ![Ranney](https://avatars.discourse-cdn.com/v4/letter/r/848f3c/32.png) [@Ranney](https://community.homey.app/u/Ranney)\
**Post date:** [June 22, 2023, 4:52pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1447 "2023-06-22T16:52:07Z")

</div>

Hmm, a stupid question here again 🙈

Everything was working great! I’ve got some advanced virtual devices with buttons (to better logic) with a boolean for yes and no. (And of corse some advances flows behind it)

But now, all my buttons are not working. After some search, pushing the button is not changing the better logic value. Any idea what I do wrong?  
(it was working, so there must be changed something?)

Thanks for any help ☺

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

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

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