timdorr / tesla-api

🚘 A Ruby gem and unofficial documentation of Tesla's JSON API for the Model S, 3, X, and Y.
https://tesla-api.timdorr.com/
MIT License
1.98k stars 532 forks source link

No longer getting results from calendar_history service where kind=energy #776

Open tomSny opened 2 months ago

tomSny commented 2 months ago

Since ~4/8/2024 any request to calendar_history with a kind=energy does not return expected results. kind=power is working correctly. Is anyone else experiencing this too?

Ex: Request:

https://owner-api.teslamotors.com/api/1/energy_sites/{{SITEID}}/calendar_history?kind=energy&period=day&end_date=....

Response: {"response": {"serial_number": "","period": "day"}}

Wilkware commented 2 months ago

the result set has been changed! You now get the values for all time intervals (15m) individually as a field. In addition, there are now also the fields:

I have rebuilt my query and added up all field values!

tomSny commented 1 month ago

Thank you for the reply, Wilkware. seem my main issue was I needed a new refresh token. (seems odd, since other services worked with that token) afterwards I was able to get the data in the new format you described.