tesla-local-control / tesla_ble_mqtt_docker

Apache License 2.0
15 stars 5 forks source link

Tesla BLE MQTT Docker

Send commands via MQTT to a Tesla car using Bluetooth Low Energy (BLE). Buy Me A Coffee

Read before

The advantage of the MQTT setup is that it can run on HA system or any device separate to your HA server, e.g. Raspberry Pi located close to where you park your car

Prerequisite: Have an MQTT broker installed (in Home Assistant or other of your choice). If Home Assistant (HA) is already using the MQTT integration, then the various entities will be auto-discovered by HA.

Two options to run this tool

Standalone docker deployed on any machine you want

Good introduction: read this alongside Shankar's blog https://shankarkumarasamy.blog/2024/01/28/tesla-developer-api-guide-ble-key-pair-auth-and-vehicle-commands-part-3 You should already have Docker working on the host device, and you are familiar with basic Docker concepts and actions

Then:

Using as a Home Assistant addon

This repo is embedded in the Home Assistant tesla-local-control-addon Please follow this link, or add the repo to your home assistant addon repos

Open your Home Assistant instance and show the add add-on repository dialog with a specific repository URL pre-filled.

Credits

I got the idea for this from Raphael Murray as described here https://github.com/alandtse/tesla/issues/961#issuecomment-2150897886 The technical method was derived from Shankar Kumarasamy's blog https://shankarkumarasamy.blog/2024/01/28/tesla-developer-api-guide-ble-key-pair-auth-and-vehicle-commands-part-3