teslamate

by egeback

Helm chartv3.0.1App 4.4.0Verified publisher

A self-hosted data logger for your Tesla 🚘

About this chart

teslamate

A self-hosted data logger for your Tesla 🚘

Homepage: https://github.com/egeback/helm-charts/blob/main/charts/teslamate

Maintainers

NameEmailUrl
egeback[email protected]

Source Code

Requirements

RepositoryNameVersion
https://bjw-s-labs.github.io/helm-chartscommon5.3.0

Values

KeyTypeDefaultDescription
controllers.main.containers.main.envobjectSee belowenvironment variables. See teslamate docs for more details.
controllers.main.containers.main.env.DATABASE_HOSTstring"{{ include \"bjw-s.common.lib.chart.names.fullname\" .}}-postgresql"Postgres database hostname
controllers.main.containers.main.env.DATABASE_NAMEstring"{{ .Values.postgresql.auth.database }}"Postgres database password
controllers.main.containers.main.env.DATABASE_PASSstring"{{ .Values.postgresql.auth.password }}"Postgres database password
controllers.main.containers.main.env.DATABASE_USERstring`"{{ .Values.postgresql.auth.usernamedefault "postgres" }}"`
controllers.main.containers.main.env.DISABLE_MQTTstring"false"Disables the MQTT feature if true
controllers.main.containers.main.env.ENCRYPTION_KEYstring"MySuperSecretEncryptionKey"Teslamate encryption key
controllers.main.containers.main.env.MQTT_HOSTstring"mosquitto"MQTT server host
controllers.main.containers.main.env.MQTT_PORTint1883MQTT server port
controllers.main.containers.main.env.TZstring"UTC"Set the container timezone
controllers.main.containers.main.image.pullPolicystring"IfNotPresent"image pull policy
controllers.main.containers.main.image.repositorystring"teslamate/teslamate"image repository
controllers.main.containers.main.image.tagstringchart.appVersionimage tag
controllers.main.containers.teslamate-abrp.enabledboolfalse
controllers.main.containers.teslamate-abrp.env.CAR_MODELstring"tesla:my:19:bt37:awd"
controllers.main.containers.teslamate-abrp.env.CAR_NUMBERint2
controllers.main.containers.teslamate-abrp.env.MQTT_PASSWORDstring"{{ dig \"MQTT_PASSWORD\" \"\" .Values.controllers.main.containers.main.env }}"
controllers.main.containers.teslamate-abrp.env.MQTT_PORTstring"{{ .Values.controllers.main.containers.main.env.MQTT_PORT }}"
controllers.main.containers.teslamate-abrp.env.MQTT_SERVERstring"{{ .Values.controllers.main.containers.main.env.MQTT_HOST }}"
controllers.main.containers.teslamate-abrp.env.MQTT_USERNAMEstring"{{ dig \"MQTT_USERNAME\" \"\" .Values.controllers.main.containers.main.env }}"
controllers.main.containers.teslamate-abrp.env.USER_TOKENstring"y0ur-4p1-k3y"
controllers.main.containers.teslamate-abrp.image.repositorystring"fetzu/teslamate-abrp"
controllers.main.containers.teslamate-abrp.image.tagstring"4.0.2"
controllers.main.containers.teslamateagile.enabledboolfalse
controllers.main.containers.teslamateagile.env.DATABASE_HOSTstring"{{ include \"bjw-s.common.lib.chart.names.fullname\" . }}-postgresql"
controllers.main.containers.teslamateagile.env.DATABASE_NAMEstring"{{ .Values.postgresql.auth.database }}"
controllers.main.containers.teslamateagile.env.DATABASE_PASSstring"{{ .Values.postgresql.auth.password }}"
controllers.main.containers.teslamateagile.env.DATABASE_USERstring"{{ .Values.postgresql.auth.username }}"
controllers.main.containers.teslamateagile.env.TZstring"{{ .Values.controllers.main.containers.main.env.TZ }}"
controllers.main.containers.teslamateagile.env.TeslaMate__EnergyProviderstring"Tibber"
controllers.main.containers.teslamateagile.env.TeslaMate__FeePerKilowattHourint0
controllers.main.containers.teslamateagile.env.TeslaMate__GeofenceIdint1
controllers.main.containers.teslamateagile.env.TeslaMate__UpdateIntervalSecondsint300
controllers.main.containers.teslamateagile.env.Tibber__AccessTokenstring"MyAccessToken"
controllers.main.containers.teslamateagile.image.repositorystring"mattjeanes/teslamateagile"
controllers.main.containers.teslamateagile.image.tagstring"v1.23.0"
controllers.main.containers.teslamateapi.enabledboolfalse
controllers.main.containers.teslamateapi.env.DATABASE_HOSTstring"{{ include \"bjw-s.common.lib.chart.names.fullname\" . }}-postgresql"
controllers.main.containers.teslamateapi.env.DATABASE_NAMEstring"{{ .Values.postgresql.auth.database }}"
controllers.main.containers.teslamateapi.env.DATABASE_PASSstring"{{ .Values.postgresql.auth.password }}"
controllers.main.containers.teslamateapi.env.DATABASE_USERstring"{{ .Values.postgresql.auth.username }}"
controllers.main.containers.teslamateapi.env.ENCRYPTION_KEYstring"{{ .Values.controllers.main.containers.main.env.ENCRYPTION_KEY }}"
controllers.main.containers.teslamateapi.env.MQTT_HOSTstring"{{ .Values.controllers.main.containers.main.env.MQTT_HOST }}"
controllers.main.containers.teslamateapi.env.TZstring"{{ .Values.controllers.main.containers.main.env.TZ }}"MQTT password MQTT_PASSWORD:
controllers.main.containers.teslamateapi.image.repositorystring"tobiasehlert/teslamateapi"
controllers.main.containers.teslamateapi.image.tagstring"1.25.0"
controllers.main.containers.teslamateapi.namestring"teslamateapi"
ingress.mainobjectSee values.yamlEnable and configure ingress settings for the chart under this key.
ingress.teslamate-api.enabledboolfalse
ingress.teslamate-api.hosts[0].hoststring"teslamate-api.example.com"
ingress.teslamate-api.hosts[0].paths[0].pathstring"/"
ingress.teslamate-api.hosts[0].paths[0].pathTypestring"Prefix"
ingress.teslamate-api.hosts[0].paths[0].service.identifierstring"teslamate-api"
ingress.teslamate-api.hosts[0].paths[0].service.namestring"teslamate-api"
ingress.teslamate-api.hosts[0].paths[0].service.portint8080
persistenceobjectSee values.yamlConfigure persistence settings for the chart under this key.
postgresqlobjectSee values.yamlBundled PostgreSQL on the official postgres image. When enabled the chart creates a StatefulSet, Service and Secret, and TeslaMate (and the API/Agile sidecars) read DATABASE_PASS from that Secret.
postgresql.auth.existingSecretstring""Existing Secret with the key password
postgresql.auth.passwordstring""Password for username; required unless existingSecret is set
postgresql.enabledboolfalseDeploy a PostgreSQL StatefulSet; disable to use an external database (set DATABASE_* env yourself)
postgresql.image.tagstring"18.6"TeslaMate's reference setup uses PostgreSQL 18; major upgrades need a dump/restore renovate: datasource=docker depName=postgres
postgresql.persistence.storageClassstring""StorageClass for the data volume ("-" for none, empty for the cluster default)
serviceobjectSee values.yamlConfigures service settings for the chart.

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy teslamate with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has teslamate on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartteslamate is pinned at v3.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply