Re: Join several dataloggers and calculate values in Node-Red
Posted: Wednesday 30 March 2022 14:28
Hello @PieterS,
Yesterday you wrote:
To be sure and in order to solve it, can you connect a (green) Debug node to the output of the MQTT Out node, so that we can see, what has been sent to the "Change" node. Open the "tree" as much as possible by clicking all arrows.
So during the programmed time (day) the input is directed to the upper output and during the night the input goes to the lower output.
However, I noted from your flow, that you use a different date/time switch. So that might work in a different way.
This explains, why you don't get any data after 20:36 (yesterday) and receive NaN. But I would like to see the data received by MQTT during night as well.
The Omnik inverter uses a Python script and more or less every Python script, that wants the communicate with a MQTT broker, uses the Paho library.
So that means you have to install Paho.
Yes, that it looks different, does not surprise me.
To be compatible with the GroWatt and SMA (pvpowerout and pvenergytoday), I think you will need p_ac1 (or ac_power) and e_today. Your inverter is a 1 phase inverter and not a 3 phase inverter.
If you agree we can change that. It is not a problem, that it is different.
Can you send me a screenshot of the Output of the MQTT node (Omnik)? Do not hide any data. If there is sensitive data, send it in a PM.
Regards
Yesterday you wrote:
The error you see (3 times) is NaN. NaN stands for Not a Number. I'm not 100% sure, where the error comes from, but I think probably the "Change" node, which sets the flow.context. The reason is that it has received data of the wrong type.After that part I configured two importnodes: The Growatt and the SMA.
Status is connected but each of them give and error... I don't understand why.
The Growatt should have the right valuenames pvpowerout and pvenergytoday and values in its JSON-message of the manual inject node.
But I get this error in the right pane.
Image
To be sure and in order to solve it, can you connect a (green) Debug node to the output of the MQTT Out node, so that we can see, what has been sent to the "Change" node. Open the "tree" as much as possible by clicking all arrows.
Is it possible that you tested it after 20:36? That is the time that (in my case sunset + 30 mins) the switch goes from the upper output to the lower output.I do not understand why there is no output. Maybe you can explain this to me?
So during the programmed time (day) the input is directed to the upper output and during the night the input goes to the lower output.
However, I noted from your flow, that you use a different date/time switch. So that might work in a different way.
This explains, why you don't get any data after 20:36 (yesterday) and receive NaN. But I would like to see the data received by MQTT during night as well.
Yes, this is correct. The function collects the stored data (flow.get)In my opinion the data stream on daytime is Node named Growatt MQTT In 1 -> Store Data 1 -> 5 Min Tick -> Day Time switch -> Function.
My questions:
1: is this thought correct?
2: the data is temporarily stored in the memory of Node-Red?
Probably, because the date/time switch has been activated.This morning the flow is reading input from the Growatt-inverter and now I got the first results from the Function-node:
The Omnik inverter uses a Python script and more or less every Python script, that wants the communicate with a MQTT broker, uses the Paho library.
So that means you have to install Paho.
Yes, that it looks different, does not surprise me.
To be compatible with the GroWatt and SMA (pvpowerout and pvenergytoday), I think you will need p_ac1 (or ac_power) and e_today. Your inverter is a 1 phase inverter and not a 3 phase inverter.
If you agree we can change that. It is not a problem, that it is different.
Can you send me a screenshot of the Output of the MQTT node (Omnik)? Do not hide any data. If there is sensitive data, send it in a PM.
Regards