# \[HOWTO\] Cast your Home Assistant dash via LAN to your Google Hub(s)

**URL:** <https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263>\
**Category:** Questions & Help\
**Tags:** dashboard, homey-pro\
**Created:** [June 30, 2022, 3:12am UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263 "2022-06-30T03:12:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [June 30, 2022, 3:12am UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/1 "2022-06-30T03:12:17Z")

</div>

Hi ladies & gents,

I couldn’t find a topic about this, so I wanted to share this howto with you.  
**How to cast your Home Assistant dashboard to your Google Hub(s).**

In HomeAssistant, you can add the network IP addresses of your hub(s) and HA instance, combined with your (or a user) ID, to create a login without having to enter the, or your, credentials.

## Note: this changes the manual logins for any device to the auto-login method;

You can enable it for your subnet (easier, less safe), or you can enable it for every single allowed device IP

1. Add this code to your HA configuration.yaml (assuming your subnet starts with 192.168.)

```auto
homeassistant:
  auth_providers:
    - type: trusted_networks
      trusted_networks:
        ### Choose: pick a whole subnet (less safe), or pick specific device IP('s) which are allowed to auto-login
        ### When uncommented, this allows your devices' subnet (so any device is allowed to auto-login):
        #- 192.168.x.x/24 
        ### This allows your specific devices to auto-login:
        - 192.168.x.x ## your deviceA IP
        - 192.168.x.x ## your other deviceB IP
      trusted_users:
        #192.168.x.x/24: 123xxxxxxxxxxxxxxxxxxxxxxxxxxx9z 
        ### the user id, from any HA instance on your subnet (less safe)
        192.168.x.x: 123xxxxxxxxxxxxxxxxxxxxxxxxxxx9z 
        ### the user id, from a specific HA instance
      allow_bypass_login: true

# The user id can be found here: http://homeassistant.local:8123/config/users

```

.

1. _Probably a restart of your HA instance is needed._

2. Now you should see the screen below, after you pick the Chromecast app card “Cast a webpage”, and enter `http://192.168.x.x:8123/lovelace.../.....` (`8123` is the default HA port number, just copy/paste the URL of your favo dash page here).

> ![20220630_041955](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/2/12980660f3fa0fff52b74a14c72e61a5ed3b7ca2.jpeg)

.  
This might also come in handy for displaying the dash in a browser on a tablet. After entering the HA url, it should show right away (if the tablet IP is in the listing, or if you enabled a subnet)

Have fun  
~Peter

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 24, 2022, 12:37am UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/2 "2022-10-24T00:37:23Z")

</div>

Fixed some things, now no interaction is needed 👊🏻

---

<div class="post-metadata">

**Author:** ![JB2K](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jb2k/32/134070_2.png) [@JB2K](https://community.homey.app/u/JB2K)\
**Post date:** [October 24, 2022, 10:04am UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/3 "2022-10-24T10:04:24Z")

</div>

Very nice! what device do you use for freezer ?

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [October 24, 2022, 11:50am UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/4 "2022-10-24T11:50:13Z")

</div>

Thanks! I use standard Aqara Temp/Hum sensors. Only battery drains a bit faster in freezer🙃

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [May 31, 2023, 12:16pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/5 "2023-05-31T12:16:15Z")

</div>

Can’t get this to work.  
Can you help?

 ![config](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/4/447c80ae2589aeea3bfaacf01f89134dd696f924.png)  
 ![invalid](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/b/8b6ad662a0cbaf45bc0250aab55946daacd59ec0.png)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 31, 2023, 1:39pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/6 "2023-05-31T13:39:11Z")

</div>

Hej Torbjorn,

The necessary leading whitespaces are missing in front of `trusted_users` and `allow_bypass_login`  
The (number of) whitespaces before the text are critically important.

Please take a look at my example code again and compare.  
 ![Screenshot from 2023-05-31 15-43-17](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/0/b0729f404446a25a33e79ce851fb76ef8dbe1d61.png)

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [May 31, 2023, 2:44pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/7 "2023-05-31T14:44:53Z")

</div>

should be identical now, but getting an error.

 ![new](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/d/8deae0eeeb4ba764c56eb61584b44b509268ff56.png)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 31, 2023, 4:18pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/8 "2023-05-31T16:18:30Z")

</div>

The last line (42) has no indentation.  
When you add 4 whitespaces in front of `allow_bypass_login`, both errors should disappear.  
(The gray-ish dots in my and your screenshot represent whitespaces)

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [May 31, 2023, 4:31pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/9 "2023-05-31T16:31:23Z")

</div>

can’t believe i missed that.

still doesn’t work though

 ![new](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/4/44123dae9acf00847d5c57c7a4a2b0709553f24e.png)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 31, 2023, 6:22pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/10 "2023-05-31T18:22:54Z")

</div>

I can’t see what’s still wrong here… .  
Can’t you save it anyways and run the check config?

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [May 31, 2023, 11:06pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/11 "2023-05-31T23:06:15Z")

</div>

I can, but I get the same errors that I posted earlier.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 31, 2023, 11:57pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/12 "2023-05-31T23:57:08Z")

</div>

OK, I was fiddling a bit, this seems to work. Those leading whitespaces really are the curse of HA 🤪  
(I’ll adjust my earlier posted code)

 ![Screenshot from 2023-06-01 02-08-42](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/0/a0d4ee671dc2ef0233e6e714a366db836d28695b.png)

CopyPaste code:

```auto
homeassistant:
  auth_providers:
    - type: trusted_networks
      trusted_networks:
      #- 192.168.x.x/24 ## your devices' subnet (where you want to login) # pick a whole subnet (less safe), or (a) specific device IP('s)
      - 192.168.x.x ## your device IP
      - 192.168.x.x ## your other device IP
      trusted_users:
        #192.168.x.x/24: 123xxxxxxxxxxxxxxxxxxxxxxxxxxx9z ### the user id, from any HA instance on your subnet (less safe)
        192.168.x.x: 123xxxxxxxxxxxxxxxxxxxxxxxxxxx9z ### the user id, from a specific HA instance
      allow_bypass_login: true

```

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [June 1, 2023, 12:11am UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/13 "2023-06-01T00:11:04Z")

</div>

Thanks. I’ll try again when I get home tomorrow.  
Yeah, the spaces seem highly problematic 😅

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [June 1, 2023, 6:05am UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/14 "2023-06-01T06:05:45Z")

</div>

Well, It seems to be correct now, but I can’t get it to work on my Google nest hub. Any pointers?

Edit:  
Never mind. Forgot to add http:// to the cast link. Works now.

Thank you for your help on this!

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [June 1, 2023, 1:57pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/15 "2023-06-01T13:57:40Z")

</div>

Nice to hear it works now. Have fun with it!

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [June 1, 2023, 2:04pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/16 "2023-06-01T14:04:40Z")

</div>

Thanks again.

I found that this feature removed the oppurtunity to open HA via the normal ‘homeassistant.local:8123’.  
So I had to add all my devices like laptops, phones and tablets to be able to open HA from all my devices.

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [June 1, 2023, 2:18pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/17 "2023-06-01T14:18:35Z")

</div>

Ah true that. I will adjust my how-to, thanks!  
I just added my subnet for any device to login

 ![Screenshot_20230601-161613_Home Assistant](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/8/38a491137eb92020fb27ef4260fca549de38da6f.jpeg)

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [June 1, 2023, 2:24pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/18 "2023-06-01T14:24:33Z")

</div>

Still have to use the ip-adress it seems, but not a problem really

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [June 1, 2023, 2:38pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/19 "2023-06-01T14:38:06Z")

</div>

Hmmm… Did you restart HA?  
Works here with subnet only.

I adjusted the how-to, is it better / clearer this way?

> ![Screenshot_20230601-164031_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/0/f06510330aa10aa8d8afd594fae978afe4af0897.jpeg)

---

<div class="post-metadata">

**Author:** ![Torbjorn\_Melbye](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torbjorn_melbye/32/18194_2.png) [@Torbjorn\_Melbye](https://community.homey.app/u/Torbjorn_Melbye)\
**Post date:** [June 1, 2023, 3:08pm UTC](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263/20 "2023-06-01T15:08:57Z")

</div>

yes, did restart.

I get this when trying localhost  
 ![login](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/9/f9689f83bad1f506ca731c6da9c2f0c9719bf5e3.png)

 ![net](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/9/69972523986e124078551fc5114de7c0c98fa36f.png)

[Next page](https://community.homey.app/t/howto-cast-your-home-assistant-dash-via-lan-to-your-google-hub-s/65263.md?page=2)
