I have a question about payload

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

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

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

pass the msg into a function node...

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.

Thank you !!
It worked