# Node Red Tag Write

**URL:** <https://forum.inductiveautomation.com/t/node-red-tag-write/37795>\
**Category:** Maker\
**Created:** [August 17, 2020, 8:27am UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795 "2020-08-17T08:27:37Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [August 17, 2020, 8:27am UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/1 "2020-08-17T08:27:37Z")

</div>

Hi,

I can successfully read tags from Ignition into Node Red and also write static values, but I don’t know how to write the msg.payload to an Ignition tag.

If I do this, it works:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/1/41db57421083ff96ed662e7f56b4a293e271891e.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/a/ea416b0d70353b0eaacc07b5672ba21dd8f8b846.png)

I would like to write the msg.payload, as available from the dropdown. Just can’t seem to figure out how to link _Tag Value_ to _Value_.

Could someone please point me in the write direction?

Thanks,  
Deon

---

<div class="post-metadata">

**Author:** ![jdrichards70](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@jdrichards70](https://forum.inductiveautomation.com/u/jdrichards70)\
**Post date:** [August 17, 2020, 11:58am UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/2 "2020-08-17T11:58:54Z")

</div>

I had the same problem and couldn’t find a dummied down instruction set. Now it makes sense. You need to move the previous payload to tagValue.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/9/39171d0f5ad68c694e7c63d075d04a10a5f8b0bd.png)

And clear the tag value input for what you are writing. My tag name in Ignition is ‘test’ in the root of the folders.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/a/cabc0f2748ac1469f25a8627e64b2a24c673e160.png)

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [August 17, 2020, 12:19pm UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/3 "2020-08-17T12:19:35Z")

</div>

I just got it right with a function:

```auto
var newMsg = { 
                    payload: {
                                    tagValue:msg.payload,
                                    tagProvider:'default',
                                    tagPath:'TestFloat'
                                } 
                };
return newMsg;

```

But I like your solution more.

Thanks!

---

<div class="post-metadata">

**Author:** ![a.sliver](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@a.sliver](https://forum.inductiveautomation.com/u/a.sliver)\
**Post date:** [August 27, 2020, 7:47pm UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/4 "2020-08-27T19:47:16Z")

</div>

What nodes are the slider and colour picker?

Also can anyone explain the Tag Path? I want to make sure as I build my Maker project and my node red project that I’m doing things right.

---

<div class="post-metadata">

**Author:** ![jdrichards](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@jdrichards](https://forum.inductiveautomation.com/u/jdrichards)\
**Post date:** [August 27, 2020, 10:02pm UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/5 "2020-08-27T22:02:48Z")

</div>

slider and colour picker were just part of the default Node-Red install, under the Dashboard objects, on the left side. I’m definitely not a Node-Red expert. I would like to skip the extra layers of software and have Ignition directly communicate with my devices, so I’ve discontinued my efforts to have Node-Red control my MagicHue lights, from an Ignition Perspective client, and am working on straight from Ignition.

The Tag Path is simply the tag you have created in Ignition’s designer on the gateway.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/a/0a4f9b33551b83211cb44e2a8dbfdf3b02fbf880.png)

You see I have a tag called ‘test’ and it is in my ‘root directory’ so to speak. [default] is the name of my tag provider on the gateway. I didn’t change the name of my tag provider for Ignition, so it is called ‘default’.

Hope that helps some.

---

<div class="post-metadata">

**Author:** ![a.sliver](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@a.sliver](https://forum.inductiveautomation.com/u/a.sliver)\
**Post date:** [August 28, 2020, 12:56pm UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/6 "2020-08-28T12:56:01Z")

</div>

So it would follow standard directory path logic then? Using your picture I would do “Common\test” if you had a test tag in your common folder?

---

<div class="post-metadata">

**Author:** ![jdrichards70](https://avatars.discourse-cdn.com/v4/letter/j/f6c823/32.png) [@jdrichards70](https://forum.inductiveautomation.com/u/jdrichards70)\
**Post date:** [August 29, 2020, 1:49am UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/7 "2020-08-29T01:49:40Z")

</div>

yes, but use the forward slash.

[default]Common/Timer

---

<div class="post-metadata">

**Author:** ![a.sliver](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@a.sliver](https://forum.inductiveautomation.com/u/a.sliver)\
**Post date:** [September 9, 2020, 3:29pm UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/8 "2020-09-09T15:29:20Z")

</div>

Thank you. Now to figure out why my rpi4 wont let me access the webserver anymore so I can make a killer program.

---

<div class="post-metadata">

**Author:** ![jacks0459](https://avatars.discourse-cdn.com/v4/letter/j/5f9b8f/32.png) [@jacks0459](https://forum.inductiveautomation.com/u/jacks0459)\
**Post date:** [September 16, 2020, 2:17pm UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/9 "2020-09-16T14:17:28Z")

</div>

Got it work again but I’m running into this error:  
`Error: Invalid property expression: unexpected at position 8`  
Not sure why (new to both node red and ignition so forgive me if its an easy fix.

---

<div class="post-metadata">

**Author:** ![edy52](https://avatars.discourse-cdn.com/v4/letter/e/53a042/32.png) [@edy52](https://forum.inductiveautomation.com/u/edy52)\
**Post date:** [December 12, 2020, 11:33pm UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/10 "2020-12-12T23:33:11Z")

</div>

I hope you and your family continue to stay safe and healthy.  
I can see in your Tag Browser Hubitat.  
May I ask you how did you make it works.  
Regards  
Ed

---

<div class="post-metadata">

**Author:** ![dalllelmouez](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@dalllelmouez](https://forum.inductiveautomation.com/u/dalllelmouez)\
**Post date:** [December 20, 2020, 5:18pm UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/11 "2020-12-20T17:18:58Z")

</div>

good morning ,

could any one help me in configuring egnition\_tag\_write node  
the field Tag value i can’t found how to link it to an injected message  
**just when write in the field directy it shown in ignition tag value**

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/3/c33c6dec8a6245403c4f72c1f4428ab237776fac.png)

---

<div class="post-metadata">

**Author:** ![dalllelmouez](https://avatars.discourse-cdn.com/v4/letter/d/e47774/32.png) [@dalllelmouez](https://forum.inductiveautomation.com/u/dalllelmouez)\
**Post date:** [December 20, 2020, 5:20pm UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/12 "2020-12-20T17:20:33Z")

</div>

if any one has a titorial for this nods ( write and read )

---

<div class="post-metadata">

**Author:** ![sungkhum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sungkhum/32/10636_2.png) [@sungkhum](https://forum.inductiveautomation.com/u/sungkhum)\
**Post date:** [December 20, 2020, 9:44pm UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/13 "2020-12-20T21:44:58Z")

</div>

@dalllelmouez Take a look at @jdrichards70 reply up above - it shows how to add a Move node to get the payload in the right place to write the tag (msg.payload.tagValue)

---

<div class="post-metadata">

**Author:** ![Luc.Sieben](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@Luc.Sieben](https://forum.inductiveautomation.com/u/Luc.Sieben)\
**Post date:** [March 17, 2021, 3:23pm UTC](https://forum.inductiveautomation.com/t/node-red-tag-write/37795/15 "2021-03-17T15:23:21Z")

</div>

Hi i am trying to do this with an API. I still don’t get the right Value in Ignition. do you know what i did wrong?  
I set everything the same as you did, alsois the object “true”.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/e/3e1e8f102274c2f335546d7ca4440de67530d455.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/1/11077b32b8a439ea1a337caeb7a558a9e1be0d14.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/e/5eb332a0b4e6508dc73bbee7e1a2aa665a01fa24.png)
