SolarEdge (core integration) - add environmental benefits information :)

It would be great, if the SolarEdge (API) Integration included in the core could also provide the information delivered by the “Environmental Benefit” API-Request.

I’ve already tried to add this to the sensor, but yet, was not able to implement this on my own… :frowning:

here’s an example from the SolarEdge Documentation:

Example Request:

https://monitoringapi.solaredge.com/site/2/envBenefits?systemUnits=Imperial&api_key
=L4QLVQ1LOKCQX2193VSEICXW61NP6B1O
Method: GET
Accepted formats: JSON

Example Response:

# For Imperial:
{
  "envBenefits":
  {
    "gasEmissionSaved":
    {
      "units": "Lb",
      "co2": 1486.63,
      "so2": 1926.55,
      "nox": 614.37
    },
    "treesPlanted": 2.2555082200000003,
    "lightBulbs": 5217.4604
  }
}
---------------
# For Metrics:
{
  "envBenefits":
  {
    "gasEmissionSaved":
    {
      "units": "Kg",
      "co2": 674.93066,
      "so2": 874.65515,
      "nox": 278.92545
     },
    "treesPlanted": 2.2555082200000003,
    "lightBulbs": 5217.4604
  }
}