I have a technical question on the integration of a Google Home with Home Assistant.
Until now, I was able to display a dashboard on my Google Home but I have just secured my network by switching from a reverse proxy on Synology to a more secure Cloudflare tunnel.
Only problem, when I want to connect the Google Home dashboard, I find myself with an error: I arrive at the display with the HA logo, a heart and NABU CASA and below: Not Connected Error: Unable to connect to the Home Assistant websocket API.
I also tried via https://cast.home-assistant.io/ I enter my URL, I log in and it tells me Unknown error (SyntaxError: Unexpected token â<â, "<!DOCTYPE ". ⌠is not valid JSON).
But that means you need a bypass rule in CloudFlare Access, correct? Unless you are not using it to secure the access to your HA instance.
Can you tell me whatâs your current setup? I have a bypass for âGoogle Assistant IPsâ (technically, I used the CIDRs from HOWTO: Secure Cloudflare Tunnels remote access).
I wonder if I need extra IPs in the bypass rule (Google Home servers?), otherwise I think the traffic wonât even hit the WAF rule and be dropped due to authentication anywaysâŚ
Iâve just got cast working to a Google Nest Hub (2nd gen) after a lot of faffingâŚ
Iâm using the Cloudflared add-on which works perfectly. I was getting authentication fail and unable to connect errors when starting the cast. For me, adding a bypass rule for traffic hitting Cloudflare from my external IP did the trick.
In Cloudflare console â ZeroTrust â Access â Access Group, add a new group with the Selector set to IP Address/Range and a value of whatever your external IP address is.
Back in the ZeroTrust Home Assistant application, under Policies tab, Add NewâŚ
Call it âbypass for internal trafficâ or whatever, âActionâ set to BYPASS and add in the new Access Group created above.
This should allow traffic originating from your own external IP to completely bypass Cloudflare auth while still enforcing it for all other traffic.
Worked for me, with the added plus of also fixing the long standing problem I had getting my Galaxy Watch working with HA too.