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

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 22, 2021, 1:19am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/376 "2021-03-22T01:19:24Z")

</div>

Yes, I did on purpose not suggest to set the “nothing” value to zero, b/c zero degrees is a realistic value in some cases.

I tested with Vthermo, but same results. You simply can enter numbers only, not a “false” character. And when entering a value out of range, it doesn’t update.  
Vthermo might be interesting to you, b/c you can set the range and steps _after_ installation, and the minimum step is 0.25

I also have little knowledge of homeyscript.

---

<div class="post-metadata">

**Author:** ![Martijn\_Hoogenbosch](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/martijn_hoogenbosch/32/10647_2.png) [@Martijn\_Hoogenbosch](https://community.homey.app/u/Martijn_Hoogenbosch)\
**Post date:** [March 22, 2021, 12:17pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/377 "2021-03-22T12:17:59Z")

</div>

Is it me or is the thermostat limited to 12 degrees? \<— n/m… you can set a minimum during device creation.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 22, 2021, 2:29pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/378 "2021-03-22T14:29:34Z")

</div>

Thanks 4 sharing.  
So the mobile flow editor is not equal to Homey Flow online? Interesting…

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 23, 2021, 12:50am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/379 "2021-03-23T00:50:39Z")

</div>

Hi Arjan, I filed a bug @ git.  
While adding a new VD, my Homey app (v6.4.0) crashes. It happens with both the experimental and the official VD app v0.9.5  
Existing VD’s work fine.  
Bought you a beer for the great app (what was about time 😉 )  
Peter

---

<div class="post-metadata">

**Author:** ![milkplus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/milkplus/32/35755_2.png) [@milkplus](https://community.homey.app/u/milkplus)\
**Post date:** [March 31, 2021, 2:26pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/380 "2021-03-31T14:26:11Z")

</div>

Am new to Homey and just figuring out how I can utilise this ingenious app with my existing flows. But I have just a quick question:

When setting a mode to ‘And’, the only option available is ‘Is turned on/off’, does this mean that Homey is waiting for the mode to be switched to an ‘on/off’ state, or will it check to see whether the mode is already in an ‘on/off’ state?

I’m hoping it’s latter because that would solve a lot of my problems… 🤞

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [March 31, 2021, 2:29pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/381 "2021-03-31T14:29:24Z")

</div>

It’s the latter, and easy to test in a flow  
Cheers

---

<div class="post-metadata">

**Author:** ![milkplus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/milkplus/32/35755_2.png) [@milkplus](https://community.homey.app/u/milkplus)\
**Post date:** [March 31, 2021, 2:31pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/382 "2021-03-31T14:31:17Z")

</div>

this is excellent news! thank you!

---

<div class="post-metadata">

**Author:** ![R5Turbo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/r5turbo/32/15151_2.png) [@R5Turbo](https://community.homey.app/u/R5Turbo)\
**Post date:** [April 4, 2021, 10:24pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/383 "2021-04-04T22:24:58Z")

</div>

I don’t know how to deal with my roller shutter from Elero which I have connect via a smart home hub from Mediola (v6 Mini). The Mediola Smart Home Hub supports http requests, so it’s possible to Move Up/Down and stop the roller. Additionally, I can see the following states of my roller:

- Top
- Bottom
- Move Up
- Move Down
- Inactive (somewhere between Top & Bottom)

I’ve included a virtual device roller.

Now, the issue is to reflect the correct state of the roller. I’m checking the states on a regular base. But eg. If the roller is in state “inactive” I don’t think it make sense to send a “stop” signal over http every time my interval is over, but to reflect the correct state in the virtual device I need to set it as soon as I’m reaching the check interval. So it’s somehow most of the time a usleless loop. As I’m having three rollers that would generate a bit of traffic for my Elero Shutters (continuously sending stops). I can do it like that, but you know, it’s not the ideal solution. Any better ideas how to deal with the states with the virtual device?

EDIT: Problem solved with “Better Logic”. It triggers only if a variable changes.

---

<div class="post-metadata">

**Author:** ![spajder\_ua](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spajder_ua/32/33983_2.png) [@spajder\_ua](https://community.homey.app/u/spajder_ua)\
**Post date:** [April 18, 2021, 8:08am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/384 "2021-04-18T08:08:50Z")

</div>

I cant add the temperature to a VD Thermostat with the measure\_temperature from a aqara temp sensor.

I get invalid\_capability when testing. The aqara sensor only has the measure\_temperature Capability.

When I try the same with with a Mill sensor that has target\_temperature capability, it works fine.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/6/667c0636e920c8c508fb1857a6845c1a36212a90.png)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/5/755354c0c4e080a0e5d3aef7ec4916d6653e4827.png)

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/9/8977119e7c861ebd6ce84c57decae1b7a82e99bb.png)

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/5/256cb9a3fa4be3694d63f4ac6e0888d1b4a11985.png)

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 18, 2021, 1:31pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/385 "2021-04-18T13:31:43Z")

</div>

You’ll have to round the temperature to .5  
(limitation of the virtual device).  
I have delayed the action card after the calculation card, to make sure the calc is done before the virtual sensor card reads the calculated value  
[https://homey.app/f/MMqbBz](https://homey.app/f/MMqbBz)

---

<div class="post-metadata">

**Author:** ![spajder\_ua](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spajder_ua/32/33983_2.png) [@spajder\_ua](https://community.homey.app/u/spajder_ua)\
**Post date:** [April 19, 2021, 10:38am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/386 "2021-04-19T10:38:56Z")

</div>

This will work on a with an aqara temp sensorn, but it will not display the temperature on the VD thermostat as if you use target\_temperature with a sensor that has that Capability , but you will see the temperature if you go in on the thermostat device.

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

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/8/783748e9c68ba35ac4c569280534ae1f7b6357be.png)

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

---

<div class="post-metadata">

**Author:** ![Joka](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Joka](https://community.homey.app/u/Joka)\
**Post date:** [April 19, 2021, 10:47am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/387 "2021-04-19T10:47:42Z")

</div>

target\_temperature is shown in a tile.

So you have to set target\_temperatur instead of measure\_temperature for the VD

---

<div class="post-metadata">

**Author:** ![spajder\_ua](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spajder_ua/32/33983_2.png) [@spajder\_ua](https://community.homey.app/u/spajder_ua)\
**Post date:** [April 19, 2021, 10:57am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/388 "2021-04-19T10:57:42Z")

</div>

Yes, but not all of the sensors have that Capability. Aqara temp sensor only have measure\_temperature Capability.

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/1/118817c1c5cb0e6e53e742b5df020013e1a9ace5.png)

---

<div class="post-metadata">

**Author:** ![Joka](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Joka](https://community.homey.app/u/Joka)\
**Post date:** [April 19, 2021, 11:10am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/389 "2021-04-19T11:10:13Z")

</div>

I’m not sure if I understand your goal right. What I mean is you have to set the target\_temperature (VD) = measured\_temperature (aqara, Tag temperature) if you want to see the measured value of the aqara in a tile of a VD.

---

<div class="post-metadata">

**Author:** ![spajder\_ua](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spajder_ua/32/33983_2.png) [@spajder\_ua](https://community.homey.app/u/spajder_ua)\
**Post date:** [April 19, 2021, 11:34am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/390 "2021-04-19T11:34:54Z")

</div>

Ok, but as you se in my screens above, i have done that and its not showing up as a tile on the VD.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/c/0c21ae25c0b8888a24e0fd1c12886e0fd690ba1a.jpeg)

---

<div class="post-metadata">

**Author:** ![Joka](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Joka](https://community.homey.app/u/Joka)\
**Post date:** [April 19, 2021, 12:44pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/391 "2021-04-19T12:44:43Z")

</div>

no I don’t see it, because you have to do this the other way around:

name your VD variable target\_temperature NOT measure\_temperature.

I assume that the tag=temperature belongs to the aqara sensor:

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/9/09385b374e5f5ec0b82432c4e1e98fa733412413.png)

in my case “Aktuell” is the temperature value of a sensor.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [April 19, 2021, 12:53pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/392 "2021-04-19T12:53:31Z")

</div>

> [@spajder\_ua](#):
>
> Yes, but not all of the sensors have that Capability. Aqara temp sensor only have measure\_temperature Capability.

That is not important, it is about the capability of the VD thermostat / thermometer.  
The Aqara temp sensor just sends numbers, wich you can assign as temperature values.

So you can view any value you want as virtual thermometer (as long as it’s inside the range of -100 to +200)  
I have weather forecast VD 'thermometers" to view the wind, rain, humidity etc.  
I also have lux sensors that way.  
(btw, the pressure tile (luchtdruk in Dutch) should show `102.0` as 1020mBar, I have to add the `math.format` finction to my calculation, so the `.0` is always shown)

 ![Screenshot_20210419-145639_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/c/0/c0e7ba41eb871ddf6d038a2907a76676b8d4feab.jpeg)  
Example, the airpressure flow:

---

<div class="post-metadata">

**Author:** ![spajder\_ua](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/spajder_ua/32/33983_2.png) [@spajder\_ua](https://community.homey.app/u/spajder_ua)\
**Post date:** [April 19, 2021, 2:09pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/393 "2021-04-19T14:09:33Z")

</div>

Like this?

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

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

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

---

<div class="post-metadata">

**Author:** ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)\
**Post date:** [April 19, 2021, 2:12pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/394 "2021-04-19T14:12:15Z")

</div>

No, [like this](https://community.homey.app/t/howto-set-a-value-to-a-virtual-device/45883) !

---

<div class="post-metadata">

**Author:** ![Joka](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@Joka](https://community.homey.app/u/Joka)\
**Post date:** [April 19, 2021, 2:21pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/395 "2021-04-19T14:21:57Z")

</div>

show us the capabilities of your VD.

are you sure you had defined the capability target\_temperature when you created the device?

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

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