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

<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:** [May 24, 2023, 1:39pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1287 "2023-05-24T13:39:19Z")

</div>

Wow, that is really great! Thanks!

One last question; is there an easy way to add a short text string next to it? ‘Screen down’ for example? If not, then I rename the device! (The ‘device’ is controlling all the advanced flows. So a more universal name was chosen.

![Scherm­afbeelding 2023-05-24 om 15.37.48](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/5/4525b9929810603181918c2b23e9194934cfd75d.png)

Edit: And the ‘pictogram’ selector is gone. So it has no ‘pictogram’ anymore  
 ![Scherm­afbeelding 2023-05-24 om 15.41.03](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/8/9862f2f91e247fd5f5079b0c2c7721159989418c.png)

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

p.s. Will donate 2 cups of coffee for your time and help! 😉

---

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

</div>

> [@Ranney](#):
>
> Edit: And the ‘pictogram’ selector is gone. So it has no ‘pictogram’ anymore

Yeah hang on, i made a mistake, icons are hard.  
Just wait a sec 😉

---

<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 24, 2023, 1:57pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1289 "2023-05-24T13:57:32Z")

</div>

Okay, install the testversion again:

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

Now, i changed that icons can be used for Sensor (Status).  
Please note: Each time you pick another Icon, the field is re-created as different field, messing up Insights, tags and you need to reset it as indicator in the Homey App.

**Also, i made the Unit field a textbox multiline: Use enter for a breakline:**

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

This will result in multiple lines: You can only have 3 lines in the Homey app tho!

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/9/b9389378fa61284dbd0e673767adfd870789d902.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/d/7d948fab7c4e50afb02dd0f873bc12bb4850e1d8.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:** [May 24, 2023, 2:00pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1290 "2023-05-24T14:00:15Z")

</div>

Wow, another cool feature added. You’re never gonna stop, are you? 🍻

---

<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 24, 2023, 2:01pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1291 "2023-05-24T14:01:56Z")

</div>

> [@Peter\_Kawa](#):
>
> Wow, another cool feature added.

Thanks!

> [@Peter\_Kawa](#):
>
> You’re never gonna stop, are you? 🍻

Well, i just got a brilliant idea how to make this, and i have wanted this for long time, so since i got the idea now, i just implemented it 😉

Plus: this is what i love with Homey: There are so many possibilities, as long as someone themself create it in an app.

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [May 24, 2023, 2:05pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1292 "2023-05-24T14:05:13Z")

</div>

If he keeps it up, soon we won’t need any other apps. 👍👍🤭

---

<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:** [May 24, 2023, 2:06pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1293 "2023-05-24T14:06:38Z")

</div>

Really really great and many thanks!  
I’m already a Patreon, so donated 15 euro for a cup of coffee / Beer this evening.  
Really happy now and thanks for your time!

---

<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 24, 2023, 2:07pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1294 "2023-05-24T14:07:05Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> This card will execute when a certain capability from a device has been a certain value for a specific period.

Hi Arie, it works like a charm, but I was testing with my power measure device, it seems to ignore the negative sign from a value?  
The value to check by the flowcard is 300

 ![Screenshot_20230524-160128_Signal](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/2/627d34554fad7de3ca2d1c91073d119a54d578cb.jpeg)

---

<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 24, 2023, 2:08pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1295 "2023-05-24T14:08:47Z")

</div>

> [@Ranney](#):
>
> I’m already a Patreon, so donated 15 euro for a cup of coffee / Beer this evening.

Thanks m8! Much appreciated!

And if anyone else wants to support by donating of becoming a sponsor, check the verious ways you can 😉 :

> [@\[Profile\] Arie J. Godschalk](https://community.homey.app/t/profile-arie-j-godschalk/70663/3):
>
> Donations or Sponsorship. You can help with the development, maintenance and support for the Apps, by donating or becoming a sponsor. This would be much appreciated! The more donations i receive, the more time i can make free for development and support. slight_smileDonations can be done through: [[PP] PayPal](https://paypal.me/QlusterIT) Requires a PayPal account. [[GS] Github Sponsors](https://github.com/sponsors/XeroxQ) Allowes for CreditCard. Sponsorships can be done through: [[P] Patreon](https://www.patreon.com/QlusterIT/membership) Requires a Patreon account. [[GS] Github Sponsor…](https://github.com/sponsors/XeroxQ)

---

<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 24, 2023, 2:13pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1296 "2023-05-24T14:13:44Z")

</div>

> [@Peter\_Kawa](#):
>
> Hi Arie, it works like a charm, but I was testing with my power measure device, it seems to ignore the negative sign from a value?

Well, it’s a textfield which is converted into a float by `Number.parseFloat`, so it should work.  
However, please send me a printscreen of the flowcard and send me the EXACT value of the tag you are using.  
Perhaps it has a space in it or something?

Because this:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/1/718252e08959125a6db0b4a84a4a26558ed9a022.png)  
Gives as result this:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/f/af7b7164e4288b5f8fc7b15e0284d248e2ac1244.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:** [May 24, 2023, 2:53pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1297 "2023-05-24T14:53:46Z")

</div>

The positive or negative value is coming from the Homewizard app. As far as i can see, it has no (hidden) whitespace (yes I know this is thin ice for me 😜 ):  
(“measure\_power” is called “Current usage” in this app)

 ![Screenshot from 2023-05-24 16-35-01](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/2/b2c0e246de6ba77d8320fa65bf59978b68cc8237.png)

I checked with moving the cursor using the arrow keys through `-139`  
 ![Screenshot from 2023-05-24 16-29-51](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/1/519f12a2e5476756bc310e64429e847e5c01ca63.png)

Not sure what’s happening now, it doesn´t seem to matter what value I enter in the When card, the Then card just gets fired:

 ![Screenshot from 2023-05-24 16-30-50](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/a/7aeadaeb64b2754c3c01932610171dd622bfe8b9.png)

![Screenshot from 2023-05-24 16-51-29](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/2/125300cf7fe824ac21e036917f8c0e99e13ca620.png)  
  
  
The ‘measure\_power’ or ‘current usage’ is always negative during the tests  
 ![Screenshot from 2023-05-24 16-57-48](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/a/fac4f4b7f632a7fbaee660da5bd7ea217c0c1135.png)

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [May 24, 2023, 3:34pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1298 "2023-05-24T15:34:12Z")

</div>

Hi Arie,

the new test version has caused my early 23 to crash several times. Homey shows the red ring of death, but can be restarted by disconnecting it from the power supply.  
I have tried reinstalling the test version several times, but the problem remains.  
It runs with the stable version.

---

<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 24, 2023, 3:42pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1299 "2023-05-24T15:42:16Z")

</div>

@Undertaker  
I’ll look into it after diner, but its wierd: i have your crash reports: It says the flowcard doesn’t exists.

It also says its not the newest version BTW, but the old version which didn’t have the flowcard yet.  
This is very straigns!

The coding below was not yet part of 2.11.11, so this error message should not exists at all!  
It’s not possible !

It almost looks like you have the old 2.11.11 app.JSON file (which would mean the flowcard would indeed not exist yet), but have the app.JS from 2.12.0

Your app **Device Capabilities** has crashed.

**App ID**

nl.qluster-it.DeviceCapabilities

**App Version**

v2.11.11

**Homey Version**

v10.0.0-rc.108

**Stack Trace**

Error: Not Found: FlowCardTrigger with ID homey:app:nl.qluster-it.DeviceCapabilities:trigger\_capability\_hasbeen

at Remote Process

at HomeyClient.emit (/node\_modules/@athombv/homey-apps-sdk-v3/lib/HomeyClient.js:44:23)

at ManagerFlow.\_onCardGetArgumentValues (/node\_modules/@athombv/homey-apps-sdk-v3/manager/flow.js:229:26)

at FlowCardTrigger.getArgumentValues (/node\_modules/@athombv/homey-apps-sdk-v3/lib/FlowCardTrigger.js:72:25)

at DeviceSetter.refreshcapabilityhasbeennumbertrigger2s (/app/app.js:335:31)

at DeviceSetter.onInit (/app/app.js:331:43)

at process.processTicksAndRejections (node:internal/process/task\_queues:95:5)

at async SDK.\_initApp (/node\_modules/@athombv/homey-apps-sdk-v3/lib/SDK.js:249:7)

at async SDK.createClient (/node\_modules/@athombv/homey-apps-sdk-v3/lib/SDK.js:131:7)

---

<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 24, 2023, 3:59pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1300 "2023-05-24T15:59:50Z")

</div>

> [@Peter\_Kawa](#):
>
> The ‘measure\_power’ or ‘current usage’ is always negative during the tests

How do you test this?  
By pressing the test button?  
Because When cards are not validated during a manual trigger/test, only the condition cards.  
So how did you get the green checkmark?  
You cannot test a trigger/When card like this!

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [May 24, 2023, 4:02pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1301 "2023-05-24T16:02:17Z")

</div>

I have tried to reinstall the stable between the crashes. This is probably the reason for the false messages.  
The experimental crashes every 1 minute. This happened a few times until Homey showed the red ring.  
I have now reinstalled the stable version and Homey is running. The app no longer crashes either.  
The previous experimental one worked without problems.  
If you want, I can install the beta again so that you get the correct reports.

---

<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 24, 2023, 4:04pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1302 "2023-05-24T16:04:37Z")

</div>

No hurries Arie, just testing. Maybe it’s just the standard flow? I’ll try a Adv. flow with this flowcard.  
Let’s see what it sends to the log cards…

 ![Screenshot from 2023-05-24 18-11-49](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/8/f82d4d1bb5fde25a656b12571cbe9b4d929ad2cc.png)

I updated the app to v2.13.1 just before testing with Adv flow.  
I was on a v2.12.0 testversion before this, the first version which had the New Flowcard: `When [[device]].[[capability]] is [[condition]] [[value]] for [[time]] [[unit]], execute [[trigger]].`

No clue why the versions mismatch in the error logs.

I have to say the app, sometimes uses over 60MB, en then it is automatically restarted by a flow. It looks like it occurs when I run test flows, with DC cards in it, a lot, or when I’m heavily editing a AVD.

 ![Screenshot from 2023-05-24 18-03-36](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/5/75262548501df174f0db36049168399bb0d5a1d0.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:** [May 24, 2023, 4:05pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1303 "2023-05-24T16:05:43Z")

</div>

> [@Undertaker](#):
>
> If you want, I can install the beta again so that you get the correct reports.

I have just reported this to Athom:  
[homey-pro-early-2023 - Homey Community - 7 new items - Slack](https://app.slack.com/client/T04E9KJ7T/C04LQVDTY5S/thread/C04LQVDTY5S-1684944065.838129)

---

<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 24, 2023, 4:08pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1304 "2023-05-24T16:08:58Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> You cannot test a trigger/When card like this!

My bad. I pressed the test button indeed.

But, the results of this card were from the normal running flow, I was not working with Homey at 09:37 and 09:42, and the reason to ask why a negative value is seen as greater than 300

> [@Peter\_Kawa](#):
>
> ![Screenshot_20230524-160128_Signal](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/2/627d34554fad7de3ca2d1c91073d119a54d578cb.jpeg)

---

<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 24, 2023, 4:09pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1305 "2023-05-24T16:09:07Z")

</div>

> [@Undertaker](#):
>
> This is probably the reason for the false messages.

No, the messages themself cannot be correct: I think the app.json is not being overwritten correctly, that’s the only explanation imho.

---

<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 24, 2023, 5:04pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1306 "2023-05-24T17:04:51Z")

</div>

> [@Peter\_Kawa](#):
>
> I have to say the app, sometimes uses over 60MB, en then it is automatically restarted by a flow. It looks like it occurs when I run test flows, with DC cards in it, a lot, or when I’m heavily editing a AVD.

Yes, memory grows, i know.  
I allready spend many days working on finding the issues.  
However, it’s ver hard to find it on my production hp2019: Memory grows, but an app restart doesn’t let it shrink, only a full homey restart does, and takes quite some time.

I did just found a few `var`s that could be changed to `let`s, this seems to help a bit.

I am curently still on the athom-api instead of homey-api, im still waiting for the v3 to work correctly, when that’s done, i hope changes to that one will reduce the memory usage.

I installed the latest version (2.13.2, in test now), and i am restarting my homey, meaning DC will run about 25MB on my hp2019.  
Lets see if memory grows tonight without me editing anything.

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

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