Skip to content
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

Add to Sidebar option #8

Open
ifeign opened this issue Jan 31, 2023 · 11 comments
Open

Add to Sidebar option #8

ifeign opened this issue Jan 31, 2023 · 11 comments

Comments

@ifeign
Copy link

ifeign commented Jan 31, 2023

Would you be able to add the "add to sidebar" toggle that many addons have so that it doesn't have to be done manually in the config file?

@davide125
Copy link
Owner

Last time I tried it didn't load properly from the sidebar due to some CORS issue, but that might be fixable. Does it work for you if you add it in the config?

@ifeign
Copy link
Author

ifeign commented Feb 1, 2023

I just put this in my config, but I'm sure there's a better way to do it so I can access that panel remotely:

panel_iframe:
  homebridge:
    title: Homebridge
    icon: mdi:home-automation
    url: http://homeassistant.local:8581

@n8ohu
Copy link

n8ohu commented Feb 7, 2023

I was going to ask about this, so I'm glad to see that I'm not the only person that would like to see it.

@michalw2-alt
Copy link

michalw2-alt commented Apr 3, 2023

It’s great to have this homebridge addon. I hope this project will not be abandoned.
Some of the integrations are better on homebridge and it’s great to have option. Please keep supporting it.

@davide125
Copy link
Owner

It's not abandoned, but it's not something I actively work on unless it needs updating. For this specific issue, the right answer is likely to use the new Ingress stuff in Home Assistant. If someone wants to test that and send a PR, that'd be appreciated. Otherwise I'll probably get around it the next time I catch it up to the latest Homebridge release.

@michalw2-alt
Copy link

michalw2-alt commented Oct 7, 2023

It's not abandoned, but it's not something I actively work on unless it needs updating. For this specific issue, the right answer is likely to use the new Ingress stuff in Home Assistant. If someone wants to test that and send a PR, that'd be appreciated. Otherwise I'll probably get around it the next time I catch it up to the latest Homebridge release.

Perhaps now it would be good time to fix this one: #10 ?
There were some changes introduced to node.js since container was built and also quite a lot libraries has become out of date.
Theses changes are not persistent across restart of container.

@davide125
Copy link
Owner

I gave this another shot today while working on #10. Rigging ingress up is easy:

-ports:
-  8581/tcp: 8581
-ports_description:
-  8581/tcp: Homebridge UI
-webui: http://[HOST]:[PORT:8581]
+ingress: true
+ingress_port: 8581

in config.yaml. However this doesn't actually work -- I can see HA making the request to load the Homebridge UI on the other end, but the HA fronted only displays a blank frame. I suspect there's either CORS or some javascript fuckery in play here. If someone figures it out, please comment here so we can try again :) In the meantime, panel_iframe as mentioned in #8 (comment) is an option for local access.

@ifeign
Copy link
Author

ifeign commented Jan 24, 2024

I gave this another shot today while working on #10. Rigging ingress up is easy:

-ports:
-  8581/tcp: 8581
-ports_description:
-  8581/tcp: Homebridge UI
-webui: http://[HOST]:[PORT:8581]
+ingress: true
+ingress_port: 8581

in config.yaml. However this doesn't actually work -- I can see HA making the request to load the Homebridge UI on the other end, but the HA fronted only displays a blank frame. I suspect there's either CORS or some javascript fuckery in play here. If someone figures it out, please comment here so we can try again :) In the meantime, panel_iframe as mentioned in #8 (comment) is an option for local access.

I hate to ask a stupid question, but did you try clearing your browser cache, or using an incognito window to test this?

@superpower10
Copy link

superpower10 commented May 5, 2024

Would love to see this also 👍

Did this work? #8 (comment)

@superpower10
Copy link

Looking at the Pi-hole Add-On.

You need to do at least two things for ingress and sidebar:
IMG_0916

@Lumute
Copy link

Lumute commented Feb 22, 2025

in config.yaml. However this doesn't actually work -- I can see HA making the request to load the Homebridge UI on the other end, but the HA fronted only displays a blank frame. I suspect there's either CORS or some javascript fuckery in play here. If someone figures it out, please comment here so we can try again :) In the meantime, panel_iframe as mentioned in #8 (comment) is an option for local access.

This is the right way, I tried it as well with the same results and after some googling found that it is a known problem with Homebridge loading resources from the root which does not work with a location based reverse proxy which is basically what Ingress is...

This is the original issue (long closed stale): link

And this one was re-opened but its been pen for a long time: link, maybe if a lot of us state our interest it will gain some visibility..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants