-
Notifications
You must be signed in to change notification settings - Fork 62
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
OPERATION no longer listed under BATTERY_DATA #410
Comments
PRs are welcome. |
Thanks Alan. I’m new to this and I’d often wondered how to create a PR. I’ve forked and edited, but have no idea how to test this with tesla_custom using my new fork or by just manually editing the code in HA (teslajsonpy code does not seem to exist in the custom_components folder). Any pointers would be most welcome. |
If you install teslajsonpy locally into custom_components it will take precedence over the system copy. You can also modify it in the system location if you can figure out where your system is hosting the library. |
This PR has become more urgent as the BATTERY endpoints have stopped functioning but the SITE_CONFIG endpoint is still OK.
|
If someone can help me get up to speed with getting |
You can use the local version by putting teslajsonpy folder under /config instead of /config/custom_components. |
Any chance you could share the Teslajson file? Happy to have a play to try and get it working? |
Will try this. Thanks. |
My branch is here for those that would like to help |
The latest is not working for me but I found this which has the latest API and response. It's a little too much for me to handle. |
My changes in that repo were back in June and in response to a different api change, much more minor just involving one number variable @gkwok1 if you give me access to your repo, I’ll add this change (and the associated logging code change as _battery_data log is no longer working). |
@gkwok1 appears to have fixed the issue. |
I have already included your change in my PR. |
Yes, reviewing it now… |
Thanks @jaymunro , this Issue and your PR were the early indicators that the upstream API was changing, unfortunately the implications were not fully understood and once the upstream API was finally changed we had this mad scramble for 24 hours to get back to a working condition. Thanks @gkwok1 for turning something around very quickly which is now working and can be merged back into the HA eco system. The joy of working with an undocumented API :-) |
Yes, a pity I didn’t have the knowledge to put the teslajsonpy repo in the right place for testing. |
Closing as resolved by alandtse/tesla#724 |
In HA the operation mode is no longer populated on startup and is left empty. See comment in #618 of alandtse/tesla#618 (comment)
It seems this can be resolved by retrieving the data from the SITE_CONFIG endpoint under the
default_real_mode
property.Details of my API responses are at #342 (comment)
energy.py, line 175-178:
Change to:
The text was updated successfully, but these errors were encountered: