AdyRock / ady.solarman

GNU General Public License v3.0
0 stars 1 forks source link

Solarman solar today total reporting too low #12

Open Svenno1988 opened 1 year ago

Svenno1988 commented 1 year ago

When using the variable # Solar Today Total for solarman it seems to be off by about 20% (too low). Variable returned 84.24 kwh but actual value in solarman smart app was 100.20 kwh. This is for a INVT BG20KTR-US inverter

AdyRock commented 1 year ago

The values are fetched directly form the API using the history. That interface is rate limited, so the app only pulls the data in once per hour. At one point I synchronised it to on the hour, but that meant all the Homeys fetch the data at the same time and triggered the rate limit :-). Now it is depends on when Homey starts, plus a random delay, to ensure the calls are interspaced as much as possible.