var error = socket.connect_to_url(url + "/api/websocket")
should be:
var error = socket.connect_to_url(url + "/api/websocket", TLSOptions.client_unsafe())
to enable connecting to "wss://" type connections.
I am told that it will be impossible safe connections with a LAN based HA as the certificate validation can only be done against a DNS name (not an IP number), and probably not against mDNS (homeassistant.local) type names either. Perhaps it's possible with a HA installed in the cloud.
Also, it would be much kinder if your default connection error was not "Invalid URL", (line 107) as this is unhelpfully misleading when the URL is perfectly fine (no hidden spaces etc), and there's something else wrong.
On line here: https://github.com/Nitwel/Immersive-Home/blob/main/app/lib/home_apis/hass_ws/connection.gd#L59
should be:
to enable connecting to "wss://" type connections.
I am told that it will be impossible safe connections with a LAN based HA as the certificate validation can only be done against a DNS name (not an IP number), and probably not against mDNS (homeassistant.local) type names either. Perhaps it's possible with a HA installed in the cloud.
Also, it would be much kinder if your default connection error was not "Invalid URL", (line 107) as this is unhelpfully misleading when the URL is perfectly fine (no hidden spaces etc), and there's something else wrong.