Hi
I build some simple flows using Node red. It is great features.
But now I can not find how to program action flow based on two inputs parameters. PV power and SOC. I am not programer and already spend several days searching on youtube, nodered.org and this forum. Probably it is very simple and I miss some basic knowledge
My goal is to set Grid point (GP) to 3 values: -1800W, -500W and 0 depending on PV W and SOC.
If SOC > 85% & PV>1500W then GP=-1800
If SOC > 85% & PV<1500 then GP=-500
If 50%<SOC<85% and PV>1500 then GP=-500
If SOC<30% then GP=0
Logic may change and will fix it, but what I am missing if how to manage logic having two inputs and only one msg.payloads value
Thanks
Mindaugas