Payload handling

I have a payload as follows (ewontags: 15 items)
image
I want to create an array containing just the “name” as key and “value” as value to use as a data source for a Device state node.
I’m having a hard time doing this.
I tried making a loop but unsecure if I should use the “array” node or “mutate” to create the “new” array.

Hi @Lars_Andersson,

For this, I would recommend that you just type in the lines into a Device: State Node.

So, you’d use {{data.ewontags.[0].name}}, {{data.ewontags.[1].name}}, etc. in your Device: State Node for all 15 items.

Thank you,
Heath