-
-
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
failed to connect to vehicle (A): context deadline exceeded #98
Comments
How'd you setup the container/software? Where did you get up to? Did you setup the virtual key thing? |
Followed instructions outlined here exactly - https://github.com/wimaha/TeslaBleHttpProxy/blob/main/docs/installation.md Software is running in docker. Can access dashboard page and created the virtual keys without issue. Error is received when attempting to send the virtual key to the vehicle. |
Ah yeah, I've got a rpi5 with it running in docker myself, same setup, and it's working, so just trying to find what's different with your setup. Can you paste here the docker run command, or docker compose config? |
Here is the docker compose config:
Running the below OS version loaded using the official Raspberry Pi imager. Raspberry Pi OS with desktop |
I tried to send the keys to the vehicle again while I had the Pi running and this time it worked! Not sure what changed... I have two vehicles (both Teslas) so setup the key in both vehicles. The first one I sent the keys to the vehicle when I was not in the car and it says they were sent, went to the garage and there was nothing on the display, but tapped the key card anyways. Locks show a "BLE" key now. Second one I sent the key while in the vehicle, tapped the card and it added "unknown key". Now when setting up in EVCC I'm receiving the below errors when trying to retrieve vehicle SOC or sending charging commands. Effectively the same errors as in the subject post. Proxy is at 192.168.1.120 and running on port 8080.
Here is my EVCC.yaml:
|
Still testing, but believe I may have solved it. The issue stems around the queries failing to resolve due to the DNS being used. I am not using my own router and am using my AT&T Fiber combined modem/router device which uses AT&T's DNS to resolve queries. It was odd to me that both the raspberry pi 5 running TeslaBleHttpProxy and my unraid server running EVCC were both returning similar errors. I changed both my unraid server and my pi to use Google & CloudFlare DNS servers and the issue seems to be resolved. EDIT: My one vehicle that had the BLE key sent from TeslaBleHttpProxy to the vehicle successfully worked for several hours without issue with EVCC. I tried to deploy the key to my wife's vehicle again and I'm back in the same loop of TeslaBleHttpProxy providing the context deadline exceeded error when trying to send the key to the vehicle. I have tried from multiple computers/devices using several different DNS servers and result is the same. Also tried wired and wireless on the pi and relocating the pi to multiple different locations (including 2 feet from the vehicle).
|
Given you're talking to the IP address of the raspberry pi, DNS shouldn't even be in the picture here, and nothing requires internet/hostname resolution either, unless I missed something above. Try to post things inside code block (with 3x backticks
My setup is similar:
Along with a bog standard Raspberry Pi 4 running in the garage alongside the car. Key transmission 'just worked', sometimes I'll see errors around I'm not using EVCC, just my own Home Assistant automations (https://github.com/michael-robbins/ha-snippets/blob/main/README.md) which seem to be working. I'd verify everything 'locally' by running
Just to verify |
My current issue is the same one as in the original post. I can't get TeslaBleHttpProxy to send the keys to my vehicle (errors provided above). Also, corrected formatting of above posts. |
Hello,
Hoping someone can point me towards a solution. Have a new Raspberry Pi 5 located immediately next to the vehicle (~3 feet away), but continue to receive the error "failed to connect to vehicle (A): context deadline exceeded". Followed documentation exactly as outlined. Any support is appreciated.
I went through possible issues and cannot identify what I'm doing wrong, list of checks below.
Used VNC Viewer to access Raspberry Pi GUI to ensure bluetooth is enabled.
Ensured vehicle is awake (door open, screen on)
No errors in logs
Multiple positions of Raspberry Pi
Logs
The text was updated successfully, but these errors were encountered: