# I have a question about payload

**URL:** <https://discourse.nodered.org/t/i-have-a-question-about-payload/37918>\
**Category:** General\
**Created:** [23 December 2020 12:06 UTC](https://discourse.nodered.org/t/i-have-a-question-about-payload/37918 "2020-12-23T12:06:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marconr9](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marconr9/32/34116_2.png) [@marconr9](https://discourse.nodered.org/u/marconr9)\
**Post date:** [23 December 2020 12:06 UTC](https://discourse.nodered.org/t/i-have-a-question-about-payload/37918/1 "2020-12-23T12:06:04Z")

</div>

Hi i'm new to node red and have maybe a stupid question.  
I want to integrate my dishwasher in my Domoticz system.  
Everything working fine but there is! one thing

![vaatwasser](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/f/ff687274355030ac63a80b6e016483ef99cc8ab9.jpeg)

In my status window in Domoticz i see the complete value and can not change it  
I only want to see the last part (active,inactive,running)  
But i don't want to see BSH.Common.EnumType.OperationState

There is a key and a value.  
 ![key](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/1/118a46866b2a2be656993c582be166063ace7e65.jpeg)

please help! and ailso so help to set up the function.

msg.payload = {"key":"udevice","idx":170,"nvalue":0,"svalue":"STATUS: "+ msg.payload.data.value};

thank you

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [23 December 2020 12:09 UTC](https://discourse.nodered.org/t/i-have-a-question-about-payload/37918/2 "2020-12-23T12:09:08Z")

</div>

pass the msg into a function node...

```auto
msg.topic = msg.payload.key;
msg.payload = msg.payload.value.split(".").pop();
return msg;

```

.. then to a debug node.

* * *

note: There’s a great page in the docs that will explain how to use the debug panel to find the right path to any data item.

> **[Working with messages : Node-RED](https://nodered.org/docs/user-guide/messages)**

---

<div class="post-metadata">

**Author:** ![marconr9](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marconr9/32/34116_2.png) [@marconr9](https://discourse.nodered.org/u/marconr9)\
**Post date:** [23 December 2020 13:00 UTC](https://discourse.nodered.org/t/i-have-a-question-about-payload/37918/3 "2020-12-23T13:00:14Z")

</div>

Thank you !!  
It worked

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 January 2021 13:00 UTC](https://discourse.nodered.org/t/i-have-a-question-about-payload/37918/4 "2021-01-06T13:00:20Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
