Published Dec 3, 2026, 3:00 PM EST Anurag is an experienced journalist and author who’s been covering tech for the past 5 years, with a focus on Windows, Android, and Apple. He’s written for sites like Android Police, Neowin, Dexerto, and MakeTechEasier. Anurag’s always pumped about tech and loves getting his hands on the latest gadgets. When he's not procrastinating, you’ll probably find him catching the newest movies in theaters or scrolling through Twitter from his bed. Android Auto already handles navigation and music, but I want my phone to do a few more things automatically whenever I get into the car. For instance, I want Spotify to resume playing, notifications to stop bothering me, and my usual settings to return once the drive is over. It sounds like a complex automation, but when I actually set out to build it, it was nowhere near as complicated as I expected. It turns out the Home Assistant companion app has a sensor that detects when your phone connects to Android Auto. I used it to create a driving routine for my phone that does exactly what I described above. Home Assistant knows when Android Auto connects And you can use that to your advantage The Home Assistant companion app has a surprisingly long list of sensors that you can enable on your Android phone. These include battery information, connected Bluetooth devices, network status, and plenty of other things. The one we're interested in is the Android Auto sensor, which you can find under Settings > Companion app > Manage sensors. Once enabled, it creates a binary sensor in Home Assistant that switches on whenever your phone connects to Android Auto and off when it disconnects. You can also check its attributes to see whether the connection is wired or wireless. You can use these states as triggers for automations without installing anything on the car's infotainment system. To set up the automation, head to Settings > Automations & scenes in Home Assistant, create a new automation, and select the Android Auto sensor as a state trigger. I configured it to run when the sensor changes to on, which happens whenever Android Auto connects. The actions attached to this automation then run automatically. Similarly, the off state can trigger another automation to reverse the changes once the phone disconnects. You could also use your car's Bluetooth connection as a trigger, since Home Assistant can detect connected Bluetooth devices. I prefer the Android Auto sensor because it tells me when Android Auto is active, whether I'm using a cable or connecting wirelessly. My phone automatically prepares itself for every drive Thanks to Home Assistant's companion app Credit: With the connection trigger working, I can decide what my phone should do every time Android Auto connects. Home Assistant's companion app supports several actions that let you control your phone remotely, including changing its sound settings, controlling music playback, and enabling Do Not Disturb. You can add these actions directly to the automation, and Home Assistant handles executing them in the background. I started with Spotify. Whenever Android Auto connects, Home Assistant tells Spotify to resume whatever I was listening to previously. This works through the music app's existing playback session, so it picks up where I left off instead of starting a completely different playlist. The only catch is that Spotify needs an active media session for this to work. Next, I have Home Assistant enable Do Not Disturb so that notifications from random apps don't keep bothering me during a drive. You can configure exceptions for important calls and contacts through your phone's notification settings. I also wanted my phone to return to normal when I got out of the car. To do that, I configured Home Assistant to disable Do Not Disturb as soon as Android Auto disconnects. You can also extend the same routine to adjust media volume, screen brightness, and ringer settings depending on your preferences. Home Assistant can do a lot more You can build even more complex automations Samsung's Modes and Routines can already change your phone's settings when it connects to your car's Bluetooth, and Android Auto can resume music automatically. So, if those are the only things you want, you probably don't need Home Assistant. I already use Home Assistant for a lot of my home automations, so having an Android Auto connection available as a trigger opens up some interesting possibilities. For example, I have an automation that uses my phone's location to prepare my house before I arrive home. I can extend my driving routine to enable more accurate location tracking whenever Android Auto connects and disable it after the drive. Home Assistant supports this through its companion app, so you wouldn't have to keep high-accuracy tracking enabled throughout the day. You can also create different routines depending on the time of day, your location, or the status of other devices in your house. For instance, you could have one routine for your morning commute and another for nighttime driving. If you use Spotify's integration with Home Assistant, you can even have it select different playlists, as long as your playback device is available. One limitation is worth keeping in mind: since Home Assistant runs these automations through its server, your phone needs to communicate with it for everything to work. If you lose connectivity, some actions won't execute when expected. Samsung's built-in routines have an advantage here because they can run directly on your phone without relying on your Home Assistant server.
I automated my phone with Home Assistant for every drive, and Android Auto starts my music and changes my settings on its own
Full Article
Original Source
Read the full article at Xda-developers →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.