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

<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:** [September 16, 2023, 9:20am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1569 "2023-09-16T09:20:08Z")

</div>

Hi @Arie_J_Godschalk, in terms of memory it looks good and the consumption is a lot lower than before and the app continues to work with all my restored AVDs.  
That’s going well.

 ![Screenshot_20230916_111009_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/3/7301beed1a7e3f064a6ed317d2670645fd46542c.jpeg)

I do see something strange now and that is that wrong logic is displayed in the AVDs after saving changes.  
After restoring my previously deleted AVDs via TEF, when I do maintenance I see that there are incorrect logics for the various items. At first I thought it was due to the TEF, but if I replace the incorrect logic with the correct logic and save it, you will see that the incorrect logic immediately returns.  
I think the wrong logic is being used for the right values, but I’m not entirely sure.

This is with multiple AVD’s and multiple items within the AVD

92dc5e1c-99cc-433f-9539-57d8c89d0783

 ![Capture_1012](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/5/85209308d67aa45451c7e2a9f15a4bcdcfc9f4bc.jpeg)  
 ![Capture_1013](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/5/c5312babf16a3555b691922d2058c526bb44d7a4.jpeg)

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:** [September 16, 2023, 10:23am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1570 "2023-09-16T10:23:02Z")

</div>

Good to hear about the memory!

And indeed, the test version still had some bugs, sorry about that.  
I’ll continue next week with bugfixing.

---

<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:** [September 16, 2023, 10:50am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1571 "2023-09-16T10:50:53Z")

</div>

No problem, good luck and no rush.

---

<div class="post-metadata">

**Author:** ![Krisch2](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/krisch2/32/47804_2.png) [@Krisch2](https://community.homey.app/u/Krisch2)\
**Post date:** [September 16, 2023, 6:15pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1572 "2023-09-16T18:15:10Z")

</div>

Thanks for a great app!

Ever since 2.14.8 the app constantly crashes on my Homey Pro 19.  
I’ve tried multiple restarts of the app and homey, reinstall the all but it crashes all the time.  
I’ve not tried to delete the app, as I’ve quite some programming going on…

Any other here experiencing the same?

---

<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 16, 2023, 6:54pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1573 "2023-09-16T18:54:24Z")

</div>

Update to v2.15.1?

---

<div class="post-metadata">

**Author:** ![Krisch2](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/krisch2/32/47804_2.png) [@Krisch2](https://community.homey.app/u/Krisch2)\
**Post date:** [September 16, 2023, 7:50pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1574 "2023-09-16T19:50:48Z")

</div>

I’m currently on 2.15.2

---

<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 16, 2023, 9:03pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1575 "2023-09-16T21:03:20Z")

</div>

2.15.2 contains bugs.  
Ill continue next week.

---

<div class="post-metadata">

**Author:** ![Krisch2](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/krisch2/32/47804_2.png) [@Krisch2](https://community.homey.app/u/Krisch2)\
**Post date:** [September 17, 2023, 6:32am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1576 "2023-09-17T06:32:13Z")

</div>

Ok, thanks for feedback! Then I’ll wait for an updated version!  
All the best.

---

<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 17, 2023, 12:11pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1577 "2023-09-17T12:11:48Z")

</div>

Just install 2.15.1 (stable) over 2.15.2 (test)?

---

<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:** [September 18, 2023, 6:30am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1578 "2023-09-18T06:30:36Z")

</div>

> [@Arie\_J\_Godschalk](#):
>
> And indeed, the test version still had some bugs

Arie also seems that in 2.15.2 the trigger doesn’t work.  
 ![obrazek](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/5/f5d85271b5bbbf2f85c2e0260e740b0155fc657d.png)  
_(no crashes on HP23 but switched over to 2.15.1 due to this)_

---

<div class="post-metadata">

**Author:** ![Tirrazo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tirrazo/32/55444_2.png) [@Tirrazo](https://community.homey.app/u/Tirrazo)\
**Post date:** [September 19, 2023, 9:45pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1579 "2023-09-19T21:45:07Z")

</div>

Please direct me if this is not the place

I got a script and advanced flow from this page a year ago. It ran 3 scripts every day to check zigbee devices, like motions sensors, if they were reachable.  
It showed the results on the timeline of Homey.

Does anybody have an updated version of this or the original one?

---

<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 19, 2023, 11:24pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1580 "2023-09-19T23:24:53Z")

</div>

> **Motion script**
>
> ```auto
> // Sensor.Motion_Check.js 
> 
> // to check motion sensors connection by comparing last update times
> 
> let array = [];
> 
> const devices = await Homey.devices.getDevices({ filter: {class: 'sensor', capabilities: 'alarm_motion'} });
> 
> _.forEach(devices, device => {
> 
> //log(device);
> 
> array.push( device.capabilitiesObj.alarm_motion.lastUpdated?.substring(0,16) + "\t" + 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("Motion sensors:\n" + array_sorted.join('\n') + "\n\nSensor.Motion_Check.js");
> 
> Homey.flow.runFlowCardAction({
> 
> uri: 'homey:manager:notifications',
> 
> id: 'create_notification',
> 
> args: {
> 
> text: "Motion sensors:\n" + array_sorted.join('\n') + "\n\nSensor.Motion_Check.js"
> 
> },
> 
> });
> 
> return(true);
> 
> ```

> **Temperature script**
>
> ```auto
> // Sensor.Temperature_Check.js 
> // to check Temperature sensors connection by comparing last update times
> let array = [];
> 
> const devices = await Homey.devices.getDevices({ filter: {class: 'sensor', capabilities: 'measure_temperature'} });
> _.forEach(devices, device => {
> array.push( device.name + '\t==> ' + device.capabilitiesObj?.measure_temperature.lastUpdated?.substring(0,16) );
> });
> 
> //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("Temperature sensors:\n" + array_sorted.join('\n') + "\n\nSensor.Temperature_Check.js");
> 
> Homey.flow.runFlowCardAction({
> uri: 'homey:manager:notifications',
> id: 'create_notification',
> args: {
> text: "Temperature sensors:\n" + array_sorted.join('\n') + "\n\nSensor.Temperature_Check.js"
> },
> });
> return(true);
> 
> ```

---

<div class="post-metadata">

**Author:** ![Martijn\_C](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_c/32/39993_2.png) [@Martijn\_C](https://community.homey.app/u/Martijn_C)\
**Post date:** [September 20, 2023, 8:09am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1581 "2023-09-20T08:09:46Z")

</div>

Here 2.14.9 is the latest 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:** [September 20, 2023, 8:20am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1582 "2023-09-20T08:20:49Z")

</div>

Indeed 2.14.9 is the latest stable version.

---

<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 20, 2023, 12:58pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1583 "2023-09-20T12:58:59Z")

</div>

My bad, you’re right, my app says v2.14.9

I got my info by looking at the changelog, which seems to be off @Arie_J_Godschalk  
What is v2.15.1 ?

> ![Screenshot_20230920-145515_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/9/b9fae86db227250e3f88fb2b50b709c460ec0154.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:** [September 20, 2023, 2:16pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1584 "2023-09-20T14:16:01Z")

</div>

> [@Peter\_Kawa](#):
>
> What is v2.15.1 ?

That was a test-version.

---

<div class="post-metadata">

**Author:** ![Dietrich\_Kassner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dietrich_kassner/32/176924_2.png) [@Dietrich\_Kassner](https://community.homey.app/u/Dietrich_Kassner)\
**Post date:** [September 20, 2023, 9:54pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1585 "2023-09-20T21:54:40Z")

</div>

I try to make a device that is showing the state of a bll variable and switch that  
If anothrer flow change the variable it should show that.

---

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

</div>

You can use reflect for that.  
Just select the bll variable.

---

<div class="post-metadata">

**Author:** ![Dietrich\_Kassner](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dietrich_kassner/32/176924_2.png) [@Dietrich\_Kassner](https://community.homey.app/u/Dietrich_Kassner)\
**Post date:** [September 21, 2023, 1:12pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1587 "2023-09-21T13:12:31Z")

</div>

Thanks for the quick answer.  
That was what I tryed.  
But only creating the device and press the button did not change the variable.  
So I made a flow to switch the variable if the button is pressed.  
But now if the variable is changed I have a nice loop.

 ![Screenshot_20230921_145727_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/1/f130f8a21bcd27f6330c2b7557188111dc41832e.jpeg)  
 ![Screenshot_20230921_145848_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/1/718b625c7d0b2ee7b0a6c557b86132242c67a5ff.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:** [September 21, 2023, 1:25pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1588 "2023-09-21T13:25:04Z")

</div>

> [@Dietrich\_Kassner](#):
>
> But now if the variable is changed I have a nice loop

As in: it is working like you want?  
Or do you have loop that keeps coninueing (a bug).

And indeed, BLL variables are currently only used for relfect and not react, the will update the device but do not respond to pressing the button.

I might add this in the future.

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

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