This inverter has a WiFi connection and opens ports 80 (password protected) and 502 (modbus). It’s possible to read the modbus registers. There’s a handy script that’s done all the hard work. This can import into Influx, as shown below on the left.
BatteryPower is always positive. Bugger – how to determine if it’s charging? There is a “running_state” which I’ll guessed some values for, based on observations.
0 for export
Perhaps this is a bitmask. No – maybe, but can’t see any patterns for this.
Failed, giving up.
|0-29||grid_import_or_export is 0 (exporting)|
|11||battery has powerflowing||000001011|
|25||exporting to grid|
battery doing nothing (charged)
|40 battery flat||000101000|