-
Notifications
You must be signed in to change notification settings - Fork 2
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
Variant for ESP32 / espHome #35
Comments
I brought this topic earlier today in a chat with @iainbullock & @raphmur The current reality; to send a command to the car the add-on currently uses the official from Tesla tesla-control app. tesla-control is designed to send commands to the car over Internet (Tesla Fleet API) or over BLE with the use of a hardware Bluetooth dongle. ESPHome Bluetooth Proxy integrates magically into Home Assistant but tesla-control being written in Go makes things harder as there's no HA Go library available. We can leave this Issue open for now, hoping others will chip in some ideas to make this happen. |
I always mistakenly thought that the proxy would present itself to the machine as a Bluetooth dongle, making it easy to implement. In the meantime I will just dust off a raspberry pi I have laying around and try it as a standalone. |
Tested the proxy --> Useless. However there are theses repos that could be interesting to robustify and / or port on esp. |
Another promising project to move to ESP32 is TinyGo. It doesn't support Wifi/BLE yet but there's a draft PR. https://tinygo.org/ tesla-control could probably be compiled (with few changes?) but until TinyGo merges 650, it's difficult to know. |
This is very promising: https://github.com/robin-thoni/tesla-ble-esphome |
This ESP implementation is based on the reversed engineered protocol of the Android app - done by Alex L few years back. It still works in parallel with the new official tesla-command BLE protocol but the two protocols are different. |
Thanks for sharing this @BogdanDIA, if I understand well, this project (based on Alex L's work) is only implementing the VCSEC protocol, which is only part of what the BLE communication with the Tesla covers? |
@raphmur - is is not only for the covers. The protocol is used to authenticate with the CAR (VCSEC part of it) for opening and driving, it is used for sending commands from keyfob to the car, from phone to the car when no internet exists, from the TPMS sensors to send their data. During revers engineering times around 2019 the "SEC" in VCSEC what thought to mean Secondary but actually it means Security. It worth reading through what the guys at trifinite.org did: BTW, one of the latest changes in the FleetAPI introduced a new option for tesla-control: body-controller-state. First command to return status (not useful for charging though), yay |
It appears this project https://github.com/yoziru/esphome-tesla-ble is working well already. |
It is ok to close this. Although the implementation in https://github.com/yoziru/esphome-tesla-ble needs to be updated every time large changes are added by Tesla in vehicle-control impl. I have another implementation, will write in the tesla-local-control. |
Not sure if this would even be possible but one can only ask.
As the title implies, would it be possible to use this integration together with a Bluetooth proxy from esphome?
The text was updated successfully, but these errors were encountered: