[APP][Pro] Virtual Devices - Virtual Devices to simulate 1 or more real devices

Ah, sharp! That would be indeed the “additional added trailing space” bug in variables, in the mobile app flow editor…

Check, in the web app flow editor this works without errors:

Only after saving the flow in the web app, it works in the mobile app:

.
I just created a ticket @ Athom for this bug.

“alarm_motion false” is working for me, thank you!

2 Likes

@Arie_J_Godschalk

Any luck to request an attribute on the sensor device that says “amount” or something? I want to have a virtual device to display a cost since midnight, e.g. 5 without any unit sign on the icon, or even better to be able to choose currency from a lot of countries

Yeah, look at device capabilities app.
The advanced virtual devices.
There are multiple topics for it.

I need a tip, I do have an external application (screenshot below) with a selector of 4 options:

I can sent a HTTP post to change the selection, that’s not the issue. The problem is, I would like to have a virtual device with 4 options where just one can be selected. Does anybody has an idea how I can solve this with homey?

Yeah, but you can better use AVD’s from the Device Capabilities App.

You can solve this in a couple of ways directly right now (Buttons that you enable disable etc).
But the most neat way would be to use a “picker”:

I can create a custom list for you in the DC App:

What i would need from you is a filled JSON with all it’s values, in NL, EN en DU, like this:

{
      "title": {
        "en": "Schedule, Until, Manual, Off Until, Off"
      },
      "values": [
        {
          "id": "smartschedule",
          "title": {
            "en": "Follow Smart Schedule",
            "nl": "Volg slim schema",
            "de": "Dem intelligenten Zeitplan folgen"
          }
        },
        {
          "id": "untilnextblock",
          "title": {
            "en": "Until next time block",
            "nl": "Tot aan volgend tijdsblok",
            "de": "Bis zum nächsten Zeitblock"
          }
        },
        {
          "id": "manual",
          "title": {
            "en": "Manual",
            "nl": "Handmatig",
            "de": "Manuell"
          }
        },
        {
          "id": "offuntilnextblock",
          "title": {
            "en": "Off until next time block",
            "nl": "Uit tot aan volgend tijdsblok",
            "de": "Aus bis zum nächsten Zeitblock"
          }
        },
        {
          "id": "off",
          "title": {
            "en": "Off",
            "nl": "Uit",
            "de": "Aus"
          }
        }
      ],
    }

If you send that to me, with the values etc. that you need, you will be able to select this list as a picker in a Advanced Virtual Device like the picture below.
Please note, the best way is if you give me also the ID’s for each values, the way the values really are (the ones you recieve through the Request). That way, setting them through a flow or using the value (when set through the Homey App) is much easier, you will not need to convert any values.

(This picker can be set through flowcards also ofc.)

1 Like

I am not sure if this is a thing that can be done, but I’ll ask it anyway.
We have an old not so smart sauna, but I do want to make it a bit smart. I installed a temperature sensor in it.

So, I have a flow that give me a push when the sauna temperature is a certain degrees higher than the room temperature, to see if it’s on or off.
I also have a push when the sauna reaches its temperature to use it.

For a better overview I would like to have a virtual device that I can turn on and off through that flow I mentioned. And I would like it to show the temperature as indicator on the tile.

Is such a thing possible?

@Renzo

Yeah, but i am not sure if you can with Virtual Devices (this app).

But you can with Advanced Virtual Device from Device Capabilities.

I am not sure of VD can have an onoff AND temperature propertie in one.
AVDs can, im sure, you can make it how you want youself.

Hey renzo, did you manage it with the AVDs?

I’ve played with it, yes. But I wasn’t able to show something on the tile of the device. I’ve tried it first with our cat. The cat door registers if he’s outside or inside. But to display that text (plus an added number (of times he went outside)) is quite difficult…

For the sauna it would almost be the same: with a temperature check the tile should be switched on or off and it has to display the temperature of the sensor.

On both I get a status page with that information, but I cannot display it on the tile as a status.

I am not sure what you mean by that?
Please take a look at this (importable) AVD Example:

It describes how you can set the Status Indicator of a device.
Please note to select the indicator through the Homey Mobile App → Device → Settings – Status Indicator.

Sorry for the choice of words. Being Dutch, typing in English with a Dutch Homey setup mixes things around! :wink:

But I see what I did wrong: I didn’t select the status indicator! Got it now.

I think there can be some improvement in the manual/instructions. I am not doing really well on examples, but just knowledge. Then I can make it my own. I’d really like to help with it if you want, I can imagine that this is a powerful app.

One question for now: how do I know what images are the pictograms? It just says device 1, device 2, …

Agreed, already have been working hard on the AVD creation screen to (first) imrpove that.
But you’re always welcome to offer idea’s on which texts should be placed where.

Goto the App Settings → Custom icons:
image

In English, the marked text says:
Double click on a name to give it a description, that will be visible when selecting icons.

If I may interfere :upside_down_face:
I think the confusion was because you did not mention you were talking about the mobile app tiles.
Because in that case, you indeed have to select the status indicator yourself afterwards, most of the time. Otherwise it stays blank. As you’ve discovered now :wink:

Or was it something else?

1 Like

When i use the card set modus on without any trigger then this is not working.

I would expect that the card only switches from OFF to ON status and further nothing.

But when when you use a flow trigger card: when (virtual device) is turned ON then this is also executed when you use the above flow card.

I think that should not happen when you use this card, only the state in Homey should change but it should not trigger any other flows/actions.

Please show the flowcards you mean?


So the first schreenshots set status without trigger and the second screenshot starts a flow when the status is turned ON, that last flow should not run when the first one is executed but it does.
All the flows with simular flow cards are started when the option is used to set without trigger.

Hey @B3rt ,

For the second screenshot, you will need another trigger/when card.
The Turned On/Off card is a default Homey card which i cannot control.
There is however another (custom) when card, which is onky triggered when wanted.

ok thx, i will look into that

1 Like

Dear Developer of Virtual Devices,

Maybe I was blind in the app or too lazy te read it all here But what I miss as Virtual Device is an electricity Meter (single & double meter/measurements), a gas meter in (cubik meters (=m³) a water meter(in liters or cubikmeters(=m³) (or gallons for Non-EU etc.)) and a distance HouseWarming(=stadsverwarming) (in GJ).

I was trying to measure my daily/weekly and monthly usage of electricity, Housewarming & Water and to save (and show) it in the home app/webinterface by the daily/weekly & mothly VD electricity/housewarming & water meter.
But could find for some of them the appropriate VD Device with its right measurement Unit (Kwh/GJ/l(=liters/cubik meters(=m³).

(to type m³ type “m” and then Hold the ALT KEY while typing 0179 and then release the ALT key to get “³” :wink: )

Could you please maybe help and think about it to add it ??

Thank You.