philhzss / tesla-climate-scheduler

Control Tesla HVAC based on events from a .ics file
GNU General Public License v3.0
2 stars 1 forks source link

Tesla Climate Scheduler (tcs)

Control your Tesla's climate & heated seats based on events from a .ics file

Currently incomplete, no release available at this time

Important notes

Features

Requirements (for usage)

Once again this is my first program and is probably useless for most people. You can most likely do what you want to do using TeslaFi/Home Assistant. This program requires:

Usage

  1. Get a dynamic DNS setup (ie No-Ip)
  2. Install Caddy
  3. Setup Teslemtry account with webhooks into your Caddy port
  4. Assuming you're running this on Linux like I am, download the binary to your Linux machine.
  5. Download/open settings.example.json, and fill it up with your desired settings.
    • I will add wiki pages with more details eventually, in the meantime look at the file tesla_var.h for details on settings.
    • Rename the file to settings.json and place in the same folder as tcs binary file. The binary file needs to have a settings.json file in the same folder in order to run.
  6. Download/open Caddyfile.example, fill in your domain name and ports.
    • Caddy needs to be setup as a reverse proxy, put the same ports in Caddyfile as in settings.json (you can keep the default)
    • Remove ".example" and leave Caddyfile wherever you want, as long as your Caddy server is using it as the config file.
  7. Launch the binary, verify your settings have been applied and let it run 24/7 for it to control your vehicle.

Building requirements