Homey Community Forum

Virtual Devices

@Arie_Laxed published a new version (as beta) where the ‘alarm_motion’ and ‘alarm_contact’ capabilities can now be selected when the ‘sensor’ class is choosen. This means that a Virtual Device that has any of these capabilities will now show an indicator in the Homey app when the capability is activated.

And good news for the German Homey users, @PhilS translated the app to German.

3 Likes

Hello… I’ve a Sonoff with DHT22 Sensor for measure temperature and umidity in the external home.
It send the value in a raspberry broker mqtt and the value every 30 second and the value in the broker is the same:

21:34:43 MQT: tele/sonoff/SENSOR = {“Time”:“2019-09-09T21:34:43”,“SI7021”:{“Temperature”:25.5,“Humidity”:40.3},“TempUnit”:“C”}

I’ve create a virtual device for Temp and Humidity. I’ve install MQTT Client in Homey and i want to read the mqtt value of the sensor and set it in the VD.

I’ve crate a flow with WHEN “message received from topic tele/sonoff/SENSOR” THAN “set a virtual sensor value” Temperature Temperature.

But it doesn’t work for me…

Can you help me, please?


Thanks

You must use:

set a virtual sensor value:
measure_temperature (temperatura) (tag)

@ Arie_Laxed

Hello!

I need some help, i create a VD to control 2 xiaomi aqara bulbs (dimmable and 2700-6500k). I created it with all light capabilities.

But when creating flows, the temperature action card does not appear, so I can only change the dim but not the temperature. (in when column)

How can i solve this? Any way to add this action card?

Captura

thanks!

Sorry, I think I don’t understand. Don’t work.

I’ve set this:

And this is the log of mqtt client:

Thank you so mutch

Thank you Edoardo, before the previously topic i’ve Test this configuration, but don’t work for me.

This is my setting, identically your.
In the second setting, i’ve use The tag “temperatura” in the DHT22 line.

I don’t understand why don’t work for me.

Thanks for your help.

What happens if you test the flow?

Edit: You must enter in the virtual thermostat to see the value.

Edit 2: your device DHT22 is not reporting temperature values, is your virtual device. You must select a real device reporting temperature (your sonoff device tag).

Edit 3: I read you use a mqqt topic. Try using better logic:

Flow 1

when: receive topic triggers >>Then: set number variable (create a variable for this value)

Flow 2

When: a variable changed >> Then: set a virtual sensor value, measure_temperature and the tag of better logic you set before.

1 Like

Maybe a stupid question, but what is the difference between the normal cards and the ‘modus’ cards? This is not a multi-modus device.

50

Using this app, I’ve succesfully made virtual sensors displaying (daily) electricity consumption on HomeyDash, by extracting values from my DSMR-reader (Pi connected to smart meter) using http GET requests.

However, I’m stuck trying to display gas usage and/or daily costs as there seem to be no virtual sensor capabilities for this? There is a Homey capability “meter_gas”, could this be added to virtual sensors? I don’t see a capability for displaying costs, but maybe there is some work around possible?

Hi Arjan.
Like the app but find setting values for virtual sensors in the flows quite illogical.

While setting the value for a virtual sensor I am asked for the name of the “Sensor”. There is no guide in the app informing me that this field is to be in text and it should correspond to the capability choosen when creating the virtual sensor. There is also a tag icon to the right making this even more confusing.

Would be great if you could add info below the field explaining what to enter.

// Johan

2 Likes

Is there anyway to change wind unit to m/s instead of km/h ?

I don’t know if it’s possible, but I guess it’s not possible.
But, why you want use m/s instead of km/h?
km/h is more accurate (Factor 3,6)

I got value i m/s It’s just the Text km/h i want to change to m/s
Not so often anyone talks about wind in km/h…

Hi all! New to the forum and just starting with Homey.

Can some-one explain how to trigger a flow when pressing a virtual button? I have searched the forum and the documentation, however cannot find a solution for that?

1 Like

Using the “Virtuele Apparaten” experiment;
image

Using the “Virtual Devices” app:
image

Thanks! That works :slight_smile:

Hi, Yesterday I posted a request regarding Alexa integration. Since Nest is not supporting the external API anymore I can not controll my NEST via Homey anymore. Now I also have alexa and figured a way out that needs some change on VD. Read hear if you are interested or can help: Alexa Integration (v2)
If anyone has another suggestion (via ESP?) I’m also happy.

Hi, just had the same issue, solved quite easy.
You should do the next steps: lets say you have lamp 1 and lamp 2 connected to left and right button. Paired aqara double switch in athom device list name Lamp 1. Then create a virtual device with name Lamp 2 and create 4 flows: 1 when Lamp 1 (right switch) turns ON, then Lamp 2 ( virtual device) Turns ON. 2. The same flow as first one, only change to OFF. 3. When Lamp 2 turns ON, then Lamp 1 ( right swith) turns ON. 4. The same flow as previuos only with OFF. That is it, you will have two separate devices/buttons in menu list and these flows will let you see actual status and extension of the lights (turned on or off)

Hi! Could you take a look at this thread:

The only thing I do is make the virtual thermostat update a variable, with the built-in 0.5 increments.
There seems like the app should have some kind of rounding enabled before setting the value, as I suddenly got a bunch of decimals when setting the temperature.