Skip to content

Instantly share code, notes, and snippets.

@JorgeDLS
JorgeDLS / UpdatedCarParkedLocationWithHA.py
Last active March 15, 2023 09:45
Update car last parked location with Home Assistant
# First of all, create the following Helpers in Home Assistant:
# input_text.{Car}_last_parked_geocoded_location
# input_number.{Car}_last_parked_latitude
# input_number.{Car}_last_parked_longitude
# Then, in the file: automations.yaml, add the following block
# replacing {Car} for your car model and {Phone} for your phone model in Home Assistant.
- alias: Store location for {Car} from {Phone} when Android Auto disconnects
trigger:
- platform: state