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

<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 14, 2023, 12:23pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/488 "2023-09-14T12:23:48Z")

</div>

> [@Rrrr](#):
>
> {{$values[0] | $values[1]==‘on’}} same.

You need:

```auto
$values[0] || $values[1]=='enumvalue'

```

So, a double ||

---

<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:** [September 18, 2023, 8:09pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/489 "2023-09-18T20:09:40Z")

</div>

Has something changed? in the past I recall being able to update existing virtual devices, now when i go into an existing device i need to re-create all the fields again (and the icons are also not available)

---

<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 18, 2023, 9:22pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/490 "2023-09-18T21:22:02Z")

</div>

Which version are you on?

---

<div class="post-metadata">

**Author:** ![Martin072](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin072/32/70637_2.png) [@Martin072](https://community.homey.app/u/Martin072)\
**Post date:** [September 19, 2023, 11:53am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/491 "2023-09-19T11:53:53Z")

</div>

@Arie_J_Godschalk

That seems to do the trick, many thanks.

---

<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:** [September 19, 2023, 6:14pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/492 "2023-09-19T18:14:41Z")

</div>

2.14.9

I restarted the homey app a few times but that did not help, then i figured to restart the app on homey which seemed to have sorted the problem. i’ll let you know if it happens again

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [September 20, 2023, 1:57pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/493 "2023-09-20T13:57:41Z")

</div>

That is a very nice new feature that should receive more attention!  
Works great!  
How to ensure the status will also show in the web app?

---

<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:30pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/494 "2023-09-20T14:30:53Z")

</div>

> [@Rrrr](#):
>
> How to ensure the status will also show in the web app?

Yeah i see that that is not working.

@Emile might this be a bug (or not finished yet)?  
When you select a string-capability as Status Indicator, it **does show in the Homey App**.  
However, **it is not shown in the Web App** when you have the screen set to “small” (or large also) tiles.

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [September 22, 2023, 1:51pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/495 "2023-09-22T13:51:52Z")

</div>

Here something additional seems not working:

1. When I set Button 9 to Show As On/Off, then I would expect the Icon (in app and web) to be bright when the reflected value is true and dark when the reflected value is false.  
This does not work.
2. I cannot set a flow to turn on the Icon either.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/b/db723c165113f7f46528542ddd74b487f5507568.png)  
…  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/0/00670a8b82b5c56aa09f458dd44fa654ddc0d882.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:** [September 22, 2023, 2:03pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/496 "2023-09-22T14:03:27Z")

</div>

@Rrrr No, button 1 will be the main button, always.  
What do you have now as button 1?

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [September 22, 2023, 2:16pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/497 "2023-09-22T14:16:40Z")

</div>

One of the eight properties (that follow in button 2-8) that’s reflected in button 9. I’m usually not successful replacing one field with another. It is a lot of work and I’d hate to try.

---

<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 22, 2023, 2:28pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/498 "2023-09-22T14:28:43Z")

</div>

> [@Rrrr](#):
>
> It is a lot of work and I’d hate to try.

Yeah, i have it on my list to build an option for this.  
But right now, button1 is always the main app button.  
Sorry 😉

---

<div class="post-metadata">

**Author:** ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)\
**Post date:** [October 1, 2023, 1:52pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/499 "2023-10-01T13:52:20Z")

</div>

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

Just to share how to use AVDs to shorten your flows.

1. Use BLL expressions in combination with Devices/Properties in the AVD.  
Like [here](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/488).

2. BLL expressions in the THEN Set Text card of an AVD.  
Like below:

{[time(‘H:mm:ss’,1000\*Variable1)]}

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

{[Math.round(Variable2)]}  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/d/bdcea42b2774170d601a1c2e23a1cfea4f63a369.png)

{[date(“dd-MM”)]}  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/d/bd239cb46da5587d2f268bba718d922c594494f6.png)

---

<div class="post-metadata">

**Author:** ![Arnold\_vd\_Linden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnold_vd_linden/32/19336_2.png) [@Arnold\_vd\_Linden](https://community.homey.app/u/Arnold_vd_Linden)\
**Post date:** [October 14, 2023, 2:18pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/500 "2023-10-14T14:18:24Z")

</div>

Hello,  
I have created a AVD to show me the time of sunset and sunrise by using 2 text fields.  
This works and it is updating with this flow:

 ![Scherm­afbeelding 2023-10-14 om 16.10.10](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/c/2c2aca5530f1d4adbab9ab3eb02970938699957b.png)

No I have troubles finding out how I can change the time field on the device at a certain time.  
Like: Change the status indicator on 12 AM to textfield 1 that provides the sunrise time. And at 12 PM change it to textfield 2 that provides the sunset time.

![IMG_2277](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/4/f4ed757ab85f55627836052fcfa984ee34767ba2.jpeg)

Can someone advise me how to realize this?

---

<div class="post-metadata">

**Author:** ![Martin072](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin072/32/70637_2.png) [@Martin072](https://community.homey.app/u/Martin072)\
**Post date:** [October 14, 2023, 2:32pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/501 "2023-10-14T14:32:26Z")

</div>

@Arie_J_Godschalk

Is it possible for an AVD to have the settings “Energy usage when Off” and “Energy usage when On”?  
At the moment, when I configure the AVD as Device Class ‘light’ or ‘Wallplug’ with just an onoff button, I only see the “Constant energy usage”, see below

 ![Screenshot 2023-10-14 at 16.28.53](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/5/e510c482a3673c6ea27043d863f6d4bab4013a10.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:** [October 14, 2023, 5:03pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/502 "2023-10-14T17:03:00Z")

</div>

Try restarting the app once?

(There is a bug in Homey that the default wnergy options are only reloaded when a device reload. Thus, you need to reatart the app).

---

<div class="post-metadata">

**Author:** ![Martin072](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martin072/32/70637_2.png) [@Martin072](https://community.homey.app/u/Martin072)\
**Post date:** [October 14, 2023, 5:21pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/503 "2023-10-14T17:21:46Z")

</div>

Magic! 👍

---

<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:** [October 15, 2023, 6:24am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/504 "2023-10-15T06:24:51Z")

</div>

You cannot dynamically change which field is the status indicator.  
This can only be set through the Homey Mobile App.

You could create an extra textfield, set that as status indicator, and change it value when you want the change what is displayed.

---

<div class="post-metadata">

**Author:** ![iBosvelt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ibosvelt/32/47824_2.png) [@iBosvelt](https://community.homey.app/u/iBosvelt)\
**Post date:** [October 15, 2023, 11:12am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/505 "2023-10-15T11:12:25Z")

</div>

Hi,

Is it also possible to obtain the insights values from a BLL variable? With this app it is already possible to get it from a device. Or am I stupid and can it already be done with this app? 🙂

So I receive the number of milliseconds that a variable has changed.

---

<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:** [October 15, 2023, 11:54am UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/506 "2023-10-15T11:54:48Z")

</div>

@iBosvelt I think BLL itself has a flowcard for that.

---

<div class="post-metadata">

**Author:** ![iBosvelt](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ibosvelt/32/47824_2.png) [@iBosvelt](https://community.homey.app/u/iBosvelt)\
**Post date:** [October 15, 2023, 8:31pm UTC](https://community.homey.app/t/app-pro-advanced-virtual-device-device-capabilities-app-with-unique-text-status-indicator/68198/507 "2023-10-15T20:31:29Z")

</div>

Can you point me in the right direction? i’ve looked at the flowcards, but can’t find any which can do that…

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

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