smarthomeserver
smarthomeserver copied to clipboard
Preparing Grafana for sharing
I did every configuration you suggested for Grafana:
I also included those in the documentation of the add-on.
But I keep getting 401 Unauthorized view when trying to access my embedded graphs:
If I want to solve this, I must access the Web User Interface once, and now I get the graphs showing:
But this solution s temporary as long as my server is running. When rebooting HA, I will need to access Grafana Web User Interface again to display my graphs.
Your help would be much appreciated
Hi, where did you add those configurations? You need to simply uncomment them here to fix that issue
I added these configurations here:
Directly in the config tab of the add-on. Should I remove it and add Granada in my configurations.yaml?
I don't know what add-on you are talking about. This is a setup for running HA in a container and Grafana separately. If you are running HA OS with the supervisor you should check here or in the forums
You are right Oliver, I'm not running HA in a container. I should have been more careful. I've been through documentation for HA Supervised / OS and I could find the solution. I hope it stands. Thank you for pointing me in the good direction. Wish you the best!
Glad to help! Could you maybe also share that solution here? Might help someone else fighting the same problem
Following the online recommandations, I added the following env_vars in the Grafana add-on configuration
- name: GF_AUTH_ANONYMOUS_ENABLED
value: "true"
- name: GF_AUTH_DISABLE_LOGIN_FORM
value: "false"
- name: GF_AUTH_ANONYMOUS_ORG_NAME
value: Main Org.
- name: GF_AUTH_ANONYMOUS_ORG_ROLE
value: Viewer
But it doesn't seem to work from a mobile access.... I'm still looking for a definitive solution for complete access with both local and remote access.

For now I will close this, if you ever find a solution for this please let me know
I guess it's a "What the heck" type of problem... It's not working, I always need to access Grafana web interface to access my graphs from within HA.... It's sad....