Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.88 KB

README.md

File metadata and controls

43 lines (34 loc) · 1.88 KB

Tesla plugin for Domoticz

This plugin integrates the TeslaPy library into a Domoticz plugin.

This plugin is (at this moment) only tested with a 2023 Model Y. I assume other vehicles will work too. The library supports all Tesla products, but this plugin is (for now) only implementing vehicles.

Be aware that the polling of the car will cause the battery to be drained!

Current status:

Basic version working, retreives only several vhicle statusses. It is at this moment not possible to send commands to the vehicle, this is still work in progress......

Be aware that breaking changes may be introduced!!

Installation

Prerequisites

The following steps need to be taken before plugin installation (generic for any plugin)

  1. Python version 3.9 or higher required & Domoticz version 2022.1 (due to extended plugin framework) or greater.
  2. follow the Domoticz guide on Using Python Plugins.
  3. install the required libraries:
sudo apt-get update
sudo apt-get install python3 libpython3-dev libpython3.7-dev
sudo apt-get install python3-requests
sudo python3 -m pip install TeslaPy

install the plugin

  1. Go in your Domoticz directory using a command line and open the plugins directory: cd domoticz/plugins
  2. clone the plugin: git clone https://github.com/JanJaapKo/TeslaDomoticz
  3. Restart Domoticz: sudo systemctl restart domoticz
  4. Edit the file tesla_prepare.py to hold the email adress registered to your Tesla account (where it now has Elon's mail adress......)
  5. run tesla_prepare to authenticate:
cd TeslaDomoticz
python3 tesla_prepare

Follow instructions on the command line. Authentication is successfull when it reports the name of your vehicle.

  1. Add the plugin to Domoticz on the hardware page providing the required configuration attributes