Replies: 16 comments 68 replies
-
You can already use the |
Beta Was this translation helpful? Give feedback.
-
I have a working solution. I have created an HttpProxy that forwards HTTP requests via BLE to the vehicle. (You can find it here: https://github.com/wimaha/TeslaBleHttpProxy.
I have a question about this: Sometimes (rarely) bluetooth forwarding fails. How can I inform the custom charger about this? @andig Also the HttpBleProxy uses the same rest api like Tesla. So it could be possible to add this to the twc3 charger. |
Beta Was this translation helpful? Give feedback.
-
Hey all, I got my very noob version working tonight (kind of) running EVCC locally on my raspberry pi zero 2 w.
Couple of issues, this doesnt work "{{if .enable}}charging-start{{else}}charging-stop{{end}}" it always goes to else, any idea what I am doing wrong there? I swapped the variables around just for testing to get it to start charging. Also I get this error below alot
No idea what it mean, it retries a couple of times and then works so not sure. Manually inputting the commands into the shell I never get the error. EDIT: My plan is to put the commands into scripts that have a certain number of retries to try and prevent this error. Then once the scripts are working I will create a websever on the raspberry pi zero can call webhooks from my HA evcc to run the scripts. There is probably a way better way of doing this but this is within my capabilities. |
Beta Was this translation helpful? Give feedback.
-
Here my BLE solution for now:
wake.sh
current.sh
evcc.yaml (I'm using TeslaLogger to get status and SoC and so on)
feel free to do it better! :) P.S. based on this examples: |
Beta Was this translation helpful? Give feedback.
-
I have done something similar but i built in error retries and also my evcc never tries to wake the vehicle because I think it doesn't know its asleep. So I built the wake command into enable and charge. It works but I get a ton of ble errors, not sure if it is my raspberry or distance (less than 5m). evcc.yaml
enable.sh
charge.sh
wake.sh (not used?)
|
Beta Was this translation helpful? Give feedback.
-
@wimaha since you‘re also using Go: wanna try adding a tesla-ble native vehicle implementation? |
Beta Was this translation helpful? Give feedback.
-
So is an official Tesla Ble feature coming?. This would be pretty good actually. I can put my Pi with the charger and be done with this troublesome fleet api |
Beta Was this translation helpful? Give feedback.
-
It would be great to indicate in the documentation that there is currently an issue for Tesla car if you cannot control your charger... it would also be interesting to know what direction evcc will take to improve the common scenario: Tesla Charger + Tesla Car. Right now my evcc instance run as an add-on in HA, but if I need a Pi anyway for the BLE communication, then I could run a dedicated Pi for that. I made the installation this week, saw it working for a few hours then the issue started. I would have noticed if that was somehow hinted in the documentation, even if this is a breaking news. PS: The fact that this ticket is in English and all the work done is greatly appreciated. I invested in the hardware Shelly + P1 reader for the initial setup, now I might just need to add a Pi in the vicinity of the charging port. If anybody write a tutorial or more end-user oriented documentation... please indicate it, but the technical work seems to be done, I just need to experiment. |
Beta Was this translation helpful? Give feedback.
-
Just as a feedback, I can say, that I have the setup with 2x TWC V1 and 2 Tesla running. vehicles:
site: chargers:
loadpoints:
|
Beta Was this translation helpful? Give feedback.
-
I successfully managed to control via BLE my Tesla plugged on my Tesla Wall Connector 3, using a remote raspberry pi. It works either with TeslaBleHttpProxy or with tesla_ble_mqtt_docker. However, I cannot find a way to avoid using a « custom » vehicle in evcc, which requires installing a data logger like TeslaMate in order to feed the soc, range and status. I do not need to gather and store all these data, so this is bothering me (and using uselessly resources). Would it be possible to allow combining the official tesla template using the FleetAPI for all « read » operations and custom (mqtt or http) for all « write » operation (chargeenable, maxcurrent, wakeup) ? Is there another possible setup without Teslamate/TeslaLogger ? Note that I already tried to use a customer charger instead of the official twc3 template, but things turn bad when my other car (a Fiat 500e) is charging and not my tesla. For reference, here is my current evcc config, using tesla_ble_mqtt_docker.
|
Beta Was this translation helpful? Give feedback.
-
Today I'm getting a smart charger installed instead of the TWC3 :) I'm a bit over the Tesla API |
Beta Was this translation helpful? Give feedback.
-
Just discovered evcc. |
Beta Was this translation helpful? Give feedback.
-
Halo an alle hier. Manchmal komme ich mir vor als wäre ich in einem falschen Film. Diese BLE-Installation habe ich nun den ganzen Nachmittag versucht auf zwei verschiedenen Raspberry's zu installieren. Ich komme bis zur Zeile cd vehicle-command Danach wirft mir Ich bin bestimmt kein Anfänger aber langsam zweifle ich doch daran. Ich habe Perplexity AI befragt. Rauf und runter. Keine Chance. Reboot u.s.w ebenfalls. Any hints? |
Beta Was this translation helpful? Give feedback.
-
So ich taste mich langsam heran. Habe jetzt
Damit habe ich schon einige Angaben. Diese Shell Befehle funktionieren auf der Konsole unter meinem user genau so wie sie hier stehen -allerdings wirft mir EVCC:
raus. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I am lost and I feel I need some advise... I made many steps, but I lost track of the (moving?) target:
My evcc config: So now I wonder how do I stop using the cloud API, and what of all the tools I have accumulated I should use to have a working and stable solution. HELP. ;-) |
Beta Was this translation helpful? Give feedback.
-
Maybe consider testing the the :tesla docker image with this PR #14616. |
Beta Was this translation helpful? Give feedback.
-
Since Tesla introduced severe limits for their cloud API calls, it's not really usable for solar charging anymore. The same API can however be used over BLE (Bluetooth Low Energy). I have tried it successfully with a Raspberry Pi Zero W. Other Raspberry Pi models with wireless connectivity or any generic Linux device with a BLE chip or USB dongle should work as well.
This are the installation steps I took on a fresh Raspberry Pi OS lite install:
After initiating the last command you have to tap the key card in the center console (no message will be shown on the Tesla prior to tapping the card) and confirm adding the key.
Afterward you can run commands locally. For example:
tesla-control -ble -vin YOUR_VIN -key-file private.pem charging-start
Now we just need to integrate it into EVCC. Sadly I'm no developer. I could probably cobble something together, but it probably wouldn't be upstreameable.
Beta Was this translation helpful? Give feedback.
All reactions