Never Forget Where You Park Your Car Again

Without buying any GPS Tracker, with this solution you’ll use your Phone and it’s Bluetooth connection to your car to detect the moment you are in the car and the moment you leave your car (parked somewhere) and so trigger the GPS position from your Phone to a custom HA text field.

Create a new Helper “Park Location”

This helper will be used to save the location where your Phone Bluetooth “lose” the connection to the car:

  • Click Settings
  • Click button CREATE HELPER
  • Click Text

Detect your car Bluetooth ID

We need to know exactly how the Car Bluetooth device is called. So turn on the Bluetooth on your Phone and open HA Companion App:

  • Click on Developer Tools
  • Click on tab States
  • Filter by your mobile Phone Bluetooth connection name and click on it
  • Find the name of your car Bluetooth from the list of connected paired devices and take note of it

You should obtain a string similar to these: 75:A1:DE:56:63:98 (T24)

Create a new template sensor

This template will check the Bluetooth connection of your phone to your car and switch the Car Bluetooth sensor True/False.

Open your Configurator.yaml and add following code:

  - platform: template
        friendly_name: "Car Bluetooth"
        value_template: "{{('75:A1:DE:56:63:98 (T24)' in state_attr('sensor.sm_a525f_bluetooth_connection','connected_paired_devices'))}}"
        icon_template: mdi:car

Create an automation to save the parking position

Finally, we will combine the Car Bluetooth sensor as a trigger to detect when we leave the car with the GPS location phone sensor to save that location where we suppose we have parked.

Following the yaml code version:

alias: Save Parking Location
description: ""
  - platform: state
      - sensor.car_bluetooth
    to: "False"
    from: "True"
condition: []
  - service: input_text.set_value
      entity_id: input_text.park_location
      value: "{{ states('sensor.sm_a525f_geocoded_location') }}"
mode: single