# How to send Red Node data to Tagoio

**URL:** <https://community.tago.io/t/how-to-send-red-node-data-to-tagoio/469>\
**Category:** Getting Started\
**Created:** [January 22, 2022, 5:03am UTC](https://community.tago.io/t/how-to-send-red-node-data-to-tagoio/469 "2022-01-22T05:03:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/system/32/24_2.png) [@system](https://community.tago.io/u/system)\
**Post date:** [January 22, 2022, 5:03am UTC](https://community.tago.io/t/how-to-send-red-node-data-to-tagoio/469/1 "2022-01-22T05:03:09Z")

</div>

@José Sérgio Medeiros Jr

I’m using an esp8226 that sends data to node red, but I can’t send data from node red to tagoio! Does anyone have a tutorial on how to do this?

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/system/32/24_2.png) [@system](https://community.tago.io/u/system)\
**Post date:** [January 22, 2022, 5:03am UTC](https://community.tago.io/t/how-to-send-red-node-data-to-tagoio/469/2 "2022-01-22T05:03:10Z")

</div>

@Vitor Lima

Hi Sergio,  
I believe the best way to integrate with NodeRed is by using the MQTT integration with TagoIO. I’m not an expert on NodeRed integration, but this is how I usually see customers doing this integration.

You can get the broker settings from the documentation [MQTT - TagoIO](https://docs.tago.io/en/articles/32)

I believe that after you setup your NodeRed, at some point you will need to use the node Function to create the format to send to TagoIO, such as:

 ![image](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/1X/17b93fd3b969916d22fac4a8b3964dd13dc5a4f2.png)

Then use the MQTT Node to send data to TagoIO:

 ![image](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/1X/deec2752691b28f7082c5984fb4509bac8d6ac97.png)

Then check your device Live Inspector to see if you’re receiving messages from the MQTT. After you confirm that, you need to create an Action to store data to bucket and set it up to the topics you’re using.

---

<div class="post-metadata">

**Author:** ![drberthol](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@drberthol](https://community.tago.io/u/drberthol)\
**Post date:** [August 30, 2022, 11:43pm UTC](https://community.tago.io/t/how-to-send-red-node-data-to-tagoio/469/3 "2022-08-30T23:43:02Z")

</div>

Hi,

That’s the result of your code. Looks like the field to the variable name always take Payload as name. This is the result of your code…

[  
{  
“variable”: “payload”,  
“value”: “variable:bouton2action,value:single”,  
“metadata”: {  
“mqtt\_topic”: “zigbee2mqtt/bouton2”  
}  
}  
]

Any hints ?

Thanks

Marc

---

<div class="post-metadata">

**Author:** ![eger](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/eger/32/10_2.png) [@eger](https://community.tago.io/u/eger)\
**Post date:** [September 16, 2022, 5:22pm UTC](https://community.tago.io/t/how-to-send-red-node-data-to-tagoio/469/4 "2022-09-16T17:22:40Z")

</div>

Hi Marc,

Can you show us your NodeRed function properties?

---

<div class="post-metadata">

**Author:** ![drberthol](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@drberthol](https://community.tago.io/u/drberthol)\
**Post date:** [September 16, 2022, 7:06pm UTC](https://community.tago.io/t/how-to-send-red-node-data-to-tagoio/469/5 "2022-09-16T19:06:47Z")

</div>

Hi,

I make it work in another way. I use a change node and add this in it:

 ![](https://canada1.discourse-cdn.com/flex034/uploads/tagoio1/original/1X/e0f1d872fee1c5b66c1cde983cfe305157c01a03.png)

{“variable”:“windspeed”,“value”:msg.payload}

---

<div class="post-metadata">

**Author:** ![eger](https://yyz2.discourse-cdn.com/flex034/user_avatar/community.tago.io/eger/32/10_2.png) [@eger](https://community.tago.io/u/eger)\
**Post date:** [September 16, 2022, 7:13pm UTC](https://community.tago.io/t/how-to-send-red-node-data-to-tagoio/469/6 "2022-09-16T19:13:58Z")

</div>

Hi Marc,

Try to use a NodeRed **function** like Vitor showed above.

Or just send msg.payload and use the [Payload Parser](https://help.tago.io/portal/en/kb/articles/147-payload-parser) to parse it to TagoIO format. Something like that should work:

```auto
payload = [{
  variable: 'wind_speed',
  value: payload,
}]

```
