I got a Google Hub a couple weeks ago with the intention of being able to cast my Hassio-installation to it. However, my current network setup proved to be difficult and after weeks im still struggling.
The network setup that I have includes haproxy to terminate SSL-connections. Https-traffic to HA is tunneled through haproxy and then passed (http) to my HA-server. I can as such address it with ha.example.com.
The problem comes when I try to cast to Google Hub. When I go to ‘cast.home-assistant.io’ and try to direct it to my public ha-endpoint ‘ha.example.com’ I end up with a message on the Google Hub saying ‘Error: Unable to connect to the Home Assistant websocket API’. From this I draw the conclusion that there is some configuration issue with haproxy so the websocket-traffic is not passing through but I cant get it to work.
However, when I try to debug websocket traffic (using a simple local webpage and some JS) I can get that to connect to HA through the haproxy.
My understanding of Casting is limited but from how I percieve it it should work throug my haproxy setup.
Any one have any ideas?