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

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [November 30, 2020, 4:52pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/230 "2020-11-30T16:52:49Z")

</div>

it is triggered by both, needs to be target\_temperature capability and thermostat class or it will not show up.

---

<div class="post-metadata">

**Author:** ![CB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cb83/32/30125_2.png) [@CB83](https://community.homey.app/u/CB83)\
**Post date:** [November 30, 2020, 5:10pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/231 "2020-11-30T17:10:53Z")

</div>

Such a shame

---

<div class="post-metadata">

**Author:** ![Max\_Menther](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/max_menther/32/31562_2.png) [@Max\_Menther](https://community.homey.app/u/Max_Menther)\
**Post date:** [November 30, 2020, 5:37pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/232 "2020-11-30T17:37:20Z")

</div>

> [@Caseda](#):
>
> it is triggered by both, needs to be target\_temperature capability and thermostat class or it will not show up.

Have you already tried it with device class = other?

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [November 30, 2020, 5:44pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/233 "2020-11-30T17:44:07Z")

</div>

I have not, but knowing how Homey has worked for several years now, I won’t give it a big chance, but even if the class is “other” and it works, the range is still bound to the mandatory _capability_, not the class, the _showing_ in the tile is most likely bound to having them both. (capability _and_ class)

---

<div class="post-metadata">

**Author:** ![Max\_Menther](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/max_menther/32/31562_2.png) [@Max\_Menther](https://community.homey.app/u/Max_Menther)\
**Post date:** [November 30, 2020, 5:52pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/234 "2020-11-30T17:52:09Z")

</div>

I‘ve just seen that the Dev has redefined the target\_temperature capabap and set the max lvl to 50.  
That‘s how I got the idea.

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [November 30, 2020, 6:00pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/235 "2020-11-30T18:00:55Z")

</div>

> [@Max\_Menther](#):
>
> seen that the Dev has redefined the target\_temperature capaba

Would that mean that it is also possible to redefine the min. temperature to 0 or better to -5 ?  
And if so, how is the syntax for that?

---

<div class="post-metadata">

**Author:** ![Max\_Menther](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/max_menther/32/31562_2.png) [@Max\_Menther](https://community.homey.app/u/Max_Menther)\
**Post date:** [November 30, 2020, 6:04pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/236 "2020-11-30T18:04:23Z")

</div>

imo yes.  
See above the code snippet I posted.  
Will test it when I get home

---

<div class="post-metadata">

**Author:** ![Max\_Menther](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/max_menther/32/31562_2.png) [@Max\_Menther](https://community.homey.app/u/Max_Menther)\
**Post date:** [November 30, 2020, 6:14pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/237 "2020-11-30T18:14:38Z")

</div>

The limit in capab is normally 35, the dev raised it to 50 and I can set it to 50.  
So yes, it‘s possible. I checked it.

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

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [November 30, 2020, 6:43pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/238 "2020-11-30T18:43:18Z")

</div>

Great that it works, but my question was, if it is possible to change the minimum value, that is now ‘4’ , can this be changed to ‘0’ or to ‘-5’ in the same way? Thanks for testing.

---

<div class="post-metadata">

**Author:** ![Max\_Menther](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/max_menther/32/31562_2.png) [@Max\_Menther](https://community.homey.app/u/Max_Menther)\
**Post date:** [November 30, 2020, 6:44pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/239 "2020-11-30T18:44:56Z")

</div>

It should be possible in both ways. I‘ll try it later

---

<div class="post-metadata">

**Author:** ![Max\_Menther](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/max_menther/32/31562_2.png) [@Max\_Menther](https://community.homey.app/u/Max_Menther)\
**Post date:** [November 30, 2020, 7:35pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/240 "2020-11-30T19:35:00Z")

</div>

I can confirm that it works with different min/max values. But just with 0.5 steps

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

---

<div class="post-metadata">

**Author:** ![CB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cb83/32/30125_2.png) [@CB83](https://community.homey.app/u/CB83)\
**Post date:** [November 30, 2020, 7:43pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/241 "2020-11-30T19:43:01Z")

</div>

wow, did you actually solve it? HOW ???

I can live with 0.5 degrees difference

---

<div class="post-metadata">

**Author:** ![Max\_Menther](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/max_menther/32/31562_2.png) [@Max\_Menther](https://community.homey.app/u/Max_Menther)\
**Post date:** [November 30, 2020, 7:46pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/242 "2020-11-30T19:46:01Z")

</div>

That‘s not a real solution, just a workaround.  
The Dev set these tresholds for a good reason.

Normally this device should be used as thermostat and when you set strange values (negative is one of that strange values) you‘ll have problems controlling real Thermostats, since the size of the steering wheel remains the same:)

---

<div class="post-metadata">

**Author:** ![CB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cb83/32/30125_2.png) [@CB83](https://community.homey.app/u/CB83)\
**Post date:** [November 30, 2020, 7:54pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/243 "2020-11-30T19:54:45Z")

</div>

But how did you do it? 🙂

---

<div class="post-metadata">

**Author:** ![Max\_Menther](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/max_menther/32/31562_2.png) [@Max\_Menther](https://community.homey.app/u/Max_Menther)\
**Post date:** [November 30, 2020, 8:54pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/244 "2020-11-30T20:54:48Z")

</div>

Use at your own risk. I don’t take any responsibility.  
If you’re not familiar with such stuff, don’t do it!!

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

And here’s the Homeyscript Code, which rounds the temperature value to the next 0.5 and passes it to a device of your choice.

 ![HS](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/8/085a8650413014e3088a2bd8d125945a1298ae6d.jpeg)

---

<div class="post-metadata">

**Author:** ![CB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cb83/32/30125_2.png) [@CB83](https://community.homey.app/u/CB83)\
**Post date:** [November 30, 2020, 9:06pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/245 "2020-11-30T21:06:14Z")

</div>

seems spooky…  
If done something wrong in there, would a reset of homey restore the error?

The rounding of temperatures, could you also make that smaller then 0.5 ?

---

<div class="post-metadata">

**Author:** ![Max\_Menther](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/max_menther/32/31562_2.png) [@Max\_Menther](https://community.homey.app/u/Max_Menther)\
**Post date:** [November 30, 2020, 9:14pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/246 "2020-11-30T21:14:37Z")

</div>

@Caseda  
I just checked the code.  
The class in the Virtual Device app seems always “other”.  
And it’s possible to redefine athoms default classes.

---

<div class="post-metadata">

**Author:** ![Max\_Menther](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/max_menther/32/31562_2.png) [@Max\_Menther](https://community.homey.app/u/Max_Menther)\
**Post date:** [November 30, 2020, 9:15pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/247 "2020-11-30T21:15:41Z")

</div>

@CB83  
If you have such questions, then please don’t try it.

---

<div class="post-metadata">

**Author:** ![CB83](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cb83/32/30125_2.png) [@CB83](https://community.homey.app/u/CB83)\
**Post date:** [November 30, 2020, 9:18pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/248 "2020-11-30T21:18:36Z")

</div>

A boy needs to grow up and be a man some day.

Will it be restored after a reset?  
My guess is yes.

Reading now how to use homeyscript

---

<div class="post-metadata">

**Author:** ![Max\_Menther](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/max_menther/32/31562_2.png) [@Max\_Menther](https://community.homey.app/u/Max_Menther)\
**Post date:** [November 30, 2020, 9:23pm UTC](https://community.homey.app/t/app-pro-virtual-devices-virtual-devices-to-simulate-1-or-more-real-devices/1723/249 "2020-11-30T21:23:28Z")

</div>

@CB83  
The first change/insert has to be done in the following file, NOT in homeyscript:-)  
/virtual-devices-master/drivers/virtual\_switch/driver.js

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

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