remco-k / domoticz-goodwe-modbusudp-plugin

A Domoticz plugin that connects to GoodWe inverters over LAN or WLAN via UDP that supports Modbus.
4 stars 1 forks source link

Set "Current" to 0 when inverter is off #6

Open FreakNL opened 8 months ago

FreakNL commented 8 months ago

Last night around 18:00 my inverter turned off. After that, the last recorded value (96watt) was the value which stayed on the "Current" IDX until this morning, when the inverter turned on again. Only then, the value went back to 0 watt ...

If the inverter is not reachable, please have the value set to 0 :)

remco-k commented 8 months ago

Hi, thank you for your message.

The plugin resets power values to 0 if the inverter goes to "Wait mode" state. This is the state prior to inverter shutdown and becoming unreachable. Which I believe every of the supported GoodWe inverters do.

Doing the same when the inverter is unreachable poses a new problem under other circumstances: Many of these GoodWe inverters have quite bad Wifi interfaces with bad/unstable connectivity (its the manufacturers fault) and therefore it is to be expected that the connection fails every now and then, even for longer periods of time. Resetting power values to 0 at that point, would cause that instability to be very visible in a very negative way in Domoticz. So therefore I choose to not reset power values to 0 when the connection has been lost, instead keeping the latest received values.

FreakNL commented 8 months ago

Clear.

Don't know why it did not work yesterday.. Because the wait mode should be at least 60 seconds (right?) which gives plenty of time to update the sensor to 0 in domoticz.. For some reason the sensor was not updated to 0 and showed 94watt the entire evening and night up until the inverter got back online again this morning.....

Today it DID work, sensor is on 0 now...

Will monitor the next couple of days...

FreakNL commented 8 months ago

Yesterday evening the plugin got "stuck" again on 98watt.. Been that way for the whole night again..

Also, I got negative values I cannot explain Capture