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

Powerwall function get_battery_data not working #152

Open
gmcluhan opened this issue Nov 13, 2023 · 1 comment
Open

Powerwall function get_battery_data not working #152

gmcluhan opened this issue Nov 13, 2023 · 1 comment

Comments

@gmcluhan
Copy link

As of October 5, 2023 it appears the get_battery_data function isn't working anymore.

Traceback (most recent call last):
  File "/Users/blah/Documents/powerwall_health.py", line 42, in <module>
    battery_info = powerwall[0].get_battery_data()
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/teslapy/__init__.py", line 793, in get_battery_data
    self.update(self.api('BATTERY_DATA')['response'])
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/teslapy/__init__.py", line 713, in api
    return self.tesla.api(name, pathvars, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/teslapy/__init__.py", line 369, in api
    return self.request(endpoint['TYPE'], uri, serialize,
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/teslapy/__init__.py", line 158, in request
    response.raise_for_status()  # Raise HTTPError, if one occurred
  File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://owner-api.teslamotors.com/api/1/powerwalls/STE20220125-00244
@gmcluhan
Copy link
Author

gmcluhan commented Nov 13, 2023

I see that function has been removed from the code base. It would be good to update the documentation that this has been removed. Along with that documentation it would be great to see how to use get_site_info() and get_site_data() as I think those are the replacements.

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

1 participant