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

**URL:** <https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723>\
**Category:** Apps\
**Tags:** app, virtual-device, homey-pro\
**Created:** [September 15, 2018, 3:49pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723 "2018-09-15T15:49:09Z")\
**Posts on this page:** 20\
**Page:** 8

<div class="post-metadata">

**Author:** ![Cory](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cory/32/12997_2.png) [@Cory](https://community.homey.app/u/Cory)\
**Post date:** [March 11, 2020, 9:00pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/165 "2020-03-11T21:00:47Z")

</div>

Is it possible to add the ability for a virtual thermostat to convey humidity information?

My setup: I have an Aqara temperature/humidity/pressure sensor and am using the Virtual Devices app to make a virtual thermostat so I can ask about the temperature via Google Home. I’ve gotten that working, but it’s limited to temperature only.

I have a few Tado thermostat knobs that also measure humidity, and I can ask Google about those, so I figured it might be possible for a virtual thermostat to do the same.

---

<div class="post-metadata">

**Author:** ![Eduardo\_Rodriguez](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eduardo_rodriguez/32/1902_2.png) [@Eduardo\_Rodriguez](https://community.homey.app/u/Eduardo_Rodriguez)\
**Post date:** [March 12, 2020, 11:44am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/166 "2020-03-12T11:44:00Z")

</div>

You can edit the capabilities of thermostat in drivers\virtual\_switch\pair\capabilities.js

“thermostat”: {  
“capabilities”: [  
“target\_temperature”,  
“thermostat\_mode”,  
“measure\_temperature”

add measure\_humidity and do a CLI of the app.

Edit:i try this and works perfect

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [March 12, 2020, 1:24pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/167 "2020-03-12T13:24:40Z")

</div>

> [@OH2TH](#):
>
> I’m using the ”kettle” virtual device to have on/off, target temperature, measured temperature and power variables for use to represent our sauna.
> 
> - on/off to show the power state of the sauna stove
> - measure\_power is set to 6800W if power state is on
> - measure\_temperature is set by a http request get script to the current temperature in the sauna

@OH2TH

Could you please explain how you have achieved this…

Thanks!

---

<div class="post-metadata">

**Author:** ![OH2TH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/oh2th/32/111414_2.png) [@OH2TH](https://community.homey.app/u/OH2TH)\
**Post date:** [March 13, 2020, 5:18am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/168 "2020-03-13T05:18:19Z")

</div>

Hi!  
I use Ruuvi Tags to measure and collect temperature, humidity and atmospheric pressure and I have one in our sauna. Ruuvi collector (java program from Ruuvi) gathers the data and insert them to a InfluxDB and then Grafana is used for presentation of the data.

In Homey I read the last temperature reading every minute from that database with a HTTP Request flow card:  
`/query?pretty=true&u=user&p=pass&db=ruuvi&q=SELECT+temperature+FROM+ruuvi_measurements+WHERE+%22name%22+%3D+%27sauna%27+GROUP+BY+%2A+ORDER+BY+DESC+LIMIT+1`

The value is placed in VD “Sauna” Set a virtual sensor action card  
`measure_temperature sauna.temperature`

Currently I set on/off state based on `sauna.temperature`:  
turn on - if `sauna.temperature` above 25C and `sauna.ready` = false  
turn off - if `sauna.temperature` below 55C and `sauna.ready` = true

`sauna.ready` is set true if `sauna.temperature` is above 60C.

This on/off detection will be replace with the sauna stoves 230Vac output (normally used to drive relay to turn off parts of house heating and/or turn on lights in the sauna). Needs some planning how to set stove status from that. Probably use on Aqara double relay/switch to detect power state. Would be more exact than based on measurements.

Lastly Homey follows the heating of sauna and displays a message when target temperature has been received. The target of 60C is not possible to set as a VD “kettle” or any other type’s target temperature since the MAX value is fixed to 50C. So now there is a “Logic” variable that has the target temperature.

If it only was possible to configure MIN and MAX from device configuration. Also I’d like to see the current temperature in the middle and target temperature smaller below in the status display of a VD device. But that is just cosmetics.

Regards,  
Tapio

---

<div class="post-metadata">

**Author:** ![Eternity](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/eternity/32/102113_2.png) [@Eternity](https://community.homey.app/u/Eternity)\
**Post date:** [March 13, 2020, 7:52am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/169 "2020-03-13T07:52:20Z")

</div>

Thank you for the extensive explanation @OH2TH !

---

<div class="post-metadata">

**Author:** ![Dag-Inge](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dag-inge/32/23072_2.png) [@Dag-Inge](https://community.homey.app/u/Dag-Inge)\
**Post date:** [April 2, 2020, 5:46pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/171 "2020-04-02T17:46:47Z")

</div>

I’m also wondering about this…

---

<div class="post-metadata">

**Author:** ![Shiki](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Shiki](https://community.homey.app/u/Shiki)\
**Post date:** [April 27, 2020, 6:12am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/172 "2020-04-27T06:12:28Z")

</div>

Hi Guys,  
For VD, is there any option to lockdown the switch / button, prevent user flip on/off? I just need flow to control it ON/OFF so the VD icon can just change to reflect the status ?

probably i missed any option, anyone can advice ?

---

<div class="post-metadata">

**Author:** ![Shiki](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Shiki](https://community.homey.app/u/Shiki)\
**Post date:** [April 27, 2020, 7:33am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/175 "2020-04-27T07:33:21Z")

</div>

Yes, currently using flow to turn ON/OFF. I’m thinking if i missed off any function.

My use case is having a slow cooker at kitchen, using a temperature sensor attached to cooker chassis, flow turn ON the VD button, when sense temp higher than preset, and flow will OFF the VD button, when chassis temperature drop to preset temperature.

I’m looking VD as indicator (bulb) for cooker to show status, but also locking it from triggering by touch button.

---

<div class="post-metadata">

**Author:** ![Shiki](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Shiki](https://community.homey.app/u/Shiki)\
**Post date:** [April 27, 2020, 7:34am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/176 "2020-04-27T07:34:51Z")

</div>

haha…this will make the flow in loops

---

<div class="post-metadata">

**Author:** ![Osorkon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/osorkon/32/43026_2.png) [@Osorkon](https://community.homey.app/u/Osorkon)\
**Post date:** [April 27, 2020, 7:48am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/177 "2020-04-27T07:48:39Z")

</div>

If you are only using the VD to show a status. And you don’t have the necessity to switch the VD manually only through flows. So, why you don’t use a Virtual Sensor instead a VD switch?

---

<div class="post-metadata">

**Author:** ![Bassie](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bassie/32/10496_2.png) [@Bassie](https://community.homey.app/u/Bassie)\
**Post date:** [April 27, 2020, 7:57am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/178 "2020-04-27T07:57:19Z")

</div>

Yes I know, 😉 I figured as soon as I posted. I deleted my post directly.  
But it takes some time.

---

<div class="post-metadata">

**Author:** ![Shiki](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Shiki](https://community.homey.app/u/Shiki)\
**Post date:** [April 27, 2020, 12:19pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/179 "2020-04-27T12:19:05Z")

</div>

yes, this an option too, if the sensor have the option to turn the icon to illuminate or grey will be best.

---

<div class="post-metadata">

**Author:** ![Osorkon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/osorkon/32/43026_2.png) [@Osorkon](https://community.homey.app/u/Osorkon)\
**Post date:** [April 27, 2020, 12:48pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/180 "2020-04-27T12:48:38Z")

</div>

An example of a virtual contact sensor.

Contact Alarm = true

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/3/5387b12801531eed62ee28963f0ed2601eacf53d.jpeg)

Contact Alarm = false

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/a/4a80b6bc186bec67a959accd723935306bc3f4df.jpeg)

---

<div class="post-metadata">

**Author:** ![Shiki](https://avatars.discourse-cdn.com/v4/letter/s/5fc32e/32.png) [@Shiki](https://community.homey.app/u/Shiki)\
**Post date:** [April 27, 2020, 2:35pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/181 "2020-04-27T14:35:44Z")

</div>

Thank you! That’s a very innovative to solution to use the door open/close alarm aka contact alarm 😄 with a slow cooker svg will it perfect 😀

---

<div class="post-metadata">

**Author:** ![bdnl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bdnl/32/27614_2.png) [@bdnl](https://community.homey.app/u/bdnl)\
**Post date:** [June 4, 2020, 11:36pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/182 "2020-06-04T23:36:08Z")

</div>

Is one or the other better in some way? Experiment vs Virtual Devices app?

---

<div class="post-metadata">

**Author:** ![RonnyW](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronnyw/32/10879_2.png) [@RonnyW](https://community.homey.app/u/RonnyW)\
**Post date:** [July 3, 2020, 1:59pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/184 "2020-07-03T13:59:08Z")

</div>

Hello Arie,

ist it possible to define a VD with a individual set of attributes?  
I would like to get VD for my water softening system. I want to get some sensor attributes like water amount (capacity), salt usage, water usage. The values should come from MQTT broker.

Now I can only add a sensor device with one of each types.  
It would be nice to define individual attributes (with name) and react in flows on changes (Trigger for this attribute name).  
Or is it restricted by Athom, that a sensor can have only one attribut of a type?

Thanks  
Ronny

---

<div class="post-metadata">

**Author:** ![Pieterv123](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/pieterv123/32/13353_2.png) [@Pieterv123](https://community.homey.app/u/Pieterv123)\
**Post date:** [July 9, 2020, 2:26pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/185 "2020-07-09T14:26:34Z")

</div>

Hi,

Could you make a virtual device: garage door.

So homeykit recognises it as a garage door and not screens?

So carplay will automatically display a garage door when coming home

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [July 9, 2020, 5:10pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/186 "2020-07-09T17:10:49Z")

</div>

> [@Pieterv123](#):
>
> Could you make a virtual device: garage door.

No, Homey doesn’t have a device class for that.

---

<div class="post-metadata">

**Author:** ![Philip\_Montgomery](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/philip_montgomery/32/12434_2.png) [@Philip\_Montgomery](https://community.homey.app/u/Philip_Montgomery)\
**Post date:** [July 9, 2020, 10:05pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/187 "2020-07-09T22:05:36Z")

</div>

Curious, what water softening system so you have? I’ve been looking for a couple of years and can’t makes up my mind. They all seem expensive for such a simple device, and seen to require frequent maintenance

---

<div class="post-metadata">

**Author:** ![Arie\_Laxed](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arie_laxed/32/913_2.png) [@Arie\_Laxed](https://community.homey.app/u/Arie_Laxed)\
**Post date:** [July 10, 2020, 8:30am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/188 "2020-07-10T08:30:03Z")

</div>

Hi Ronny,

Technically it should be possible, but it would require a big change. If I’ll do that, It’ll probably be a new app (Custom Devices or so).  
But lately I’m more occupied with other projects (outside Homey), so it’s not likely I will produce such an app anytime soon. If someone else wants to create such an app, you have my blessings. Feel free to rip parts of the VD app if needed.

With kind regards,  
Arjan

[Previous page](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723.md?page=7)

[Next page](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723.md?page=9)
