Sum of 3 different values

To use javascript you would use a Function node.

In that case I suggest also putting a value in the timeout field in the Join node. Maybe 2 seconds. Then if one of the values does not arrive, or maybe you start node-red in the middle of the sequence of three messages so one gets lost, then it will send them when the 2 seconds has elapsed. Then in the function node you can check that all three are there and decide what to do if one or more are missing.


Im doing the same from a shelly EM3 ussing the shelly node and just pushing it through the function block and in to InfluxDB. It gives you every thing you need In Json format with time stamp too.
Function =
msg.payload =
msg.topic = "Em3 demo";
return msg;

I will monitor it and consider that solution. Currently I was only testing on one phase. Now I have to wait for an electrician to install it to all three phases in the house electricity box

Thats the Flow .

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