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

Tesla API Change - set-reserve.py and set-mode.py #50

Open
jasonacox opened this issue Oct 8, 2023 · 1 comment
Open

Tesla API Change - set-reserve.py and set-mode.py #50

jasonacox opened this issue Oct 8, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jasonacox
Copy link
Owner

jasonacox commented Oct 8, 2023

The tools set-reserve.py and set-mode.py started producing a 410 Client Error message:

requests.exceptions.HTTPError: 410 Client Error: https://powergate.prd.sn.tesla.services:443/api/powerwalls/xx/fullstatus => Gone for url: https://owner-api.teslamotors.com/api/1/powerwalls/xx

It appears that Tesla changed their API. These tools use TeslaPy and the issue was identified here: tdorssers/TeslaPy#145

Thanks to John Banks for raising this issue.

@jasonacox jasonacox added the bug Something isn't working label Oct 8, 2023
jasonacox added a commit that referenced this issue Oct 8, 2023
@jasonacox
Copy link
Owner Author

jasonacox commented Oct 8, 2023

A fix has been made to TeslaPy to address the API change but it was a breaking change for some of the battery functions for set-reserve.py. This has been updated.

# Pull latest TeslaPy - use latest until TeslaPy releases a new PyPI package
pip install -e git+https://github.com/tdorssers/TeslaPy.git#egg=teslapy

# Pull latest set-reserve.py 
wget https://raw.githubusercontent.com/jasonacox/pypowerwall/main/tools/set-reserve.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant