-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Have a look at exposing vehicle data over BLE #59
Comments
Specifically https://developer.tesla.com/docs/fleet-api/endpoints/vehicle-endpoints#vehicle-data seems possible and would be great. My main goal here is to somehow see what the |
Hi, I have uploaded version 1.3.0 on dev. You can try it. The Get-Request: |
This is great, a few small requests though! I can see it's returning a string for
It'd be great if I'd love to see something like:
Just thinking forward if I bring this into home assistant I'll need to 'double decode' the response which I'm not sure if that's even possible. Currently I've done this in order to get to the data:
|
We could use the top level |
Okey so I got it working in home assistant as-is anyway via: restful command:
Action in automation:
Template if condition or something:
jinja templating has a So up to you if you want to do any json (un)marshalling, otherwise the current branch is fine by me! well done with it, got my tesla fully charging via local-only integrations now, no tesla HTTP API or any oauth keys required! |
Thank you for your feedback! I appreciate it. I have updated the version on dev with the following changes:
|
Looking great! Love the flattening of
I'll start working it into my HA automation! Cheers 🍻 |
Nice! :-) |
I have made another update on dev. Know you will get the same structure like described here: https://developer.tesla.com/docs/fleet-api/endpoints/vehicle-endpoints#vehicle-data Example:
You will also get Maybe I release this version before I add the other data categories. |
Yeah sweet! Let me build and test again tonight, but I've got it all working nicely now anyway, and looks like you can test yourself too, so feel free to cut a version your happy with 🍻 I'll just update my side as we go! Interestingly enough, what other things are there? I'm guessing all of these? https://tesla-api.timdorr.com/vehicle/state |
Ohh sorry I got you now, within https://developer.tesla.com/docs/fleet-api/endpoints/vehicle-endpoints#vehicle-data you can click through to the Vehicle Data response payload and you're talking about the various top level dicts you can return. Yeah cool! I'm only really interested in the charge stuff for my use case, but depends, I could see the |
In the http api there are the following endpoints: 'charge_state', 'climate_state', 'closures_state', 'drive_state', 'gui_settings', 'location_data', 'charge_schedule_data', 'preconditioning_schedule_data', 'vehicle_config', 'vehicle_state', 'vehicle_data_combo' I don't know if any of these are accessible via ble. |
For the tesla-control BLE binary, these are the options accepted for the "state" parameter:
I see in PR338 that they are going to expose a new state parameter "location" soon. |
Thanks for this update. Upgraded successfully. I'm now back to where I was before the API "lockdown". The charge stats are a great enhancement. |
With the
And on the container logs I see:
So possibly just some minor validation/error returning would be epic (not like I'll experience this moving forward, but anyway) |
Will add a validation in next release. :-) |
Looks like as of 3 weeks ago exposing the vehicle data over BLE is possible now?
teslamotors/vehicle-command#330
The text was updated successfully, but these errors were encountered: