How to Add True Walk-Away Auto-Locking to Your Kia EV9 using Home Assistant

Published on October 3, 2026 at 8:20 p.m.

The Kia EV9 is packed with cutting-edge EV technology—from its 800V ultra-fast charging architecture to vehicle-to-load (V2L) capability. However, it still lacks one basic convenience feature found on many competitors: true native walk-away auto-locking.
If you get out of the car and walk away without touching the door handle sensor or pressing your key fob, the doors stay unlocked.Fortunately, thanks to open-source developer mesomorf1 and the power of Home Assistant, there is a smart workaround. By leveraging your smartphone’s wireless connection to the vehicle and encrypted remote access via Tailscale, you can enable reliable walk-away auto-locking on your EV9.
Here is the complete guide on how it works and how to set it up step-by-step.

How It Works: The Smart Wi-Fi Signal Trick

Because the EV9 doesn't send a simple "driver walked away" signal to Kia Connect, this Home Assistant automation relies on two key triggers:

  1. Android Auto / Apple CarPlay Disconnect: The automation arms itself as soon as your phone disconnects from wireless Android Auto or CarPlay (signaling that you turned off the car or stepped out).
  2. Vehicle Wi-Fi Drop: When the EV9 shuts off, its internal Wi-Fi access point remains broadcasted for roughly 6 minutes and 55 seconds before going completely sleep-mode quiet.

While you are walking away from the vehicle, your phone loses the car's Wi-Fi signal. Home Assistant detects this dropped BSSID connection, realizes you have walked out of range, and immediately transmits a Lock Doors command to your EV9 via the Kia Connect integration.
Safety Fallback: If your phone stays connected to the car's Wi-Fi for the entire 5-minute wait window (for instance, if you accidentally leave your phone inside the vehicle), the automation aborts automatically to prevent locking your phone inside the car.

Prerequisites

Before setting up the automation, make sure you have the following ready in your smart home stack:

  • Home Assistant Instance: Up and running with the Kia Connect / Hyundai Bluelink integration configured.
  • Home Assistant Companion App: Installed on your smartphone.
  • Mobile Sensors Enabled: In the Companion App (Settings -> Companion App -> Manage Sensors), enable both the Android Auto / CarPlay connection sensor and the Wi-Fi BSSID sensor.
  • Tailscale Account: A free Tailscale account to enable secure encrypted remote access so your phone can talk to Home Assistant when parked away from home without opening router ports.

Step-by-Step Setup Guide

1. Configure Secure Remote Access with Tailscale:

Required for phone-to-server communication when parked outside home Wi-Fi range. To ensure Home Assistant receives location updates and sends lock commands when you are away from home, set up encrypted remote access using Tailscale's Home Assistant integration guide:

  1. Install Tailscale Add-on: In Home Assistant, go to Settings -> Apps (or Add-ons) -> search for Tailscale -> click Install and Start.
  2. Link Your Tailnet: Open the Tailscale Web UI from Home Assistant and log into your Tailscale account to register your Home Assistant instance (homeassistant) onto your private Tailnet.
  3. Configure HTTP Proxy: Go to Settings -> System -> Network -> HTTP server, check Trust X-Forwarded-For, add 127.0.0.1 under Trusted Proxies, and save (Home Assistant will restart).
  4. Enable Tailscale Serve: Reopen Tailscale in Home Assistant and turn on Share Home Assistant with Serve. Copy your HTTPS Tailnet URL (e.g., https://homeassistant.your-tailnet.ts.net).
  5. Connect Smartphone: Install the Tailscale app on your smartphone, turn it on, and paste your Tailnet URL into the Home Assistant Companion App as your External Server URL.

2.Gather Your Home Assistant Entity IDs:

Locate the exact device and sensor names in your Home Assistant dashboard. Open Home Assistant and copy down the exact entity names for the following:

  • Phone Connected Sensor: e.g., binary_sensor.your_phone_android_auto or CarPlay entity.
  • Phone Wi-Fi BSSID Sensor: e.g., sensor.your_phone_wifi_bssid.
  • Car Wi-Fi MAC Address: The BSSID/MAC address of the EV9's Wi-Fi network (visible in your phone's Wi-Fi details or Home Assistant sensor state while sitting in the car).
  • EV9 Lock Entity: e.g., lock.ev9_door_lock.
  • EV9 Device ID: Found in Settings -> Devices & Services -> Devices -> Kia EV9.

 

3.Import the Walk-Away Automation Blueprint:

Based on mesomorf1's GitHub repository.
In Home Assistant, navigate to Settings -> Automations & Scenes -> Automations and click Add Automation -> Create New Automation (YAML mode). Paste the following structure provided by mesomorf1's GitHub repository:

alias: "EV9 - Walk Away Locking"
description: "Locks Kia EV9 doors when leaving using Android Auto / CarPlay and Wi-Fi disconnect"
trigger:
- platform: state
entity_id: [PHONE_CONNECTED_SENSOR]
from: "on"
to: "off"
condition: []
action:
- repeat:
while:
- condition: state
entity_id: [PHONE_WIFI_BSSID_SENSOR]
state: "[CAR MAC ADDRESS]"
sequence:
- delay:
hours: 0
minutes: 0
seconds: 5
milliseconds: 0
- choose:
- conditions:
- condition: not
conditions:
- condition: state
entity_id: [PHONE_WIFI_BSSID_SENSOR]
state: "[CAR MAC ADDRESS]"
sequence:
- service: lock.lock
target:
entity_id: [CAR_DOOR_LOCK_ENTITY]
device_id: [LOCK_DEVICE_ID]
mode: single

4.Replace the Placeholders:
Match the code to your specific devices.
Swap out each placeholder bracket ([...]) with your specific device details:

  • Replace [PHONE_CONNECTED_SENSOR] with your phone's Android Auto or CarPlay sensor.
  • Replace [PHONE_WIFI_BSSID_SENSOR] with your phone's Wi-Fi BSSID entity.
  • Replace [CAR MAC ADDRESS] with your EV9's wireless MAC address in lower-case format (xx:xx:xx:xx:xx:xx).
  • Replace [CAR_DOOR_LOCK_ENTITY] and [LOCK_DEVICE_ID] with your Kia's door lock entity and Home Assistant device ID.

 

5.Test and Calibrate:
Perform initial tests in a safe environment.
Save the automation and test it in your driveway or out in public:

  1. Turn off your EV9 and step out with your phone in hand.
  2. Walk away from the vehicle.
  3. Check your Home Assistant trace logs or listen for the EV9 double-beep to verify the doors auto-lock as you step out of range.

Important Tips & Considerations

  • Dead Phone Battery: If your phone powers off while driving, no disconnect signal is transmitted, so the automation will not execute.
  • Timing Window: The vehicle’s Wi-Fi hotspot turns off after roughly 6 minutes and 55 seconds. Do not set any wait or loop duration longer than this limit, or the automation will time out before registering your departure.
  • Credits: Special thanks to GitHub developer mesomorf1 for designing and sharing this YAML automation, and Tailscale for their zero-config remote access integration!

Add comment

Comments

There are no comments yet.