Dear All,
I'm trying to solve thi issue but searching in the forum Topic, I'm not able to find a solution.
I want to add commands to this "function node" to make an UNIQUE ARRAY that contains the 4 values PZEM*, to send to output 5 to send to google sheets.**
(My G.Sheets Node works properly, forcing the array with an "Injection node"that send an array, the sheet is updated)
I do not know yor set up, so at a guess.
It looks like your mqtt node is outputting the same info twice 30 seconds apart.
You could try setting it to output a string, then pass that through a filter/rbe node, so if output is the same string it will not pass, after the filter node you then can use a json node to convert the string to an JSON object.
Or look to see why the device is sending the data twice.