vloschiavo / powerwall2

Tesla Powerwall 2 - Local Gateway API documentation
Apache License 2.0
288 stars 51 forks source link

New JSON data structur with API request #42

Closed emeins closed 3 years ago

emeins commented 3 years ago

After I solved the OAuth v3 issue #41 for my environment I found some additional lines in the JSON data structure. When I call the /api/meters/aggregates the API delivers for all meters (site, solar, grid etc.) additionally: "last_phase_voltage_communication_time":"0001-01-01T00:00:00Z", "last_phase_power_communicationtime":"0001-01-01T00:00:00Z", "timeout":1500000000

I don't see any specific use of these data but my scripted data picker delivered wrong data so I had to adjust my scripts. This is not an issue of this api itself but more a hint when you are running in simular issues.

(PW firmware version 20.49.0)

Maybe the sample response in this project could be updated with this information.

emeins commented 3 years ago

I think this was more for information so happy to close this issue.