Fragen zu Teslamate

Hallo allerseits,

ich habe folgendes Problem. Ich habe Teslamate und Postgres installiert. Mein account bei Teslamate ist aktiv, ich kann hier auch alle Daten sehen. Sobald ich die Benutzeroberfläche von Teslamate in Homeassistant öffne, erhalte ich die Info " Bad Gateway" . Woran kann dies leigen ?

Wie erreichst du dein Teslamate über http oder https? Wäre jetzt das erste was mir einfällt.

Danke für die Antwort Ich habe es leider nicht zu Laufen gebracht. Ich wollte eigentlich nur die Ladedaten von „Zuhause“ auslesen. In der Tesla Custom Integration, die ich einsetze kann ich nur die gesamten Ladungen auslesen. Den Account bei TeslaMate habe ich gelöscht. ich werde es über einen anderen Weg probieren

Kannst dir auch mal EVCC ansehen von dort wirst du dann alle Daten bekommen und kannst auch damit das laden Steuern und vieles mehr

Könnte sowas aus Teslmate heraus anbieten, hatte es grade erst umgesetzt.

Danke für die Info. Ich habe alles neu aufgesetzt, incl. Token und TeslaMate. Die Daten sind in teslaMate einzusehen. Postgress 17 ist installiert, teslamate ebenso. Allerdings komme ich nicht auf die Seite/Aufruf die Tokens einzugeben.
Teslamate startet. Es gibt wohl ein Problem mit der Datenbank in Postgress.
In Postgress kann ich nur das Passwort konfig. Das Protokol von teslamate sieht wie folgt aus

s6-rc: info: service legacy-services: starting

s6-rc: info: service legacy-services successfully started

[14:03:55] INFO: Starting NGINX...

2025/09/18 14:03:57 [error] 100#100: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: _, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:4000/", host: "homeassistant.local:8123", referrer: "http://homeassistant.local:8123/hassio/_my_redirect/supervisor_add_addon_repository?repository_url=https%3A%2F%2Fgithub.com%2Flildude%2Fha-addons"

2025/09/18 14:03:57 [error] 100#100: *1 connect() failed (111: Connection refused) while connecting to upstream, client: 172.30.32.2, server: _, request: "GET / HTTP/1.1", upstream: "http://127.0.0.1:4000/", host: "homeassistant.local:8123", referrer: "http://homeassistant.local:8123/hassio/_my_redirect/supervisor_add_addon_repository?repository_url=https%3A%2F%2Fgithub.com%2Flildude%2Fha-addons"

[13:04:07] INFO: Checking for database 'teslamate' on db21ed7f-postgres-latest

psql: error: connection to server at "db21ed7f-postgres-latest" (172.30.33.7), port 5432 failed: FATAL: password authentication failed for user "teslamate"



[14:04:08] ERROR: TeslaMate crashed, halting add-on

s6-rc: info: service legacy-services: stopping

s6-rc: info: service legacy-services successfully stopped

Das Passwort habe ich geprüft, in Postgress und teslamate sind sie gleich ( in der Konfig.

Sehe ich das richtig, das du Teslamate als Addon nutzt?

Wenn ja, hast du das gelesen?

fast, ich habe es als repository von GitHub geladen und installiert wie in gitHub angeben.
Im Protokol von Postgress erscheint folgendes:
/etc/cont-init.d/01-custom_script.sh: executing

[17:07:21] NOTICE: This script is used to run custom commands at start of the addon. Instructions here : Running custom scripts in Addons · alexbelgium/hassio-addons Wiki · GitHub

Execute /addon_configs/db21ed7f_postgres-latest/postgres-latest.sh if existing

/etc/cont-init.d/20-folders.sh: executing

/etc/cont-init.d/99-run.sh: executing

[17:07:22] INFO: Checking for required PostgreSQL cluster upgrade before server start…

[17:07:22] INFO: PostgreSQL data directory version (17) matches image version (17).

[17:07:22] INFO: Starting PostgreSQL…

[17:07:22] INFO: Waiting for PostgreSQL to start…

Using SSD storage

PostgreSQL is starting up… (1/60)

PostgreSQL Database directory appears to contain a database; Skipping initialization

2025-09-18 15:07:23.459 GMT [304] LOG: skipping missing configuration file „/config/database/postgresql.override.conf“

2025-09-18 15:07:23.460 GMT [304] LOG: skipping missing configuration file „/config/database/postgresql.override.conf“

2025-09-18 17:07:23.626 CEST [304] LOG: starting PostgreSQL 17.5 (Debian 17.5-1.pgdg120+1) on aarch64-unknown-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit

2025-09-18 17:07:23.626 CEST [304] LOG: listening on IPv4 address „0.0.0.0“, port 5432

2025-09-18 17:07:23.627 CEST [304] LOG: listening on IPv6 address „::“, port 5432

2025-09-18 17:07:23.692 CEST [304] LOG: listening on Unix socket „/var/run/postgresql/.s.PGSQL.5432“

2025-09-18 17:07:23.776 CEST [335] LOG: database system was shut down at 2025-09-18 17:06:05 CEST

2025-09-18 17:07:23.960 CEST [304] LOG: database system is ready to accept connections

NOTICE: extension „vectors“ does not exist, skipping

DROP EXTENSION

[17:07:29] INFO: ==== PostgreSQL databases and enabled extensions ====

[17:07:29] INFO: Database: postgres

[17:07:30] INFO: - plpgsql (v1.0)

[17:07:30] INFO: ==============================================

[17:07:30] INFO: All initialization / version‑check steps completed successfully!

Everything started!

2025-09-18 17:07:36.310 CEST [439] FATAL: password authentication failed for user „teslamate“

2025-09-18 17:07:36.310 CEST [439] DETAIL: Role „teslamate“ does not exist.

Connection matched file „/config/database/pg_hba.conf“ line 128: „host all all all scram-sha-256“

Im Protokol von Teslamate erscheint auch ein Fehler:
s6-rc: info: service fix-attrs successfully stopped

s6-rc: info: service s6rc-oneshot-runner: stopping

s6-rc: info: service s6rc-oneshot-runner successfully stopped

s6-rc: info: service s6rc-oneshot-runner: starting

s6-rc: info: service s6rc-oneshot-runner successfully started

s6-rc: info: service fix-attrs: starting

s6-rc: info: service fix-attrs successfully started

s6-rc: info: service legacy-cont-init: starting

s6-rc: info: service legacy-cont-init successfully started

s6-rc: info: service teslamate: starting

s6-rc: info: service teslamate successfully started

s6-rc: info: service nginx: starting

s6-rc: info: service nginx successfully started

s6-rc: info: service legacy-services: starting

[17:07:22] INFO: Starting NGINX…

s6-rc: info: service legacy-services successfully started

[16:07:35] INFO: Checking for database ‚teslamate‘ on db21ed7f-postgres-latest

psql: error: connection to server at „db21ed7f-postgres-latest“ (172.30.33.8), port 5432 failed: FATAL: password authentication failed for user „teslamate“

[17:07:36] ERROR: TeslaMate crashed, halting add-on

s6-rc: info: service legacy-services: stopping

s6-rc: info: service legacy-services successfully stopped

s6-rc: info: service nginx: stopping

s6-rc: info: service nginx successfully stopped

s6-rc: info: service teslamate: stopping

s6-rc: info: service teslamate successfully stopped

s6-rc: info: service legacy-cont-init: stopping

s6-rc: info: service legacy-cont-init successfully stopped

s6-rc: info: service fix-attrs: stopping

s6-rc: info: service fix-attrs successfully stopped

s6-rc: info: service s6rc-oneshot-runner: stopping

s6-rc: info: service s6rc-oneshot-runner successfully stopped

Passwort stimmt in Postgress und teslamate überein. In der Postgress Konfiguration kann ich nur das Passwort eingeben. Den Hostname habe ich aus Postgress in die Konfig von Teslamate kopiert. Sorry, ich kann den Fehler nicht finden, alles wie in GitHub vorgegeben ausgeführt

Wenn ich es richtig interpretiere, gibt es den User teslamate nicht in der DB.

scheint so.Laut GitHub legt teslamate den User selbst an. ich habe in in der Config von Postgress nochmals angelegt:

Postgres 17

Optionen

YAML Code
POSTGRES_PASSWORD: teslamate
POSTGRES_USER: teslamate

Wie kann ich das noch prüfen oder eingeben?

Ja das geht aber nur dann wenn er wenn Teslamate die Rechte hat.

Zeig mal die Config von deiner DB (Ist doch auch als Addon installiert oder?).

ich habe mich nochmal auf der Homepage von Teslamate nach gesehen. Dort ist von einer Docker Installation die Rede. Ich betreibe Homeassistant direkt auf einem Home Assistant Green. hat das Einfluss ? (wegen Dockerinst. ??)

Wir könnten uns mal im Discord treffen, dann gehen wir das mal gemeinsam durch.

Denn so aus dem Kopf ich dir da nicht helfen da bei mir alles auf einen Server im Docker läuft und nicht über HassOS.

Hallo, sorry das ich mich erst jetzt melde, ich war beruflich unterwegs. Ich habe wohl die Ursache gefunden. Nach einer einer kompletten Neuinstallation von Teslamate und Postgres habe ich matt auf disable gesetzt. Jetzt läuft Teslamate Nochmals Danke für die Posts. Jetzt werde ich noch matt aufsetzen und dann sollte es wohl funktionieren

Meine natürlich MQTT