sanderdw / hassio-addons

DSMR Reader Datalogger and Metabase Home Assistant Add-ons
https://community.home-assistant.io/search?q=%40sanderdw%20%23home-assistant-os
Other
54 stars 14 forks source link

Dashboard in home assistant sidebar #42

Closed tdn131 closed 2 years ago

tdn131 commented 2 years ago

I would like to see the DSMR statistics dashboard from within the home assistant app. Would it be possible to integrate DSMR in the sidebar of Home Assistant?

I believe it can be achieved using Ingress (like AdGuard Home and ESPHome). https://developers.home-assistant.io/docs/add-ons/presentation/#ingress

I don't know how difficult it is to implement. I would really appreciate it. Thanks!

sanderdw commented 2 years ago

https://github.com/sanderdw/hassio-addons/issues/24

Yes it was already mentioned a while ago. I can put some time in again soon and see how it goes. Should be duable but just need to know how to put it all together.

In the mean time you could use https://www.home-assistant.io/integrations/panel_iframe/

sanderdw commented 2 years ago

hi @tdn131, can you try the new 1.2.0 version? I've added Ingress support, after updating go to the Configuration and enable it to try it out.

EDIT: Seems you need to uninstall and reinstall the addon first.

Let me know if it works :)

tdn131 commented 2 years ago

Hi Sander. Thanks for your quick work. I can confirm this works. I am very happy with this feature!

I thought you meant by enable in config: Show in sidebar, but it's also Enable_Ingress in configuration. Do I understand correctly that 7777 is not to be used anymore when Ingress is enabled? It still works, but it looks like there is no stylesheet (CSS) present. When I only enabled Show in sidebar (without Enable_Ingress) it looked the same: afbeelding

I did uninstall though and I noticed DJANGO_DATABASE_HOST default to 77b2833f-timescaledb, while the latest TimescaleDB 2.01 is 1d11d3ee_timescaledb. You could also change that ;).

sanderdw commented 2 years ago

Hi Sander. Thanks for your quick work. I can confirm this works. I am very happy with this feature!

I thought you meant by enable in config: Show in sidebar, but it's also Enable_Ingress in configuration. Do I understand correctly that 7777 is not to be used anymore when Ingress is enabled?

Correct, i clarified some things here: https://community.home-assistant.io/t/dsmr-reader-add-on-for-home-assistant/279087/244?u=sanderdw

I did uninstall though and I noticed DJANGO_DATABASE_HOST default to 77b2833f-timescaledb, while the latest TimescaleDB 2.01 is 1d11d3ee_timescaledb. You could also change that ;).

Hmm it's still the same for me? Are u sure?