# Send data form NODE RED to ESPEASY

**URL:** <https://discourse.nodered.org/t/send-data-form-node-red-to-espeasy/73377>\
**Category:** General\
**Tags:** mqtt\
**Created:** [8 January 2023 17:52 UTC](https://discourse.nodered.org/t/send-data-form-node-red-to-espeasy/73377 "2023-01-08T17:52:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![MHagreis](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mhagreis/32/46673_2.png) [@MHagreis](https://discourse.nodered.org/u/MHagreis)\
**Post date:** [8 January 2023 17:52 UTC](https://discourse.nodered.org/t/send-data-form-node-red-to-espeasy/73377/1 "2023-01-08T17:52:27Z")

</div>

how to send data form node red to espeasy mqtt message in format or status  
can some one point me in the right direction

espeasy to NODE RED is easy but NODE RED to espeasy

i like to send data to espeasy to change a NeoPixel

NeoPixel,1,255,165,0,0

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [8 January 2023 19:11 UTC](https://discourse.nodered.org/t/send-data-form-node-red-to-espeasy/73377/2 "2023-01-08T19:11:59Z")

</div>

I wrote this tutorial guide a few years ago for my IoT students.  
Some of the material might be useful to you. Here's a link to the PDF.

[http://resources-area.co.uk/node-red-flows/controlling\_neopixels.pdf](http://resources-area.co.uk/node-red-flows/controlling_neopixels.pdf)

I've just seen that the MQTT topic reference (in the Tutorial) is /node91/cmd  
You don't need the initial forward slash, so it should be... node91/cmd  
Obviously change the node ref to match your ESP8266 device.  
Make sure in ESPeasy you subscribe to the same topic spelling/syntax.

Here's how I setup my Wemos D1 Mini. I give each device a unique Unit Name. e.g. node31

![unit_name](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/0/a097760d662be04ac93910b63295a3654ad5bd50.png)

Then in the Controllers tab I enter **%sysname%/#** in the Controller Subscribe box.

![mqtt_controller](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/6/563f2cf30a9bd8a934b69b601d618cfcbe069244.png)

Hope it works for you.

---

<div class="post-metadata">

**Author:** ![MHagreis](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mhagreis/32/46673_2.png) [@MHagreis](https://discourse.nodered.org/u/MHagreis)\
**Post date:** [16 January 2023 17:45 UTC](https://discourse.nodered.org/t/send-data-form-node-red-to-espeasy/73377/3 "2023-01-16T17:45:12Z")

</div>

thanks for your great support still working on it as I have troubles getting the let to work ☹

found your website with a lot of tutorials (can I use that?)  
they are great and verry helpfull.

---

<div class="post-metadata">

**Author:** ![MHagreis](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mhagreis/32/46673_2.png) [@MHagreis](https://discourse.nodered.org/u/MHagreis)\
**Post date:** [16 January 2023 18:02 UTC](https://discourse.nodered.org/t/send-data-form-node-red-to-espeasy/73377/4 "2023-01-16T18:02:44Z")

</div>

Maybe some help is requested  
easyesp setting is  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/8/f8736e49bdf53dd9ff21e31b470f0be1530e7734.png)

node red is  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/a/0a0c70ab1d20f7a01424a1d4b08730e470f08e27.png)

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/c/5c260516e91580e3923f5808dd99d6ca1470f58a.png)

some hinds are welcome 🙂

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [16 January 2023 19:17 UTC](https://discourse.nodered.org/t/send-data-form-node-red-to-espeasy/73377/5 "2023-01-16T19:17:08Z")

</div>

How do you have the device defined in ESPEasy? Get into ESPEasy and go to the 'Device' tab then edit the device and do a screen print of it's settings and add it to a reply.

---

<div class="post-metadata">

**Author:** ![MHagreis](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mhagreis/32/46673_2.png) [@MHagreis](https://discourse.nodered.org/u/MHagreis)\
**Post date:** [16 January 2023 20:47 UTC](https://discourse.nodered.org/t/send-data-form-node-red-to-espeasy/73377/7 "2023-01-16T20:47:22Z")

</div>

Thanks for your help hereby a screenshot of the device tab

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/b/8b82d1b0b65df4312ffc380ccd7bfc991facfcc9.png)

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [17 January 2023 16:29 UTC](https://discourse.nodered.org/t/send-data-form-node-red-to-espeasy/73377/8 "2023-01-17T16:29:46Z")

</div>

Might be worth checking your MQTT Controller settings inside ESPeasy.  
This is what my setup looks like...

![controller_settings](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/f/bf58aac246afec1c7bbaf3cec093c69e93a80c00.png)

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [17 January 2023 17:06 UTC](https://discourse.nodered.org/t/send-data-form-node-red-to-espeasy/73377/9 "2023-01-17T17:06:41Z")

</div>

And what does your circuit look like? A photo and circuit diagram would be useful.

---

<div class="post-metadata">

**Author:** ![MHagreis](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mhagreis/32/46673_2.png) [@MHagreis](https://discourse.nodered.org/u/MHagreis)\
**Post date:** [6 February 2023 11:13 UTC](https://discourse.nodered.org/t/send-data-form-node-red-to-espeasy/73377/10 "2023-02-06T11:13:32Z")

</div>

sorry for the late response,

an HTTP request node works perfect with the payload  
[http://192.168.2.84/control?cmd={{payload}](http://192.168.2.84/control?cmd=%7B%7Bpayload%7D)}

the only thin that is strange it will not accept node red messages via MQTT  
not with domoticz or with Home assistant

I don't know but i think it is due that i do something wrong with sending nodes 🙂

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/2/22946a56df238af0f5203e2d5e23f22e86e8427c.png)

also no ctr(idx) is posible to add to a let so how to address that port?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [6 February 2023 16:00 UTC](https://discourse.nodered.org/t/send-data-form-node-red-to-espeasy/73377/11 "2023-02-06T16:00:36Z")

</div>

what is the format of the payload (i.e. the contents of {{payload}})

You are sending this:  
NeoPixel,1,255,165,0,0  
according to the [ESPEasy documentation](https://espeasy.readthedocs.io/en/latest/Reference/Command.html#command-a-specific-task-for-multiple-instances-of-a-plugin) (do a search for "NeoPixel")  
`brightness: 0..255 (only applicable when using GRBW LEDs)`  
so try removing the last 0
