Open Jens-Wymeersch opened 1 year ago
I have partly the same issue as you. I can't get the MQTT integration to work. There are no errors in the logs. I have installed MQTT Explorer as well but can't see any topics.
It looks like login is working. Have you set up any ACLs?
To add to this, I keep getting an error message - pq: password authentication failed for user when I add the username and password to the data source. I am sure it's correct as I am copy pasting it from the config.
The DB user and password is only set in the initial Postgres container initialisation. If you change it afterwards it won't work sadly.
I'd suggest removing the Postgres add on, then re-adding and setting the configuration before 1st run.
Had the same problem make sure the datasource is "TeslaMate" with a capital M
If you are not seeing data in Grafana then the issue is the Postgres connection, not MQTT.
I think we have multiple issues being discussed here.
@matt-FFFFFF Got it working. I had the MQTT set to true all this time :/ Do you know how to integrate TeslaMate with HA so I can see the entities within HA? (https://docs.teslamate.org/docs/integrations/home_assistant) TIA.
Hi,
If you have MQTT working you can follow the instructions on the Teslamate website. It's the same from here on in.
For me, I gave the write access to my mqtt user for all the topics to make it work.
user mymqttuser
topic readwrite #
Describe the bug I don't get any reports into Grafana nor do I see any entities in MQTT. Secondly, the initial MQTTuser that I have defined doesn't have access anymore.
Steps to reproduce 1. config in grafana certfile: fullchain.pem env_vars:
In Grafana - added datasource
2. In Postgres
3. In MQTT
logins: [] require_certificate: false certfile: fullchain.pem keyfile: privkey.pem customize: active: true folder: mosquitto
Created files /share/mosquitto/acecesscontrollist and /share/mosquitto/acl.conf
Created an user teslamate in Home assistant (settings)
4 in Teslamate
database_user: teslamate database_pass: pw database_name: teslamate database_host: 29b65938-postgres database_ssl: false database_port: 5432 disable_mqtt: false encryption_key: aradomencryptionkey grafana_import_dashboards: true grafana_folder_name: TeslaMate grafana_host: a0d7b954-grafana grafana_port: 3000 grafana_user: admin grafana_pass: pw import_dir: /share/teslamate mqtt_host: core-mosquitto mqtt_user: teslamate mqtt_pass: pw mqtt_tls: false mqtt_tls_accept_invalid_certs: false mqtt_namespace: "" timezone: Asia/Jerusalem
logs Teslamate
MQTT
Postgres
Grafana