NSPanelManager icon indicating copy to clipboard operation
NSPanelManager copied to clipboard

[Enhancement] Home Assistant Integration

Open mainmind83 opened this issue 2 years ago • 7 comments

1.- Add "show in lateral panel" on HA addon

image

2.- Is it possible to read the rooms and scenes directly from HA?

mainmind83 avatar Sep 06 '23 08:09 mainmind83

The scenes is planned for integration, have not thought about rooms.

tpanajott avatar Sep 06 '23 08:09 tpanajott

I don't seem to find any options for the addon that says it would enable it to be visible in the menu per the documentation: https://developers.home-assistant.io/docs/add-ons/configuration/

Do you happen to know of an open source addon we could take a look at and see how they have done it?

tpanajott avatar Sep 16 '23 09:09 tpanajott

ESPHome, Frigate, HACS, Studio Code Server, Zigbee2mqtt... allow to add to lateral panel from addon config ;)

mainmind83 avatar Sep 16 '23 10:09 mainmind83

Thanks, will take a look when I can.

tpanajott avatar Sep 16 '23 11:09 tpanajott

Maybe it can serve as a reference:

  • https://developers.home-assistant.io/blog/2018/06/01/071-custom-panels?_highlight=panel#improved-custom-panel-support
  • https://smarthomescene.com/guides/sidebar-shortcuts-customizing-the-ha-sidebar/

mainmind83 avatar Sep 16 '23 11:09 mainmind83

Unfortunetly this will be a big enough change that it will now be done before publishing the new "beta" as stable. I've done some digging and what has to be done is the following:

  1. Change from using raw ports in config.yaml and start using ingress.
  2. In using ingress, all paths need to be updated as simply pointing the browser to gather a file from /static/css/main.css will try and load it from Home Assistant and not the addon. The path indiciated in X-Ingress-Path has to be appended to all paths.

At least now we know what needs to be done to get it running we can start to actually give this issue some love and hopefully have it resolved in the next release.

tpanajott avatar Aug 31 '24 22:08 tpanajott

Thanks, great work 🙃

mainmind83 avatar Dec 08 '24 07:12 mainmind83