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

You need:

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

So, a double ||

1 Like

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)

Which version are you on?

@Arie_J_Godschalk

That seems to do the trick, many thanks.

1 Like

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

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?

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.

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
…
image

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

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.

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

1 Like

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.

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

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

{[Math.round(Variable2)]}
image

{[date(“dd-MM”)]}
image

2 Likes

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:

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

Can someone advise me how to realize this?

@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

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).

Magic! :+1:

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.

1 Like

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? :slight_smile:

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

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

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