{"id":29645019,"url":"https://github.com/virtualzone/tesla-ble","last_synced_at":"2025-07-22T01:11:07.804Z","repository":{"id":244123588,"uuid":"814333613","full_name":"virtualzone/tesla-ble","owner":"virtualzone","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-02T12:13:14.000Z","size":76,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T07:27:43.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/virtualzone.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-12T19:59:23.000Z","updated_at":"2025-06-02T12:13:17.000Z","dependencies_parsed_at":"2024-06-13T02:13:33.170Z","dependency_job_id":"005d2671-5765-4650-b0e9-8c5a803e4bbd","html_url":"https://github.com/virtualzone/tesla-ble","commit_stats":null,"previous_names":["virtualzone/tesla-ble"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/virtualzone/tesla-ble","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualzone%2Ftesla-ble","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualzone%2Ftesla-ble/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualzone%2Ftesla-ble/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualzone%2Ftesla-ble/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/virtualzone","download_url":"https://codeload.github.com/virtualzone/tesla-ble/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/virtualzone%2Ftesla-ble/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266405791,"owners_count":23923612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-22T01:11:06.692Z","updated_at":"2025-07-22T01:11:07.779Z","avatar_url":"https://github.com/virtualzone.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tesla BLE\nA simple HTTP server sending commands controlling your Tesla's charging process via BLE.\n\n## Set up\n1. Generate private key:\n\n   ```openssl ecparam -genkey -name prime256v1 -noout \u003e private.pem```\n1. Generate public key:\n\n   ```openssl ec -in private.pem -pubout \u003e public.pem```\n1. Start container using Docker Compose:\n\n   ```yaml\n   services:\n     tesla-ble:\n        image: ghcr.io/virtualzone/tesla-ble:latest\n        container_name: tesla-ble\n        restart: always\n        volumes:\n           - './private.pem:/app/private.pem'\n           - './public.pem:/app/public.pem'\n           - '/var/run/dbus:/var/run/dbus'\n           - '/run/dbus:/run/dbus:ro'\n        privileged: true\n        network_mode: host\n        cap_add:\n           - NET_ADMIN\n           - SYS_ADMIN\n    ```\n1. Get into your car, have your key card ready, call the following endpoint to send a BLE pairing request to your Tesla and follow the instructions on screen (replace VEHICLE_VIN with your vehicle's VIN):\n\n   ```\n   curl -X POST localhost:8080/api/1/vehicles/VEHICLE_VIN/command/pair\n   ```\n1. After successful paring, you can use the endpoints listed below.\n\n## Available endpoints\n### Send BLE paring request\n   ```\n   curl -X POST \\\n   http://localhost:8080/api/1/vehicles/VEHICLE_VIN/command/pair\n   ```\n\n### Wake vehicle\n   ```\n   curl -X POST \\\n   http://localhost:8080/api/1/vehicles/VEHICLE_VIN/command/wakeup\n   ```\n\n### Set charging amps\n   ```\n   curl -X POST \\\n   -d '{\"charging_amps\": \"16\"}' \\\n   http://localhost:8080/api/1/vehicles/VEHICLE_VIN/command/set_charging_amps\n   ```\n\n### Set charging limit\n   ```\n   curl -X POST \\\n   -d '{\"soc_limit\": \"70\"}' \\\n   http://localhost:8080/api/1/vehicles/VEHICLE_VIN/command/set_soc_limit\n   ```\n\n### Start charging\n   ```\n   curl -X POST \\\n   http://localhost:8080/api/1/vehicles/VEHICLE_VIN/command/charge_start\n   ```\n\n### Stop charging\n   ```\n   curl -X POST \\\n   http://localhost:8080/api/1/vehicles/VEHICLE_VIN/command/charge_stop\n   ```\n\n### Set charging state\n   ```\n   curl -X POST \\\n   -d '{\"enable\": \"true\"}' \\\n   http://localhost:8080/api/1/vehicles/VEHICLE_VIN/command/charge\n   ```\n\n## Using with evcc\n```yaml\nvehicles:\n  - name: tesla\n    type: custom\n    title: Model Y\n    capacity: 78\n    wakeup:\n      source: http\n      uri: \"http://localhost:8080/api/1/vehicles/VEHICLE_VIN/command/wake_up\"\n      method: POST\n      body: ''\n    maxcurrent:\n      source: http\n      uri: \"http://localhost:8080/api/1/vehicles/VEHICLE_VIN/command/set_charging_amps\"\n      method: POST\n      body: '{\"charging_amps\": \"{{.maxcurrent}}\"}'\n    chargeenable:\n      source: http\n      uri: \"http://localhost:8080/api/1/vehicles/VEHICLE_VIN/command/charge\"\n      method: POST\n      body: '{\"enable\": \"{{.chargeenable}}\"}'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirtualzone%2Ftesla-ble","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvirtualzone%2Ftesla-ble","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvirtualzone%2Ftesla-ble/lists"}