How do save JSON values that I’m receiving for MQTT protocol? – #3 by Dk_89 – General

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”

Read more here: Source link