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

<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:** [December 29, 2022, 12:17pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1014 "2022-12-29T12:17:22Z")

</div>

Ok, then I will watch the memory usage.

This is the behavior of the last 14 days:

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

> [@Arie\_J\_Godschalk](#):
>
> Cumulative

Is there something I have to translate?

---

<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:** [December 29, 2022, 1:02pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1015 "2022-12-29T13:02:21Z")

</div>

> [@DirkG](#):
>
> Is there something I have to translate?

No, thanks, i have used Google translate for this single word: Kumulativ.

---

<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:** [December 29, 2022, 1:14pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1016 "2022-12-29T13:14:20Z")

</div>

👍🏼 😂

---

<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:** [January 3, 2023, 9:46am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1017 "2023-01-03T09:46:04Z")

</div>

Hey @Jacques_Derks, @Peter_Kawa and @Sebby5 (and @Anders_Gregow),

We’ll continue here.  
Please remove your posts from the [The Flow Exchange(r) - Exchange Your Flows with Others! - Flows - Homey Community Forum](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/50).

@Jacques_Derks it should be resolved in 2.8.14.  
**It’s Live now!**

What is resolved:  
Importing TEF’s with Chronograph wouldn’t create the Chronograph correct (timer/etc) when creating a new one or changing the name during import.  
Both issues have been resolved, you can create the new Chronograph object with the Template name or adjust the name.

[QlusterIT / nl.qluster-it.DeviceCapabilities / issues / #21 - TEF: changing the name of a chronograph stopwatch stops/breaks the import script — Bitbucket](https://bitbucket.org/QlusterIT/nl.qluster-it.devicecapabilities/issues/21/tef-changing-the-name-of-a-chronograph)  
(Both issues had the same source)

---

<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:** [January 3, 2023, 10:58am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1018 "2023-01-03T10:58:41Z")

</div>

In Test Now (2.9.0):

**Added an API call to set the value of AVD fields:**

`await dcApp.apiPost('setvalue', {device:'Day-Amount', field:'number1', value:21});`

`await dcApp.apiPost('setvalue', {device:'Day-Amount', field:'measure_devicecapabilities_number-custom_1.number1', value:22});`

`await dcApp.apiPost('setvalue', {device:'c34dc5b4-3c30-48a9-8a4e-014aea93d00d', field:'measure_power', value:501});`

---

<div class="post-metadata">

**Author:** ![Mats\_Toftebrant](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mats_toftebrant/32/57053_2.png) [@Mats\_Toftebrant](https://community.homey.app/u/Mats_Toftebrant)\
**Post date:** [January 3, 2023, 11:48am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1019 "2023-01-03T11:48:59Z")

</div>

Hello,  
First - thanks for an excellent app!  
I am using the “device capability card” in my advanced flow to retrieve a capability value from the insight log from x minutes ago. It works really well but I am not able to find my “better logic” values. I can find the “standard logic” values in the device “Manager - logic” but not the “better logic values”. I am doing something wrong or is this not working yet?  
Thanks!  
Mats

---

<div class="post-metadata">

**Author:** ![Techniman](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/techniman/32/8654_2.png) [@Techniman](https://community.homey.app/u/Techniman)\
**Post date:** [January 3, 2023, 8:31pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1020 "2023-01-03T20:31:01Z")

</div>

Awesome!

---

<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:** [January 5, 2023, 7:23am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1022 "2023-01-05T07:23:07Z")

</div>

Hey, better logic’s variables are not capabilities.  
I don’t think you can see them with that card.

Ill have a look to see.

But what you can do: create an AVD and use those capabilities as variables.  
Now you have them grouped and you can also manage insights yourself.

---

<div class="post-metadata">

**Author:** ![Frickadillus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frickadillus/32/69500_2.png) [@Frickadillus](https://community.homey.app/u/Frickadillus)\
**Post date:** [January 5, 2023, 9:27am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1023 "2023-01-05T09:27:21Z")

</div>

Hey all! Someone that knows why I see no devices to select?

 ![Screenshot_20230104-130152](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/a/ba0ae234c4cf180a1f0232c2f49c0c4df447fea9.jpeg)

It is the same behaviour for all Device Capabilities flow cards.

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:** [January 5, 2023, 3:45pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1024 "2023-01-05T15:45:39Z")

</div>

Send me a diag?  
This is a know issue, but havent seen any usefull info in a diag yet.

---

<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:** [January 6, 2023, 9:22am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1025 "2023-01-06T09:22:52Z")

</div>

@Peter_Kawa ,

Thanks for sharing another device with flow.  
I installed “Chronograph - Get current duration of a running Timer” but I’m getting an error “Convert duration into HH:MM:SS right away”  
The error is “Invalid type for token ‘string’ expected ‘string’ but got ‘boolean’.”

Aby ideas?

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:** [January 6, 2023, 10:12am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1026 "2023-01-06T10:12:25Z")

</div>

YW!

You could have entered a non-existing timer name:

> ![Screenshot from 2023-01-06 11-19-36](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/f/5f0f7cf54ba6f1f291603c43505c23a3e66e6c44.png)

With an existing timer name, it should return the timestamp:

> ![Screenshot from 2023-01-06 11-16-18](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/7/a7f525720245d3c6f52770ed816bb5838c8378a4.png)

I can’t figure yet out how to check on a valid timer name.

---

<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:** [January 6, 2023, 11:01am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1027 "2023-01-06T11:01:03Z")

</div>

I did not enter a timer name anywhere. I just copied the code and replaced it with the right homey script card.

![Capture_921](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/6/36cfaab8a83dd12fd201987e7cc481d389262164.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:** [January 6, 2023, 11:15am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1028 "2023-01-06T11:15:08Z")

</div>

You replaced it with the wrong HS card, you need the one with a text(?) argument.

---

<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:** [January 6, 2023, 11:18am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1029 "2023-01-06T11:18:23Z")

</div>

You’ll need the THEN “Run code _with argument_ and return Text-tag” card, like Arie stated alr.  
 ![Screenshot from 2023-01-06 12-20-29](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/3/53f0a66efa59aea8e65573981f250c09b9aed559.png)

When you edit the card (select the code),  
you’ll see a text bar at the top, there you should enter a timer name.

> ![Screenshot from 2023-01-06 12-24-11](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/3/63a0f628daadb1d1700d9160a7d2b93badb4a02d.png)

In my screenshots, my used timer name is `cv_monitor` so you can see where that should go.

---

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

</div>

Okay, I got the wrong card, you are right.  
Replaced it with the right card and changed the timer name. That I had already tried but with the wrong card it did nothing off course.

Thanks, it is working now.

---

<div class="post-metadata">

**Author:** ![Frickadillus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frickadillus/32/69500_2.png) [@Frickadillus](https://community.homey.app/u/Frickadillus)\
**Post date:** [January 8, 2023, 1:14pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1031 "2023-01-08T13:14:58Z")

</div>

Here is a diag: 976f324d-8758-48e8-93ea-77f428734eb1

Thx!

---

<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:** [January 8, 2023, 11:41pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1032 "2023-01-08T23:41:21Z")

</div>

Hi @Peter_Kawa , just testing your TEF - (Updated) Sensors Connection Check. - [The Flow Exchange(r) - Exchange Your Flows with Others! - #13 by Peter\_Kawa](https://community.homey.app/t/the-flow-exchange-r-exchange-your-flows-with-others/68981/13) - are you sure you did include HomeyScript, which checks actually against last updated argument ? Somehow that check is missing it seems. Do I miss something here please ?

![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/0/2042f718e8938c77da1d9cf42c425828d0e24010.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:** [January 9, 2023, 11:03am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1033 "2023-01-09T11:03:20Z")

</div>

Hi Sharkys,

I don’t fully get what you’re missing.  
You seem to have the scripts in place.  
If all went well you copy/pasted them all 3 from the 3 dummy DC ‘Homeyscript’ cards.

---

<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:** [January 9, 2023, 11:40am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1034 "2023-01-09T11:40:29Z")

</div>

HI Peter, I don’t see in imported HomeyScript any check for that argument… basically running that flow gives me all sensors sorted by last updated time without taking into consideration Inactive time

![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/3/630c3e0af7af7696fe62b90d9e5e8fb546582c94.png)

I’m sure I’m missing something.

```auto
// Sensor.Contact_Check, to check contact sensors connection by comparing last update times

let array = [];

const devices = await Homey.devices.getDevices({ filter: {class: 'sensor', capabilities: 'alarm_contact'} });
_.forEach(devices, device => {
array.push( device.capabilitiesObj.alarm_contact.lastUpdated?.substring(0,16) + " - " + device.name );
});

//oldest date on top sort array = ["time_stamp device", "time_stamp device", "time_stamp device"]
const array_sorted = array.slice().sort(function(time_stamp, device) { 
 const firsttime_stamp = time_stamp.split(" ")[0];
 const secondtime_stamp = device.split(" ")[0];
 if(firsttime_stamp < secondtime_stamp) return -1;
 if(firsttime_stamp > secondtime_stamp) return 1;
 return 0;
});

console.log("Contact sensors:\n" + array_sorted.join('\n') + "\n\nSensor.Contact_Check.js");

Homey.flow.runFlowCardAction({
        uri: 'homey:manager:notifications',
        id: 'create_notification',
        args: {
          text: "Contact sensors:\n" + array_sorted.join('\n') + "\n\nSensor.Contact_Check.js"
        },
      });
return array_sorted.join('\n');

```

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

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