https://github.com/n8henrie/fauxmo
(Not my project.)
The one thing I've learned about smart home is if you come up with a cool idea of how to do it DIY, someone's done it similarly and better. Wrote my own code for everything and ended up ditching it all for HomeAssistant.
Btw, I don't think the Google Home can actually control Chromecast. They advertise it but each time I've tried stuff like "Okay Google, mute my TV" or "Okay Google, turn off Chromecast" it's said something along the lines of "Sorry, I can't do that yet, but I'm getting better every day". I switched off the Google Home after 2 weeks back for the Echo, so maybe it's gotten better.
My favorite related thing to say is "Hey Google, play House of Cards on my TV", and it will turn on my TV and then start playing the next episode from Netflix. Perfect for when I'm walking over to the TV with my dinner.
[0]: https://blog.google/products/home/google-home-holidays/
Out of curiosity, do you know if the the flow I describe works now? The link (and your comment) discuss putting content on the TV. The link says you can do:
> even control your media with commands like “Pause this episode”, without lifting a finger.
but that didn't work for me 3 weeks ago, does it work now?
https://www.hackster.io/awshome/awshome-home-automation-usin...