matt8707 / ha-fusion

A modern, easy-to-use and performant custom Home Assistant dashboard
MIT License
2.06k stars 87 forks source link

WebSocket Connection Error with Custom Port Setup #549

Open baukeposthuma opened 1 month ago

baukeposthuma commented 1 month ago

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 commented 1 month ago

That would be #344 I guess.

baukeposthuma commented 1 month ago

@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.