Hi everyone, I wanted to share my recent experience with integrating Google Travel Time into my smart home setup. After watching some upcoming features for Google Home, I thought it would be awesome to have proactive notifications for traffic on my way to important events. I’ve been working on an automation that checks traffic conditions between my current location and my next calendar event, and sends a notification if traffic significantly impacts my travel time.
Here’s how it works: first, it grabs the location from my calendar, then uses the Google Travel Time component to compare travel times with and without traffic. If the traffic-affected time is at least 10% higher than the usual time, and if I don’t have enough time to get there considering my preferred buffer, it sends a notification.
I’d love to hear if anyone else has used this setup and how it worked for them! Also, if anyone has suggestions on how to improve the automation or make it more reliable, I’d be grateful. Maybe there’s a way to integrate more data sources or make the notifications even more proactive.
One thing I’m thinking about is how to handle different types of events—like work meetings versus casual hangouts. It might be cool to have different notification priorities based on the event type. But for now, I’m just happy it’s working and helping me avoid traffic headaches!
If anyone wants to try this out, here’s the code I’m using. Feel free to tweak it to suit your needs, and let me know how it goes! ![]()
![]()