# \[APP\]\[Pro\] Advanced Virtual Device (Device Capabilities App) with Unique Text Status Indicator

**URL:** <https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198>\
**Category:** Apps\
**Tags:** app, tools, virtual-device, device-capabilities, avd\
**Created:** [August 30, 2022, 7:24pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198 "2022-08-30T19:24:40Z")\
**Posts on this page:** 20\
**Page:** 22

<div class="post-metadata">

**Author:** ![Willem59](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/willem59/32/16860_2.png) [@Willem59](https://community.homey.app/u/Willem59)\
**Post date:** [August 10, 2023, 4:56pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/428 "2023-08-10T16:56:42Z")

</div>

Dear Arie (or reader) maybe you can help me a bit. I try to set up a AVD with a picker list. (I did a request for a specific list). In my test ADV I would like to have the picked value in the status indicator field of the tile. But, in order to do that, i apparantly need a BLL expression to format the field for text (if I understand correctly). Here a screenshot of the settings of the Status Indicator Veld so far… Its a trial ADV called “ADV testritje” and I use a provided picker list (Automatisch, Aan, Uit)

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/1/81a88fee041340d3e9917edb60640ea46249fac8.png)  
I am a total nitwit in programming-language and I have no clue how to get a standard BLL expressie.  
I did instaal thet BLL app, but how to get to the library riddles me. Is there dummies way to help me?

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [August 11, 2023, 9:06am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/429 "2023-08-11T09:06:19Z")

</div>

Hello,  
I’m trying to make a virtual device for use with my AC.  
What I want to do is have a list with options for to select a time for the duration the AC needs to stay on. So it may look like:  
-15 min  
-30 min  
-45 min  
-60 min  
-90 min  
-120 min

Is this possible to do with this app?

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:** [August 11, 2023, 11:20am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/430 "2023-08-11T11:20:26Z")

</div>

Hi Tim,

I think you have to request a custom picker, be patient though 😉

> [@\[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/2):
>
> How to request a custom picker? Goto the topic for it: [Request custom picker for Advanced Virtual Devices from the Device Capabilities App - Homey Community Forum](https://community.homey.app/t/request-custom-picker-for-advanced-virtual-devices-from-the-device-capabilities-app/79440/3)

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [August 11, 2023, 1:10pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/431 "2023-08-11T13:10:36Z")

</div>

Thanks, I think I will implement it with a slider.

Other question, I want to display the remaining time on the Chronograph timer as status indicator.  
I tried this but this will display it as seconds.  
 ![Screenshot 2023-08-11 at 15.08.25](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/3/d3643b077499193a96150f099f513009e62d5fb3.png)  
How can I convert this to a minute:second format?

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:** [August 11, 2023, 11:07pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/432 "2023-08-11T23:07:21Z")

</div>

Entering this BLL epression should do the trick, Tim:

> [@Arie\_J\_Godschalk](#):
>
> `time('DD:hh:mm', $value)`

---

<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:** [August 12, 2023, 7:29am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/433 "2023-08-12T07:29:42Z")

</div>

> [@Peter\_Kawa](#):
>
> be patient though

Sorry 😉

One more week of holidays, than it’s back to normal programmed schedule 😛

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [August 12, 2023, 8:34am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/434 "2023-08-12T08:34:15Z")

</div>

Thank you for the reply. But if I enter this the counter stays on the same value as with seconds and freezes.

 ![IMG_3530](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/7/f76f11b988d598ce530c4f30fefedc8a6e2d5886.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/0/d0ffa060fb455c8deee78fdc93278f1a77351635.jpeg)

---

<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:** [August 12, 2023, 12:21pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/435 "2023-08-12T12:21:59Z")

</div>

Yea, not sure, but try pause / resume timer (from chronograph settings screen)  
or restart DC app maybe.  
Oh, if you timer doesn’t exceed 24hrs, you can leave out the `DD:` part

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [August 12, 2023, 12:55pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/436 "2023-08-12T12:55:51Z")

</div>

Tried that already but with no luck. Sometimes instead of freezing it will count something like this:  
123718 \> 123504 \> 122340 etc. completely random.

---

<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:** [August 13, 2023, 2:34pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/437 "2023-08-13T14:34:22Z")

</div>

The number field is for numbers, you cannot place text in it like this.  
There might be another way (use the unit bll expression on Number fields), but you will “crash” you homey mobile app, becuase you will contantly update the Unit field of a numbers field, and that is bery heavy on the homey mobile app.

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [August 13, 2023, 6:04pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/438 "2023-08-13T18:04:04Z")

</div>

But it is a number right?  
I thought maybe I can use math.divide($value,60) to display it as minutes but it still doesn’t work ☹

---

<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:** [August 14, 2023, 7:17am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/439 "2023-08-14T07:17:38Z")

</div>

Tey capital m for Math.divide?  
Or just $value/60  
That should work.

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [August 14, 2023, 7:50am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/440 "2023-08-14T07:50:50Z")

</div>

Hi Arie, Thanks for the reply!  
This kinda works, now for 900 seconds (15 minutes) it displays 14991 \>14974 etc  
now I need to round it somehow. I tried Math.ceil($value/60) but this doesn’t do the job.

---

<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:** [August 14, 2023, 7:53am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/441 "2023-08-14T07:53:05Z")

</div>

Math.round perhaps?  
The math object is basic JavaScript Math object.

---

<div class="post-metadata">

**Author:** ![timvdhoorn](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/timvdhoorn/32/55746_2.png) [@timvdhoorn](https://community.homey.app/u/timvdhoorn)\
**Post date:** [August 14, 2023, 8:05am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/442 "2023-08-14T08:05:29Z")

</div>

I tried this: Math.round((Number($value) + 30) / 60)  
But it looks like it doesn’t do anything with this

Edit: after some looking it looks like it is using Ms.  
With this it works: Math.round((Number($value) / 1000 + 30) / 60)

Thanks for the help

---

<div class="post-metadata">

**Author:** ![RogerSt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogerst/32/12432_2.png) [@RogerSt](https://community.homey.app/u/RogerSt)\
**Post date:** [August 14, 2023, 8:02pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/443 "2023-08-14T20:02:44Z")

</div>

Hmmm. It has been a while but I think I am finally ready for adding lots of DC devices to my new HP23, so I can decommission the HP19.

When creating a new empty device, and add a list picker only, it does not create logic variables, despite these settings:  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/8/88df04af458e7f3364e7738fd7124081adad4438.png)

Any clues? I spent at least 45 mins recreating and trying different options, but when using in advanced flow, a “WHEN” card, looking for the logic variable value of this list, it is not appearing. Not when initialised, not after changing the value set, not after reboot. Hidden fields on/off does not help.

I am on DC 2.14.8 / tested on HP23 - FW 10.0.1 and 10.0.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:** [August 15, 2023, 3:34pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/444 "2023-08-15T15:34:40Z")

</div>

Please create a ticket? Ill have a look.

---

<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:** [August 15, 2023, 7:44pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/445 "2023-08-15T19:44:28Z")

</div>

I really like this app.

> **[Insights Grafieken](https://homey.app/nl-nl/app/nl.mennovanhout.insights-graphs/Insights-Grafieken/)**
>
> Genereer grafieken/afbeeldingen van je favoriete sensoren en apparaten

Is it possible to show this picture inside a device.  
Like to see my solarpower statistics

---

<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:** [August 15, 2023, 10:51pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/446 "2023-08-15T22:51:12Z")

</div>

You can start with this:  
Pictures on Homey can be found here:[https://tools.developer.homey.app/tools/images](https://tools.developer.homey.app/tools/images)  
Overhere, it’s looks like this:

> ![Screenshot_20230816-004213_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/6/867416847f369b2b7c66036f883f83cf22a724f5.jpeg)

When you open the picture in a new tab,

> ![Screenshot_20230816-004707_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/1/f122ef2b3ff50df821e7c55d38970c215cf8a8ac.jpeg)

You can copy it’s URL, which you can use in a virtual camera:

> ![Screenshot_20230816-004946_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/b/1bd2e4c81ff87709a81723bcbe01b84e3e9fcbe7.jpeg)

Result

> ![Screenshot_20230816-005005_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/b/db4afc384ee3d53767fe6db98dc24ddfc6a0d88d.jpeg)

---

<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:** [August 16, 2023, 8:01am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/447 "2023-08-16T08:01:43Z")

</div>

I managed to display the image in the device.  
However, the Insight App generates a new url each time.

Would be better if I could use the image tag. This is because it adapts automatically.

[Previous page](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198.md?page=21)

[Next page](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198.md?page=23)
