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

WebSocket Connection Error with Custom Port Setup #549

Open
baukeposthuma opened this issue Jul 25, 2024 · 2 comments
Open

WebSocket Connection Error with Custom Port Setup #549

baukeposthuma opened this issue Jul 25, 2024 · 2 comments

Comments

@baukeposthuma
Copy link

Description:
I have set up the Fusion Add-on to run over a custom port. While the dashboard loads correctly, all sensor names and states are displayed as undefined. The browser console shows the following error:

DOMException: Failed to construct 'WebSocket': An insecure WebSocket connection may not be initiated from a page loaded over HTTPS.

Details:
Home Assistant Setup: Running over SSL/HTTPS
Fusion Dashboard: Running over HTTP on a custom port
Due to the different protocols (HTTPS for Home Assistant and HTTP for Fusion Dashboard), the WebSocket connection fails to establish.

Observations:
The Fusion Add-on works perfectly when accessed via Ingress.

Request for Assistance:
Has anyone else encountered this issue and found a solution or workaround? Any suggestions on how to resolve the WebSocket connection issue in this mixed content setup would be greatly appreciated.

@fldc
Copy link

fldc commented Jul 26, 2024

That would be #344 I guess.

@baukeposthuma
Copy link
Author

@fldc Yes, that looks like the same issue. If Fusion would add support to serve the same SSL certificate as homeassistant, the issue would be resolved.

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

2 participants