How do save JSON values that I'm receiving for MQTT protocol?

I am having trouble saving a value within a specific condition, I get several JSON reads, but I only want to store the value that my variable "YUAUB" returns.

Can someone help me?

-- msg.payload : Object

object

variable: "EQT"

value: 0.04

unit: "kVArh"

-- msg.payload : Object

object

variable: "YUAUB"

value: 270.48

unit: "o"

-- msg.payload : Object

object

variable: "YUAUC"

value: 0.44

unit: "o"

-- msg.payload : Object

object

variable: "YUBUC"

value: 89.52

unit: "o"

Have a look at the switch node and the has key comparison.

Could you show me an example of how to write in the switch, please?

Just use a switch node as filter:

Thank you very much, it helped me a lot.

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