hashaxe
(hashaxe)
1
I’m following the instructions here:
Teslamate MQTT Integration · alandtse/tesla Wiki · GitHub
I have a running instance of teslamate on my synology nas docker.
I have mosquito installed and MQTT integration working as well.
I have configured the teslamate’s envr var with the following
Environment Variables | TeslaMate
However, following the documentation, when listening to the “teslamate/cars/#” topic, I’m not receiving any messages.
Am I missing something?
hashaxe
(hashaxe)
2
This was installed alongside my teslamate docker install. I kept the default values, but could this be where I am missing something?
What should be in here?
This was the docker-compose.yml I went off of.
version: "3"
services:
teslamate:
image: teslamate/teslamate:latest
restart: always
environment:
- ENCRYPTION_KEY=secretkey #replace with a secure key to encrypt your Tesla API tokens
- DATABASE_USER=teslamate
- DATABASE_PASS=password #insert your secure database password!
- DATABASE_NAME=teslamate
- DATABASE_HOST=database
- MQTT_HOST=mosquitto
ports:
- 4000:4000
volumes:
- ./import:/opt/app/import
cap_drop:
- all
database:
image: postgres:15
restart: always
environment:
- POSTGRES_USER=teslamate
- POSTGRES_PASSWORD=password #insert your secure database password!
- POSTGRES_DB=teslamate
volumes:
- teslamate-db:/var/lib/postgresql/data
grafana:
image: teslamate/grafana:latest
restart: always
environment:
- DATABASE_USER=teslamate
- DATABASE_PASS=password #insert your secure database password!
- DATABASE_NAME=teslamate
- DATABASE_HOST=database
ports:
- 3000:3000
volumes:
- teslamate-grafana-data:/var/lib/grafana
mosquitto:
image: eclipse-mosquitto:2
restart: always
command: mosquitto -c /mosquitto-no-auth.conf
# ports:
# - 1883:1883
volumes:
- mosquitto-conf:/mosquitto/config
- mosquitto-data:/mosquitto/data
volumes:
teslamate-db:
teslamate-grafana-data:
mosquitto-conf:
mosquitto-data:
koying
(Chris B)
3
Step 1: Did you check with, e.g. MQTT Explorer, if MQTT messages are actually published?
Step 2: Did you check the HA log?
1 Like
hashaxe
(hashaxe)
4
Thank you! Installing and using MQTT explorer made me realize my mqtt host was incorrect. That helped me fix my issue.
I did, i’m at the same spot and they’re nothing is showing up in mqtt explorer and teslamate and graphana are running perfectly fine
I have pretty much the same code as you but i’m not able to get it to communicate