# Get temperature into a eWeLink Cube virtual device

**URL:** <https://forum.ewelink.cc/t/get-temperature-into-a-ewelink-cube-virtual-device/25871>\
**Category:** Uncategorized\
**Created:** [December 16, 2023, 5:15pm UTC](https://forum.ewelink.cc/t/get-temperature-into-a-ewelink-cube-virtual-device/25871 "2023-12-16T17:15:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![eerke](https://avatars.discourse-cdn.com/v4/letter/e/eb9ed0/32.png) [@eerke](https://forum.ewelink.cc/u/eerke)\
**Post date:** [December 16, 2023, 5:15pm UTC](https://forum.ewelink.cc/t/get-temperature-into-a-ewelink-cube-virtual-device/25871/1 "2023-12-16T17:15:44Z")

</div>

After having created a virtual temperature device in node Red on iHost how do I get a temperature into the “put-device-stat node? Everything I have tried has failed.  
I am starting with a TH Elite temperature. First I turn it from a string into an object. Then I’m moving it around so the temperature number becomes the main payload. I think I probably now need to convert the number into a JSON object with a function node but everything I am doing fails.

Not actually essential to what I’m doing but it is annoying me that I am not able to do this.
