Dk_89
14 February 2022 19:21
1
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"
E1cid
14 February 2022 19:25
2
Have a look at the switch node and the has key comparison.
Dk_89
14 February 2022 19:40
3
Could you show me an example of how to write in the switch, please?
Dk_89:
YUAUB
Just use a switch node as filter:
Dk_89
14 February 2022 20:45
5
Thank you very much, it helped me a lot.
system
Closed
28 February 2022 20:45
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.