Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tomSny opened this issue Apr 11, 2024 · 2 comments
Open

Comments

@tomSny
Copy link

tomSny commented Apr 11, 2024

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
Copy link

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:

  • total_home_usage
  • total_solar_generation
  • total_grid_energy_exported
  • total_battery_charge
  • total_battery_discharge
    plus the global field 'raw_timestamp'

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

@tomSny
Copy link
Author

tomSny commented May 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants