-
-
Notifications
You must be signed in to change notification settings - Fork 19
Bug fixes, missing commands and endpoints #95
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
base: main
Are you sure you want to change the base?
Conversation
Require POST parameter and have a wait flag
…ne options and usage details
|
Thank you for all if this! I will Review when I‘m back Home. |
…ing routes and handlers accordingly
|
Gents, is this PR still going to be implemented/merged, or has the plan changed and it's no longer relevant? |
|
I'm now providing builds for this PR, for both versions of the bluetooth library. Using raw hci communication or bluez: add the -bluez suffix to any tag name. |
no matching manifest for linux/arm/v6 in the manifest list entries |
|
Arm v6 has been largely end of life/support for 3 years now... What devices are you using? |
rpi zero1 uses armv6. it is ultra lightweight, cheap and electricity saving. ;-) |
|
I added it :^) thanks for that info! |
running here. I started bluetooth service (which was with previous implementation not necessary) and is running now. in my docker-compose: followed by compose up -d with fresh pulling. |
|
Yes, I noticed this. I'm working on a fix. In the meantime you can use tag 3, 3.0 or 3.0.1 instead. Sorry :/ |
|
@AloisKlingler using latest tag is fixed. Thanks for the heads up! @balgerion Support with EVCC is mixed even with wimaha version. You can use it for vehicle, but not for charger (see here evcc-io/evcc#18194). And it will constantly wake the car. Just the way evcc + this proxy interract. TeslaBle2Mqtt is made with this proxy in mind, so it can be smarter about waking the car. Maybe you can look in to using MQTT to connect to evcc instead. (If you do please open a issue on TB2M repository and I can add it as an example) It's not compatible as a api urls changed/moved to be the same as tesla fleet api, so you would need to modify the existing tesla-ble template - fairly easy to do so. |
|
@Lenart12 I've been using TeslaBleHttpProx with https://github.com/Haveacry/twc3teslamate as a "charger" in EVCC for the past 5 months without any issues. It doesn't wake my car – it just works. |
May I ask, what are the differences / advantages of using bluez over hci? |
|
And another question: Will I have to change evcc config because of the API changes you made? |
|
@bicaluv Did you have time to modify BLE template or create a custom MQTT charger in EVCC? I can look into it tomorrow, but if you have a working solution, I’d gladly just copy it. |
|
@balgerion : Which BLE driver do you use? I'm using the hci implementation and do not see this much of calls. Which is common to our situation where 4 people have access to the car using the iPhones and where all 4 may be around the driveway, where the car is parked. |
|
Using blueZ or hci I get some errors: BT devices is only 50 cm from car and the error does only occur every now and then. |
|
In my case, HCI is spamming commands. The Bluetooth device is 5 meters away from the car, but this hasn’t been an issue with the Wimha version — it’s been rock-solid for 5 months of daily use. BlueZ performs better overall, but it’s not stable and throws some strange errors. |
|
@balgerion can you send me more logs about this behaviour and how to recreate it. You can make an issue on my fork. |
Scan for vehicle BLE advertisements to check for vehicle presence and abort quickly if none are detected, using my contributions to vehicle-command repository from #95



This pull request includes several updates to the
TeslaBleHttpProxyproject. It changes quite a bit of things and is fairly large. The most important changes are summarized below:Code Refactoring:
/api/proxy/1/vehicles/VIN/connection_status. Closes Add BT information #78internal/api/handlers/tesla.goto make sure all endpoints use operated connection command processing logic, includingbody-controller-state.body-controller-stateendpoint to/api/proxy/1/vehicles/VIN/body_controller_stateto be consistent with naming scheme. Movedwake_upto/api/1/vehicles/VIN/wake_upto be consistent with Tesla API.vehicle_dataand added missing categories. Added manual json formatting forbody-controller-state, fixes vehicleLockState missing for unlocked vehicle? #87 .internal/api/handlers/tesla.go.wake_upcommand to wait for car to wake up withwait=trueparameterX-Ingress-Pathfor running this app behind a reverse proxy.Configuration Enhancements:
scanTimeoutconfiguration parameter inconfig/config.goto control the scan duration for BLE beacons.cacheMaxAgeenvironment variable default value in theREADME.mdto 5 seconds.keysparameter to allow reading keys from a different directory.dashboardBaseUrlandapiBaseUrlfor configuring paths when running behind a reverse proxy.Dependency Updates:
github.com/teslamotors/vehicle-commanddependency ingo.modto a newer version.go.mod, sincego_bleConnectFixis now not neccesary anymore :^)Documentation Updates:
README.mdto include a reference toTeslaBle2Mqttand added a comprehensive list of supported endpoints for vehicle data.waitparameter.README.md.