Skip to content

gawsneakerz/tesla-http-proxy-addon

 
 

Repository files navigation

Tesla HTTP Proxy add-on

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

Add-ons

This repository contains the following add-ons

Supports aarch64 Architecture Supports amd64 Architecture Supports armhf Architecture Supports armv7 Architecture Supports i386 Architecture

Standalone Usage

If you are not running HAOS, the proxy can run separately as a Docker container. This is also helpful for development while working in the Tesla integration devcontainer. The included script will start 2 Docker containers, one for Nginx and one for the proxy. It mimics some HAOS concepts including folder structure and bashio so you can use the same Docker image as the addon. You may need to modify according to your environemnt.

  • Forward https://DOMAIN:443 to localhost:4430
  • Start Docker
  • Clone this repo
  • Navigate to the standalone folder
  • Copy TLS cert and key to ssl/fullchain.pem and ssl/privkey.pem
  • Set environment variables in secrets.env
  • Run start_proxy.sh
  • Start OAuth at http://localhost:8099 and it will callback to https://DOMAIN/callback
  • After getting the token, edit addons.self.options.config.cache to change true to false and then restart

About

Tesla HTTP Proxy Add-on for Home Assistant

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 50.7%
  • Python 31.6%
  • HTML 11.4%
  • Dockerfile 6.3%