Closed fgerrits closed 1 year ago
Hi Is it possible to get the pvstatus from growatt in the script for switching the inverter status.
So when system is online status is On (1) when system is offline status is Waiting or Off (0) when the is an error in the system status is Faulty (2)
Now the inverter status does nothing, its 24/7 On
Im running node-red on a seperate RPi there im using another simple growatt function and there i use for the status this.
` var msg1 = {}; // pvstatus, Inverter run state switch (msg.payload.values.pvstatus) { case 0 : msg1.payload = {"command":"udevice","idx":486,"nvalue":0,"svalue": "Waiting"}; break
case 1 : msg1.payload = {"command":"udevice","idx":486,"nvalue":1,"svalue": "Normal"}; break case 2 : msg1.payload = {"command":"udevice","idx":486,"nvalue":2,"svalue": "Fault"}; break
} return [[msg1]]; `
If you have node-red running I would like to point out a great new node.
Get's far more data than currently from the plugin.
I would use Node-Red.
Hi Is it possible to get the pvstatus from growatt in the script for switching the inverter status.
So when system is online status is On (1) when system is offline status is Waiting or Off (0) when the is an error in the system status is Faulty (2)
Now the inverter status does nothing, its 24/7 On
Im running node-red on a seperate RPi there im using another simple growatt function and there i use for the status this.
` var msg1 = {}; // pvstatus, Inverter run state switch (msg.payload.values.pvstatus) { case 0 : msg1.payload = {"command":"udevice","idx":486,"nvalue":0,"svalue": "Waiting"}; break
} return [[msg1]]; `