# Virtual Device: set temperature to virtual sensor doesn't seem to work

**URL:** <https://community.homey.app/t/virtual-device-set-temperature-to-virtual-sensor-doesnt-seem-to-work/58612>\
**Category:** Questions & Help\
**Created:** [January 18, 2022, 6:51am UTC](https://community.homey.app/t/virtual-device-set-temperature-to-virtual-sensor-doesnt-seem-to-work/58612 "2022-01-18T06:51:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon61197305](https://avatars.discourse-cdn.com/v4/letter/a/8baadc/32.png) [@anon61197305](https://community.homey.app/u/anon61197305)\
**Post date:** [January 18, 2022, 6:51am UTC](https://community.homey.app/t/virtual-device-set-temperature-to-virtual-sensor-doesnt-seem-to-work/58612/1 "2022-01-18T06:51:40Z")

</div>

I have an old device with no smart capabilities, but I placed a temperature sensor in it and I created a flow to determine when it’s on or off (as a simple on/off virtual device).

I created an other virtual device (of a type that has on/off and a temperature sensor; the water kettle). The flow where the on/off is determined also turns on or off this virtual device. This works perfectly.

I also created a flow where, if the temperature of the real sensor changes, it will be written to the virtual sensor. But that one doesn’t work. It says - °C (\< it sees it does recognise that it is a temperature!).  
When testing the flow with a temperature it says ‘invalid capability’. So it seems it doesn’t recognise it?

I used the ‘set value of virtual sensor’ and double checked if I set the right tags in it. For sensor, it’s the ‘temperature’ sensor of the virtual device and for value, it’s the temperature value of the real temperature sensor.

Am I doing something wrong, or should I use a different virtual device to fix this? I cannot seem to find what is happening.

---

<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:** [January 18, 2022, 7:05am UTC](https://community.homey.app/t/virtual-device-set-temperature-to-virtual-sensor-doesnt-seem-to-work/58612/2 "2022-01-18T07:05:37Z")

</div>

Please share your flow. Also, assuming that you’re using a tag/token for the temperature value, have you tried using a hardcoded value instead?

---

<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:** [January 19, 2022, 4:40am UTC](https://community.homey.app/t/virtual-device-set-temperature-to-virtual-sensor-doesnt-seem-to-work/58612/3 "2022-01-19T04:40:58Z")

</div>

and make sure the “input” temperature gets rounded by .5 on beforehand

---

<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:** [January 19, 2022, 12:28pm UTC](https://community.homey.app/t/virtual-device-set-temperature-to-virtual-sensor-doesnt-seem-to-work/58612/4 "2022-01-19T12:28:43Z")

</div>

Don’t use the tag temperature from the virtualdevice, but type measure\_temperature  
[https://homey.app/f/1ojjOV](https://homey.app/f/1ojjOV)
