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

<div class="post-metadata">

**Author:** ![Michael\_Justus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michael_justus/32/35777_2.png) [@Michael\_Justus](https://community.homey.app/u/Michael_Justus)\
**Post date:** [May 21, 2023, 5:31pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1266 "2023-05-21T17:31:36Z")

</div>

Yes, the problem is solved.  
But you still wanted a ticket?  
I was a bit surprised, but I have fulfilled your wish.

Sorry about my English, it’s deepl translated.

---

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

</div>

> [@Arie\_J\_Godschalk](#):
>
> Do you mind creating a ticcket for this, so i can solve it and communicatie about it?

That one was for someone else 😉  
Sorry, i thought you could see to whom it was replied. 🙂

---

<div class="post-metadata">

**Author:** ![Bulletcather](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bulletcather/32/13738_2.png) [@Bulletcather](https://community.homey.app/u/Bulletcather)\
**Post date:** [May 21, 2023, 6:07pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1268 "2023-05-21T18:07:26Z")

</div>

i understand exactly how your great app works. however, I can’t find how to show multiple data on a tile. Could someone help me out a bit.

---

<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 21, 2023, 6:12pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1269 "2023-05-21T18:12:49Z")

</div>

> [@\[APP\]\[Pro\] Advanced Virtual Device (Device Capabilities App) with Unique Text Status Indicator](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/389):
>
> you’ll have to use this card in particular:
> 
> ![Screenshot from 2023-05-10 15-45-52](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/7/a73591a5516b0a75c2297117068ed748400ac4fb.png)
> 
> Something like this. In the text field you can use text and numbers and/or string/boolean/numeric variables/tags, the numberfield only takes numbers and/or numeric variables/tags
> 
> ![Screenshot from 2023-05-10 15-46-20](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/7/77c9d3ac3c72d63463263bf1600629e8a2a050ff.png)

 ![Screenshot_20230521-202707_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/8/d8f295610321717e14373d9587cc20af9ea85f3a.jpeg)

That’s explained in the separate Adv. virtual device topic:

> [@\[APP\]\[Pro\] Advanced Virtual Device (Device Capabilities App) with Unique Text Status Indicator](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198):
>
> If you have questions about the App Device Capabilities or seek help with an Flow or with the Flow Exchanger, please see the [Device Capabilities Topic](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287). [German](https://community.homey.app/t/the-flow-exchange-r-helfen-und-fragen-stellen/69807)[Another German topic](https://community.homey.app/t/device-capabilities/67934)[English](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287) If you have questions about the Advanced Virtual Device or seek help with the Exchanger File, please see the [Advanced Virtual Devices Topic](https://community.homey.app/t/app-pro-device-capabilities-addendum-fully-customisable-advanced-virtual-device-with-unique-text-status-indicator/68198). This topic! [German](https://community.homey.app/t/teilen-sie-ihr-gerat-erweiterte-virtuelle-gerate-aus-den-geratefahigkeiten/69583)[English](https://community.homey.app/t/app-pro-device-capabilities-addendum-fully-customisable-advanced-virtual-device-with-unique-text-status-indicator/68198) If you want to post a AVD as a Template for others to use, please post it on [Share Your Device! - Advanced Virtual Devices](https://community.homey.app/t/share-your-device-advanced-virtual-devices-from-device-capabilities/68676). [Germa…](https://community.homey.app/t/teilen-sie-ihr-gerat-erweiterte-virtuelle-gerate-aus-den-geratefahigkeiten/69583)

Or the Share your adv. virtual device topic: [Share Your Device! - Advanced Virtual Devices from Device Capabilities](https://community.homey.app/t/share-your-device-advanced-virtual-devices-from-device-capabilities/68676)

Links are to be found in post #1

---

<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 23, 2023, 11:38am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1270 "2023-05-23T11:38:26Z")

</div>

@Peter_Kawa and others,

**I just added another flowcard:**  
`When [[device]].[[capability]] is [[condition]] [[value]] for [[time]] [[unit]], execute [[trigger]]`.

This card will execute when a certain capability from a device has been a certain value for a specific period.

For instance:

- When a (Chronograph) timer has been started for 10 seconds, this flowcard will be executed once.  
Once meaning: every time the condition is wrong and then correct, it will be triggered once.  

- When the next Timer duration is less than 600, every 10 seconds (from the moment the value first met the condition) the flowcard will be triggered.  

Ofc you can use this for other things thatn timers 😉  
It was just handy to test with.

This flowcard handles app restarts.  
Only thing it cannot know is if, during the app restart, a condition of device.capability is turned wrong and than correct again during the time the DC App is down.

**It’s in test now:**

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

---

<div class="post-metadata">

**Author:** ![JB2K](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jb2k/32/134070_2.png) [@JB2K](https://community.homey.app/u/JB2K)\
**Post date:** [May 23, 2023, 11:50am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1271 "2023-05-23T11:50:23Z")

</div>

Wow this is strong! That replaces allot of flows!

---

<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:** [May 23, 2023, 12:56pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1272 "2023-05-23T12:56:42Z")

</div>

@JB2K , can you share some more examples please ?

---

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

</div>

Well, here is someone (in dutch) who wanted a trigger for when the Fridge is using less power than 20w for more than 3 hours:  
[Advanced flow actie op periode van tijd een bepaalde conditie - 🇳🇱 Nederlands (Dutch) / Vragen & hulp - Homey Community Forum](https://community.homey.app/t/advanced-flow-actie-op-periode-van-tijd-een-bepaalde-conditie/80981/5)

The flowcard for that would look like this:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/5/5523da9cbdda1d4dc2b04b8007f6ff2fde15a0f2.png)

---

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

</div>

Hmm, maybe I will improve my “it’s dark” flow / conditions 😉  
And probably some temperature based conditions, eg. for running flow when certain temperature is reached … or turning off LED on Homey, when temperature is longer time above certain temp…ok, got it 😉

Thank you @Arie_J_Godschalk , again reached another level for Homey !!!

---

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

</div>

> [@Sharkys](#):
>
> Thank you @Arie_J_Godschalk , again reached another level for Homey !!!

Thanks m8!

And, it took me way more hours than expected, especially to:

- Make sure it works after app restart.
- Works when updating flows, but should not reset timers.
- Share capability/devices listeners to preserve memory.  
(it’s shared with the listener flowcards also 🙂 )
- Clean up all listeners and timers when you change a flow, so, you will not need an App restart for clearing memory 🙂

I have tested it in many difference ways and hope it’s bug free.  
But since it was pretty complicated, i leave it in test for the moment and hope people will test it and report back to me if the find any issues.

---

<div class="post-metadata">

**Author:** ![Barend\_de\_Lange](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/barend_de_lange/32/88810_2.png) [@Barend\_de\_Lange](https://community.homey.app/u/Barend_de_Lange)\
**Post date:** [May 23, 2023, 8:37pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1276 "2023-05-23T20:37:08Z")

</div>

Thanks a lot! This will make life much more easy!

---

<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, 11:45am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1277 "2023-05-24T11:45:05Z")

</div>

Hi all,

I have a BLL expression question.

My window screens are representing there state in a fraction. 1(.0) is full up, 0 is down and 0.66 is 34% down.

Is it possible that on my ‘advance virtual device’ the value is not shown in a fraction but in a % and if possible inverted? So it is not showing 0.66 open but 34% down?

I’m trying a lot of but still does not understand the BLL expression. My first try was to make a % from a fraction. (Tried; Math.round($Value\*100) ) but not working.

Is there anybody who can help me how to formulate the BLL to format it as a % and if possible ‘inverted’ so is is showing how many % it is ‘down’ instead of ‘up’?

Many thanks for any help!

 ![IMG_2198](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/e/6e55b2c580c50e972cd9543acbae9eee076ba75f.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, 11:57am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1278 "2023-05-24T11:57:49Z")

</div>

@Ranney Show me a printscreen of the AVD settings with this field please?

---

<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, 11:59am UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1279 "2023-05-24T11:59:59Z")

</div>

> [@Ranney](#):
>
> (Tried; Math.round($Value\*100) ) but not working.

What does this mean: It’s not working? What is happening if you do it like that?

---

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

</div>

This is the adv device screen:

 ![IMG_2200](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/3/837bb0bea9ece7b1a301653c4ab26030739a5ffb.png)

The device is (still) showing the current position in a fraction:

 ![IMG_2198](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/e/6e55b2c580c50e972cd9543acbae9eee076ba75f.jpeg)

I’m trying to make it so that is is showing XX% down (so 0% is UP) and not 0.66 up. ☺

Many thanks for your help Arie! Will donate you a coffee/beer again today. 💪

---

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

</div>

Ah, well first thing first: Remove it as status indicator: That one is not ment for this, it’s a special field. Altho i guess it can be used for this, it has no advantages to use the Status indicator, only less options that you want! It’s better in this case to use a Number field, it will allow for more options, like Unit, min, max, step. (altho this is not needed ofc, just fyi).

But the main issue of the BLL expression not working: Your BLL expression is wrong, you have $value with a capitall V. Write it with with lowercase `v`.

And to invert it, just simple put it like this:  
`Math.round((1.0 - $value)*100);`

I made it 1.0 so it’s always calculated as a float number, just to be sure.

---

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

</div>

Ahh, that makes it possible to get it working in %, thanks!

The reason that I was using that ‘status indicator field’ is that I like the functionality to show that to the device icon:  
 ![Scherm­afbeelding 2023-05-24 om 15.04.17](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/5/e50386fb53bbc4679defb3cedc45a60f93a6da74.png)

I think that that is the only way to get it working to use that 'status indicator field? (So I cannot add a ‘%’ unit behind it?)

---

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

</div>

> [@Ranney](#):
>
> I think that that is the only way to get it working to use that 'status indicator field? (So I cannot add a ‘%’ unit behind it?)

Yeah, use the status indicator flowcard and set the text to %.  
That should work.  
However, im gonna check something about this, one sec.

---

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

</div>

Nice! Whatever I try, it is always showing ‘34 screen’. Not a new name or ‘%’. (Even not after removing the ‘status indicator’, saving and re-adding. Of course I do something wrong, but… Just have to find out what ☺

 ![IMG_2204](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/f/6f9a20d4c414524739119054547a31fdfa51379f.jpeg)  
 ![IMG_2203](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/4/d442bc961dbf965931efeed509ba3046f4cc176c.png)  
 ![IMG_2202](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/4/e45641d9d80307e3b0e755653873f0f8fae3debd.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, 1:31pm UTC](https://community.homey.app/t/app-pro-device-capabilities-enhance-the-capabilities-of-devices/43287/1286 "2023-05-24T13:31:37Z")

</div>

> [@Ranney](#):
>
> Nice! Whatever I try, it is always showing ‘34 screen’. Not a new name or ‘%’. (Even not after removing the ‘status indicator’, saving and re-adding. Of course I do something wrong, but… Just have to find out what ☺

Not sure why.  
But, install the current [test version](https://homey.app/a/nl.qluster-it.DeviceCapabilities/test/).  
I just had a clear moment 🙂 and have added a new ShowAs field: Sensor (Status):

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

Now you can select this one as Status Indicator in the Homey App.  
Just set the Units here, and use the normal Set Numberfield card (or Reflect) to set the number part of the indicator:

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

Have fun!

(Update coming for icon and small fixes, hang on).

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

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