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

<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:37pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/396 "2021-04-19T14:37:01Z")

</div>

Here they are.

Its hard to explain, I can get the flow to work, with measure\_temperature with an aqara temp. sensor, but I dont get a tile on the thermostat showing the temperature.

If I look at the aqara temp sensor and its capabilities, it dosent have target\_temperature as an Capability only measure\_temperature

If I use another sensor from Mill, its for my radiators, its has both capabilities measure\_temperature and target\_temperature, and then i can make flow target\_temperature and it workd and i get a Tile on the thermostat

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

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

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

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

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

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

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/c/bc43b5bc9d185bf2ce268925c10a5c18821fe614.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, 3:02pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/397 "2021-04-19T15:02:07Z")

</div>

hard to believe.

please, enter in developer a value for target-temperature (VD) manually and check the tile.

---

<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, 3:47pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/398 "2021-04-19T15:47:27Z")

</div>

You have to trigger / start the flow by the Aqara sensor “when temperature has changed”  
(and if you want to test, when asked, just enter a fake temperature between -100 and +200)  
And you’ll have to round the output of the Aqara temp sensor to x.5 and x.0  
Take a look, this works:

 ![Screenshot_20210419-175144_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/2/42a1e31c6bcb1d719202e1c9074edc6067209632.jpeg)

---

<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, 3:57pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/399 "2021-04-19T15:57:12Z")

</div>

So I got it to work once, which is one step in the right direction, when i tried to get i to worked again I got Invalid step

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/6/d60e0c6d45ec5914823fdd3e21bc47c7a3fa68d8.jpeg)

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

---

<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, 4:01pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/401 "2021-04-19T16:01:01Z")

</div>

> [@Peter\_Kawa](#):
>
> And you’ll have to round the output of the Aqara temp sensor to x.5 and x.0

@spajder_ua any value other than xx.0 or xx.5 will result in ‘Invalid Step’

---

<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, 5:53pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/403 "2021-04-19T17:53:29Z")

</div>

Thanks, I think I got it now 🙂 How do I round of the output i a good way? Your example are in Dutch, and my Dutch is not so good 🙂

---

<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, 8:19pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/404 "2021-04-19T20:19:37Z")

</div>

Allrightie then.

1. First create a numeric logics variable, and call it f.i. `TempRoundedTo.5`
2. In your flow, add an action card, pick Logics and then “Calculate a value”  
2a. From the top white bar, select your created numeric var `TempRoundedTo.5`  
2b. Enter this calculation in the white bar below that: `{{round((<TemperatureTagFromSensor>*2)/2)}}`  
2c. So, compare it with my card below: my logics var (from point 1.) is called `virt_temp_koelkast`  
The tag `<Temperatuur>` is a selected local tag from the sensor, whicht triggers the flow  
You can pick this tag by selecting the little card icon on the right.  
 ![Screenshot_20210419-220942_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/5/b5c24117733da0ea06d89eac19d64732e33ea025.jpeg)

![round_ex](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/4/24dccbdbd1dff65a57fd54d120a204f386444cc6.png)  
3. Now for the virtual thermometer, pick the “set a temperature” card, and select the tag you used at point 1.

 ![Screenshot_20210419-222131_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/4/94dace1d72e80c8e5d11b7d9d647d918d6856a14.jpeg)

---

<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 29, 2021, 5:53am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/405 "2021-04-29T05:53:23Z")

</div>

Thank you.

This worked as well 🙂  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/3/038df8b209bab3cdeb9796a6e037c5351b8c48ef.png)

---

<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 29, 2021, 1:59pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/406 "2021-04-29T13:59:46Z")

</div>

> [@spajder\_ua](#):
>
> This worked as well 🙂

Cool, didn’t know one can do math in these cards. How did you find out?  
Cheers

---

<div class="post-metadata">

**Author:** ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)\
**Post date:** [April 29, 2021, 9:10pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/407 "2021-04-29T21:10:03Z")

</div>

🔍 math [Available math functions](https://community.homey.app/t/available-math-functions/16622)

---

<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 30, 2021, 1:12am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/408 "2021-04-30T01:12:57Z")

</div>

Thanks, I’m aware of that. But as I wrote, I did not know one can do math calculations outside of Logic “Calculate a value” cards

---

<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 30, 2021, 8:53am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/409 "2021-04-30T08:53:16Z")

</div>

I saw it on a flow from somebody else that had this on it and I tested it myself and it worked 🙂

---

<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 30, 2021, 12:51pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/411 "2021-04-30T12:51:57Z")

</div>

I didn’t know that too.

I test it also with a text variable of the notification card to check out if it works with a text variable in every card. Works, which means that it is a common feature in every card with a text variable and we don’t need to use a extra logic variable at all anymore for usecases like this.

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

---

<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:** [May 1, 2021, 1:15am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/412 "2021-05-01T01:15:15Z")

</div>

I’ve an issue with the `format()` function.  
It seems to work ‘everywhere’, except for (Better)Logic ‘Calculate a value’ cards.  
This function adds a .0 to numbers (I’d like 100,5 and 100,0 to be displayed, not 100,5 and 100)

> [@Formatting number to 2 digits; just cosmetics ;-)](https://community.homey.app/t/formatting-number-to-2-digits-just-cosmetics/36734/11):
>
> This worked for me as well, Robert, using the math directly in the push message I found out it doesn’t work with the native logic “calculate a value” card, the result is an empty num var: But, it works a little bit with better logic “Execute matjs expression” card, but the result stays zero Again, in the push message it works fine.

 ![Screenshot_20210430-161432_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/9/39f78407d548f6deaf4d8523ce0009c06e99a13c.jpeg)

---

<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:** [May 20, 2021, 7:00pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/413 "2021-05-20T19:00:25Z")

</div>

@Arie_Laxed Hi Arjan, is it possible to add `measure_ph` as sensor value? Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Chris\_nl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chris_nl/32/27194_2.png) [@Chris\_nl](https://community.homey.app/u/Chris_nl)\
**Post date:** [May 22, 2021, 3:56am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/414 "2021-05-22T03:56:10Z")

</div>

> [@Peter\_Kawa](#):
>
> So, compare it with my card below: my logics var (from point 1.) is called `virt_temp_koelkast`

Just curious, what kind of sensor are you using for this? Inside the fridge it can be quite damp / humid

---

<div class="post-metadata">

**Author:** ![Undertaker](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/undertaker/32/53278_2.png) [@Undertaker](https://community.homey.app/u/Undertaker)\
**Post date:** [May 22, 2021, 5:49am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/415 "2021-05-22T05:49:47Z")

</div>

I personally use the Zigbee Aqara Temperature Humidity Sensor for this. Has been working fine for months.

---

<div class="post-metadata">

**Author:** ![Chris\_nl](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chris_nl/32/27194_2.png) [@Chris\_nl](https://community.homey.app/u/Chris_nl)\
**Post date:** [May 22, 2021, 5:59am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/416 "2021-05-22T05:59:11Z")

</div>

I have that exact one, but read some articles here and on reddit from users that had issues (and some people say it works fine as well). Did you vacuum seal it or just put it in there?

Anyone have experience with putting one in a freezer? (read some posts here about that not being a good idea 😛 or is that just bad luck and it’s working fine for others)

---

<div class="post-metadata">

**Author:** ![Frank\_H](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/frank_h/32/16942_2.png) [@Frank\_H](https://community.homey.app/u/Frank_H)\
**Post date:** [May 22, 2021, 6:09am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/417 "2021-05-22T06:09:31Z")

</div>

Both are working fine over here, i did not seal them.

---

<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:** [May 22, 2021, 6:25am UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/418 "2021-05-22T06:25:36Z")

</div>

I have a ice cream box freezer, running with Aqara temp sensor too, without any seal running fine since Feb 😀. See below chart:

 ![Capture](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/b/1bbf715500b3ae8eb0ba0fa979494976e55458c3.jpeg)

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

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