-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grafana shows "Datasource TeslaMate not found" and MQTT does not add device/entities (auto discovery) #63
Comments
I found this here: teslamate-org/teslamate#3640 |
First a disclaimer: this is all outside of the realm of this addon and is squarely in the upstream app's realm. That said, I'm not convinced this is a database version issue. By their own admission in the v1.31.0 release notes, this is NOT a hard requirement:
Many users of this addon are still running on Postgres 15 without any issues. Certain dashboards are known to show no data when you first start using TeslaMate or when the car has been offline for an extended period of time and the default graph view range is only for a time during that offline period. Extending the range or waiting reveals the data. My suspicion is either you don't have any or enough data to render the graphs (formatting an empty value will obviously fail) or the initial database migrations haven't run or encountered problems and I think the "upgrading to Postgres 17" resolves things because it forces the migrations, essentially resets things, and also forces someone to stop and wait. If you restart the addon you should see something like this:
The two If you're in the same position as one of the commenters where a DB query of In this case, you could try uninstalling the addon, removing the database (or use a new database name), reinstall and reconfigure the addon. |
Thank you very much for the detailed reply: Here are the logs: s6-rc: info: service teslamate: starting |
In addition, I installed Grafana docker on a different device and get the same results. |
🤔 everything looks good to me so I'm really not sure what's going on. Probably best to open an issue upstream. |
Upstream issue opened: teslamate-org/teslamate#4494 |
Problem solved! The connection to Postgres within Grafana should be named TeslaMate (and not Postgres...)! |
Woohoo!! 🎉 Looks like this is a hard-requirement so I'll change the addon docs to make this clear. |
Dear all,
I really appreciate this add-on. TeslaMate work great for me.
However I have a few issues with the Grafana and MQTT.
Settings:
Raspberry Pi 4
Core 2024.12.5
Supervisor 2024.12.3
Operating System 14.1
Frontend 20241127.8
PostGres addon: 15.7-14
Grafana add-on: 10.2.2
Teslama addon: 1.4.0
In Grafana I always see "No Data", although I can explore the PostGres15 database manually within Grafana. I can see the database and general data, such as Name, VID, VIN, Charges. Thus I think the connection between Postgres and Grafan is working, it must only be the dashboard, which does not show the data. Upon editing the dashboard, and clicking in "Run Query" I see the following error message:
db query error: pq: invalid input syntax for type json
or
db query error: pq: invalid input syntax for type smallint:
Does anybody know what this issue is?
For MQTT, I can read the topic in both HA and with a MQTTAnalyzer app, but neither entities nor a new device(s) are auto discovered?
I made a new teslamate user and also configured ACL as suggested.
Thanks for your help!
Hemy
The text was updated successfully, but these errors were encountered: