/TeslaApiDomoticz

Integrates TeslaAPI into Domoticz

Primary LanguagePythonMIT LicenseMIT

Tesla plugin for Domoticz

This plugin integrates the TeslaApi library into a Domoticz plugin.

This plugin is (at this moment) still WORK IN PROGRESS!!!!!!

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

Current status:

Nothing works

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/TeslaApiDomoticz
  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