Closed dh99999 closed 1 year ago
Hey @dh99999, I think the endpoints would be a great addition! I will take a look at the API endpoints and let you know, as soon as it is implemented.
That would be great - thanks!
Happy to help test!
Hi @dh99999, it is now implemented in #51. Is it possible that you test it if everything works as expected?
Hi @jrester,
Looks pretty good to me - a couple of comments:
1) Would it be possible to have MeterDetails() inherit from Meter() so that a client can just call get_meter_site() in order get both the aggregated data and the detail data in the one call to the powerwall?
The response to the meters/site call contains the aggregate data as well.
2) Consider adding MeterDetails to tesla_powerall/init.py so it can be used externally.
3) (Just an FYI) The response from my powerwall for meters/solar looks to have a bug - it will always leave out one of real_power_a, real_power_b or real_power_c.
It is not consistent, but makes testing a pain!
Not 100% sure about this, but their also might be an issue in powerwall.py
def get_meter_site(self): meter_response = self._api.get_meters_site() if meter_response is None or len(meter_response) == 0: raise ApiError("The powerwall returned no values for the site meter")
Pylance is reporting that ApiError is not defined.
Thanks for your great input! I will continue to work on it and keep you updated!
@dh99999 After a bit of delay I finally finished this feature and it is now available in version v0.4.0
Looks good to me!
Thanks!
Hi,
Just wondering if it would be possible to add additional detail to the meter statistics?
The values I am particularly interested in are the per-phase power and voltage values for the site and solar meters from the https://X.X.X.X/api/meters/site and https://X.X.X.X/api/meters/solar APIs respectively:
Sample from site meter:
Happy to test/assist if I can.