Urgent.News

What's breaking now, across hundreds of outlets.

Tech

I automated my phone with Home Assistant for every drive, and Android Auto starts my music and changes my settings on its own

My phone handles the boring bits

I automated my phone with Home Assistant for every drive, and Android Auto starts my music and changes my settings on its own

Android Auto already manages navigation and music, but the author desires additional automatic functions when entering their vehicle. They envision Spotify resuming playback, notifications ceasing, and standard settings reinstating upon departure. Surprisingly, setting this up through Home Assistant proved simpler than anticipated.

The companion app includes a sensor that detects phone connection to Android Auto, enabling the creation of a driving routine. Among numerous sensors, the Android Auto sensor is of interest, located under Settings > Companion app > Manage sensors. Once enabled, it generates a binary sensor in Home Assistant, activating when connected to Android Auto and deactivating upon disconnection.

These states can serve as triggers for automations without installing on the car's infotainment system. To configure the automation, navigate to Settings > Automations & scenes in Home Assistant, create a new automation, and select the Android Auto sensor as a state trigger. The automation automatically executes actions when the sensor transitions to "on," occurring with Android Auto connection.

The reverse automation handles actions when the sensor returns to "off." The author prefers the Android Auto sensor as it indicates active Android Auto usage, regardless of cable or wireless connection. Subsequently, actions can be determined for each connection. Home Assistant's companion app offers actions to control phone settings remotely, including sound adjustments, music control, and enabling Do Not Disturb mode.

Actions like resuming Spotify playback and enabling Do Not Disturb are added to the automation, with Home Assistant executing them. Upon phone disconnection, Do Not Disturb is disabled. Additional modifications, such as media volume, screen brightness, and ringer settings, can be configured based on personal preferences. Samsung's Modes and Routines can adjust phone settings when connected to car Bluetooth, and Android Auto automatically resumes music.

Thus, if these are the sole desired changes, Home Assistant may not be necessary. Having an Android Auto connection as an automation trigger, which Home Assistant provides, offers intriguing possibilities. For instance, location tracking can be prepared for home arrival upon Android Auto connection and disabled post-drive, utilizing Home Assistant's companion app for high-accuracy tracking.

The author also suggests creating different routines for morning commutes and nighttime driving. A limitation is that Home Assistant must communicate with the server for automation execution. If connectivity is lost, some actions may not function as expected.

Rewritten by urgent.news; may contain errors — check the original.

Source: xda-developers.com

Read the original at xda-developers.com →

More from XDA Developers on urgent.news

Report a problem with this story

Get the day's news by email. Daily, weekly or monthly. Sign up

More in Tech

More from Thursday, 3 December 2026 →