Skip to content

tesla-local-control/tesla_ble_mqtt_docker

Repository files navigation

Tesla BLE MQTT Docker

Update: it is now possible to read state as well as send commands using Bluetooth

Update 2 (dev branch): automatic polling of state is now possible, plus various other enhancements. Robustness has been improved since earlier v0.4.x-dev releases

Install the #dev image (v0.4.3b-dev) from Dockerhub. You can install from Github #iain-dev branch if you wish (though that changes and may break at any time). Instructions on #iain-dev branch README.md https://github.com/tesla-local-control/tesla_ble_mqtt_docker/blob/iain-dev/README.md Give me feedback by raising an Issue. Expect to find issues!

Send commands and read state via MQTT for a Tesla car using Bluetooth Low Energy (BLE). BLE bypasses the current Fleet API rate limitation and does not rely on the API. The MQTT setup can run on your Home Assistant (HA) system or any device separate from 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 is already using the MQTT integration, then the various entities will be auto-discovered by HA.

Note regarding polling / reading of state

The current release doesn't poll to read state. You (or more likely a HA automation) need to press the 'Force Data Update' button to read / update the state. This will wake the car and keep it awake as long as you keep requesting state updates (which can be problematic for battery usage). I will collect feedback and implement some polling capability in a future release

Two options to run this tool:

1 - Tesla BLE MQTT Docker

This is a Docker container which can be deployed on any machine you want. See INSTALL.md for instructions

2 - Tesla Local Control Add-on

This is a Home Assistant Add-On installed on your HA instance. Go to this associated repository: tesla-local-control-addon