Ive been struggling for a long time to get a smart way to cast Lovelace to my Nest Hub. Im not an expert and Im sure its a better way, but I could not find it anywhere. So I decided to share how I did it.
In short:
I have created an integration with IFTTT to fire a script that start the cast. reason: wanted a clever way to get it started if its not already casting to the nest hub.
I also created a script that at least work to get this working (feel free to let me know if its a smarter way).
I haven’t timed it, but it times out after probably 10 min. But then its just to ask google to cast and it comes back on. In my opinion its fine that it only shows when you ask for it
Does the hub have a proximity sensor you can see in HA? otherwise you can work with a small zigbee proximity sensor which triggers the casting automation when walking up to the hub.
Does it work well, lovelace dashboard on nest hub? I’m thinking of buying 1 myself instead of mounting a tablet to the wall.
Now I can see that when I say my keyword to the nest hub it goes in cast mode, connects to home assistant but doesn’t start the lovelace tab that I configured in my view_path (weather_station). If i change that to the default lovelace tab (default_view) that one is shown, so the chain ifttt->automation->script works.
I manually configured the name weather_station in the lovelace optional URL, here is the part of the lovelace configuration that does that:
Why use IFTTT? Why not using Google assistant? So you can expose a script directly? Or even make a template switch, so the button is actually visible on the hub itself to turn on the cast?
Ciao Fabio, I personally don’t need a button on the hub cause I want to call the script via voice command.
If I can avoid IFTTT I’m happy to do it, but I need the script to work properly in the first place before I think about more efficent ways to call it…
This is very interesting. I use a motion sensor in my kitchen with an automation that turns on the light and says good morning on my Nest Hub. I’ve been looking to expend its functionality since the basics work very well. Being able to cast a useful view to the hub would allow me to show some relevant info for the day. Timing out after 10 minutes would be fine in my case.
Turns out my problem (tab not being casted, only the default_view) was not only my problem but a well known and yet not resolved bug. In the meantime there is a weird workaround which I gladly write here cause it worked for me: