sincze / Domoticz-Growatt-Webserver-Plugin

16 stars 10 forks source link

Change inverter status. #21

Closed fgerrits closed 1 year ago

fgerrits commented 2 years 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]]; `

sincze commented 1 year ago

If you have node-red running I would like to point out a great new node.

image

Get's far more data than currently from the plugin.

sincze commented 1 year ago

I would use Node-Red.