matt-FFFFFF / hassio-addon-teslamate

Teslamate addon for Home Assistant
MIT License
68 stars 22 forks source link

Grafana Dashboard URL ? #106

Open NeWoKiKi opened 1 year ago

NeWoKiKi commented 1 year ago

Hi,

I've just installed you addon that is really cool ! I had to fix 2 little things like adding pluggins to remove some errors and to get dashboard fully fonctional :

plugins:
  - natel-discrete-panel
  - pr0ps-trackmap-panel
  - grafana-piechart-panel
  - natel-plotly-panel
custom_plugins:
  - name: panodata-map-panel
    url: >-
      https://github.com/panodata/panodata-map-panel/releases/download/0.16.0/panodata-map-panel-0.16.0.zip
    unsigned: true

But one thing I haven't found : Which URL should I set in Grafana Dashboard field in Teslamate settings to get dashboard link directly from Teslamate ?

image

Many thanks for your help Regards,

saket424 commented 1 year ago

I got the TeslaMate folder in grafana import dashboards but there is no data

Screenshot from 2023-09-13 18-28-39

matt-FFFFFF commented 1 year ago

Hi,

The URL is generated dynamically by Home Assistant supervisor. If the addon restarts the url will change so I don't recommend using this.

NeWoKiKi commented 1 year ago

I didn't change anything, there is no URL after installation.

What's the good practice for using this addon ? Do I have to go to Grafana panel et search for dashboard ? Can't I use links from Teslamate ? Is there any dashboard to had or something ?

Many thanks,

HA-TB303 commented 1 year ago

Hi, I was also unable to find any usefull information about the grafana Dashboards URL.

Did you ever get this fixed?

NeWoKiKi commented 1 year ago

Hi,

No, I don't have any news about this issue for the moment. I took URL from one of my dashboards in Grafana and cut it just before "/d/..." to put it in Teslamate. It seems to do the job but not everywhere, it's a good work around while waiting for official answer.

HA-TB303 commented 1 year ago

Does not work for me, but thanks anyway. :)

NeWoKiKi commented 1 year ago

On your computer, go to Home Assistant, click on Grafana section, Toggle Grafana menu ("burger icon") and click on "Dashboards" Here you'll see your Teslamate dashboards, right click on any one (for exemple "Drives") and copy link.

You'll have something like this : https://yourhomeassistanturl:8123/api/hassio_ingress/xxxxxxxxxx/d/xxxxxxxxxx/drives

You'll just have to cut it before "/d/" like this : https://yourhomeassistanturl:8123/api/hassio_ingress/xxxxxxxxxx

Then you paste it in Dashboard URL section of Teslamate

You'll see a Dashboards section appear in Teslamate and links will work but only in computer, not in mobile app

HA-TB303 commented 1 year ago

Hi Thanks for that. I think I understood what you meant in the first place, but it does not work for me somehow.

CleanShot 2023-10-17 at 10 53 33

Result:

CleanShot 2023-10-17 at 10 51 51

HA-TB303 commented 1 year ago

For completeness the URL from the grafana dashboard was:

https://xxxxxxxxxxxxxx.org:6XXX9/api/hassio_ingress/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxTg/d/WopVO_mgz

And in the teslamate URL I entered:

https://xxxxxxxxxxxxxx.org:6XXX9/api/hassio_ingress/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxTg
HA-TB303 commented 1 year ago

My bad, the trailing / was missing! With the / at the end it does work.

NeWoKiKi commented 1 year ago

If I add "/" it's automatically removed for me, that's strange But if it works for you, that's great :)