@gdgib i did a little investigation into the solar production numbers. i suspect there might be another endpoint that we don’t know about yet, which probably makes a little more sense, but what i’ve found is that the response from the /api/v1/panel endpoint does have the solar production numbers. the total is split between each pole on the 2 pole breaker. the reason i suspect there’s another endpoint is because the solar production figures are omitted from the /api/v1/circuits endpoint and there’s information in the span app about my inverters.
now, i’m not sure how batteries would factor into this - i would suspect there’s yet another endpoint, or this information would be included in the solar endpoint. i say this because i believe different batteries are integrated in different ways. for solaredge, the battery gets dc coupled to the inverter, and then there’s a separate “backup interface” (BUI) unit that sits between the inverters and the grid. they don’t mention this on the span website - only that you need an energyhub inverter, but you also need the BUI.
here are the footnotes from the battery info on the span site.
1 SPAN Remote Meter Kit required for Enphase IQ compatibility.
2 SolarEdge EnergyHub inverter required for LG RESU and SolarEdge Energy Bank compatibility.
All support for SPAN Panel and SPAN Remote Meter Kit compatibility is provided by SPAN.
i believe the tesla powerwall is an ac coupled battery, so that likely hooks up directly to the panel and charges from the panel.
exmaple:
i have an 80A 2 pole breaker that my 2 solar inverters feed into. it’s at position 29/31 (bottom left 2). i’ve checked the debug logs against the numbers reported int he iOS app and they are spot on. if you add instantPowerW from 29 and 31, that equals the total production at that time. this checks out with the other 2 pole breakers i have. the total consumption is the sum of the two.
{
"id": 29,
"relayState": "CLOSED",
"instantPowerW": 5400.2861328125,
"importedActiveEnergyWh": 308095.5,
"exportedActiveEnergyWh": 2065.29150390625
},
{
"id": 30,
"relayState": "CLOSED",
"instantPowerW": -0.18362312018871307,
"importedActiveEnergyWh": 36.09699249267578,
"exportedActiveEnergyWh": 39.8343505859375
},
{
"id": 31,
"relayState": "CLOSED",
"instantPowerW": 5406.00390625,
"importedActiveEnergyWh": 310859.125,
"exportedActiveEnergyWh": 1798.598388671875
},
{
"id": 32,
"relayState": "CLOSED",
"instantPowerW": 0.23783566057682037,
"importedActiveEnergyWh": 0.05833250656723976,
"exportedActiveEnergyWh": 104.77339935302734
}
side note: i’m going to explore ways to connect the span panel to my inverters via modbus rs485 so that i don’t need to purchase and install the backup interface from solaredge. each inverter has a production meter in it but it doesn’t have any knowledge of power draw from the grid since it’s only hooked up to the solar panels and then feeds out to the span panel. there are no communication lines to the panel.
also, ugh, i would really like ssh access to this panel.