markruys / gw2pvo

GoodWe to PVOutput
MIT License
45 stars 29 forks source link

Add State Of Charge to get Battery Info #60

Open dev-rowbot opened 2 years ago

dev-rowbot commented 2 years ago

The GoodWe API returns a soc field which provides information on the battery State of Charge.

{
  "data": {
    "soc": {
      "power": 62,
      "status": 1
    }
  }
}

You can also get this data from the Inverter section

{
  "data": {
    "inverter": [
      {
        "sn": "xxxxxxxxxxx",
        "discharge_current_limit_bms": "100A",
        "charge_current_limit_bms": "100A",
        "soc": "62%"
      }
    ]
  }
}

It would be useful to have this data returned as well. The soc value is just a percentage.

elRadix commented 2 years ago

any succes pushing that to pvoutput ?