-
Notifications
You must be signed in to change notification settings - Fork 84
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
410 error on get_battery_data #145
Comments
For me as well. It seems that the teslamotors api is no longer available under the given URL. |
Same here, my script using get_battery_data failed last night. Looks like the endpoints starting However I have had success getting the Powerwall data I want by swapping to use
|
I've been fetching Tesla Powerwall power timeseries data, which stopped working via the |
I am having the same issue but for setting operation mode - any workaround for this?
|
@mquilling0 it looks like this works: battery.api("OPERATION_MODE", default_real_mode="self_consumption") There seem to be two endpoints for changing operation mode. |
Depending on what you want to achieve, you might be able to realise the desired functionality by keeping the operation mode unchanged and just manipulating the backup reserve percentage. |
thank you @j4mie that worked! |
@JuhaSeppa i have a very specific need that neither mode can achieve alone export from sun up to 9am i can achieve this exact profile and rarely use any grid energy + maximize my energy export credit. our yearly bill is negative. using time based control it does all kinds of dumb stuff and pulls a few kW/day from the grid. |
I presume at some point TeslaPy will be updated to reflect the change that Tesla have implemented. |
still gives me the 410 error unfortunately.
|
I don't own a powerwall, so I cannot test it, but commit 50bdbfb should fix this, based on @DaveTBlake's code. |
@tdorssers tested and works, thx! |
Thank you so much, I've also tested it and got it working. |
@tdorssers Thank you! This does indeed fix the issue. The schema changed a bit for Test: # 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
# Test
python3 set-reserve.py --read
READ: Current Battery Reserve Setting: 20% for 2 Powerwalls |
@mquilling0 doesn't it just!!!
Thanks @tdorssers , sorry I didn't get my act together and raise a PR just left code suggestions. I'm very grateful for everything you have done making the API avialable, my Powerwall would be unmanageable without it. |
Get battery data Started failing last night with the following error -
requests.exceptions.HTTPError: 410 Client Error: https://powergate.prd.sn.tesla.services:443/api/powerwalls/idremoved/fullstatus => Gone for url: https://owner-api.teslamotors.com/api/1/powerwalls/myidremoved
The text was updated successfully, but these errors were encountered: