# Virtual device app “set a virtual sensor value” how to interpret?

**URL:** <https://community.homey.app/t/virtual-device-app-set-a-virtual-sensor-value-how-to-interpret/43409>\
**Category:** Questions & Help\
**Tags:** virtual-device\
**Created:** [February 21, 2021, 9:18am UTC](https://community.homey.app/t/virtual-device-app-set-a-virtual-sensor-value-how-to-interpret/43409 "2021-02-21T09:18:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hannes85](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hannes85](https://community.homey.app/u/Hannes85)\
**Post date:** [February 21, 2021, 9:18am UTC](https://community.homey.app/t/virtual-device-app-set-a-virtual-sensor-value-how-to-interpret/43409/1 "2021-02-21T09:18:10Z")

</div>

How would I interpret this when I want to set the current temperature value of a virtual device (the app not the experiment)?

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

I’ve tried multiple things without luck;

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/a/6a0bf7e106bc7e73e9908e24c790ba8f3b0f23b4.png) ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/1/f167584661b2abeb52ffbe1b0020e38de5d3b38e.png)

I must be missing something obvious but I don’t see it.  
Thanks for your thoughts!

---

<div class="post-metadata">

**Author:** ![peltsi51](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peltsi51/32/12564_2.png) [@peltsi51](https://community.homey.app/u/peltsi51)\
**Post date:** [February 21, 2021, 9:36am UTC](https://community.homey.app/t/virtual-device-app-set-a-virtual-sensor-value-how-to-interpret/43409/2 "2021-02-21T09:36:05Z")

</div>

The first option should work. See the picture below. Check that you don’t have any unwanted spaces in the value or the condition

 ![Screenshot_20210221-113458_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/a/9a8282b7b2e1155b2e08a86e020099c2649bab0a.jpeg)

---

<div class="post-metadata">

**Author:** ![Hannes85](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hannes85](https://community.homey.app/u/Hannes85)\
**Post date:** [February 21, 2021, 9:43am UTC](https://community.homey.app/t/virtual-device-app-set-a-virtual-sensor-value-how-to-interpret/43409/3 "2021-02-21T09:43:15Z")

</div>

Aha it works indeed but only when the virtual device is on. That sucks, was hoping it would update also when it was off to reflect the temperature.

Thank you for your thoughts :)!

---

<div class="post-metadata">

**Author:** ![seiko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/seiko/32/10963_2.png) [@seiko](https://community.homey.app/u/seiko)\
**Post date:** [February 21, 2021, 10:02am UTC](https://community.homey.app/t/virtual-device-app-set-a-virtual-sensor-value-how-to-interpret/43409/4 "2021-02-21T10:02:12Z")

</div>

work with a variable and when that one change set the measure \_temp

[https://homey.app/f/KEn14v](https://homey.app/f/KEn14v)

[https://homey.app/f/YP524v](https://homey.app/f/YP524v)

---

<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:** [February 21, 2021, 10:30am UTC](https://community.homey.app/t/virtual-device-app-set-a-virtual-sensor-value-how-to-interpret/43409/5 "2021-02-21T10:30:06Z")

</div>

Try the “target\_temperature”

---

<div class="post-metadata">

**Author:** ![Juan\_Garcia](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/juan_garcia/32/29903_2.png) [@Juan\_Garcia](https://community.homey.app/u/Juan_Garcia)\
**Post date:** [February 26, 2021, 9:39am UTC](https://community.homey.app/t/virtual-device-app-set-a-virtual-sensor-value-how-to-interpret/43409/6 "2021-02-26T09:39:57Z")

</div>

I am trying to set up a virtual sensor value in a flow but I get the error invalid\_capability. I am just getting energy consumption information from a device and trying to show it in a virtual sensor with current, voltage, power meter and power capabilities.

It must be something stupid I am doing but I am not able to find the issue. Can someone help?

 ![Screenshot_2021-02-26-10-37-14-77](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/9/096867c6e31f59c7de24db792085a5d6aa62ef84.jpeg)  
 ![Screenshot_2021-02-26-10-39-33-81](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/2/a29156f61cb4b17040f99a2e3f5fd58c633f6313.jpeg)

---

<div class="post-metadata">

**Author:** ![Hannes85](https://avatars.discourse-cdn.com/v4/letter/h/e79b87/32.png) [@Hannes85](https://community.homey.app/u/Hannes85)\
**Post date:** [February 26, 2021, 9:50am UTC](https://community.homey.app/t/virtual-device-app-set-a-virtual-sensor-value-how-to-interpret/43409/7 "2021-02-26T09:50:55Z")

</div>

Can you review this link;

> **[Virtual Devices](https://arjankranenburg.github.io/virtual-devices/sensor.html)**
>
> Homey-app to add Virtual Devices that can trigger your flows.

And rather than “power” set “measure\_power”

---

<div class="post-metadata">

**Author:** ![Juan\_Garcia](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/juan_garcia/32/29903_2.png) [@Juan\_Garcia](https://community.homey.app/u/Juan_Garcia)\
**Post date:** [February 26, 2021, 10:31am UTC](https://community.homey.app/t/virtual-device-app-set-a-virtual-sensor-value-how-to-interpret/43409/8 "2021-02-26T10:31:00Z")

</div>

Thank you very much for your quick support !!

I added “measure\_XXX” as you suggested and it works now.
