Skip to Content

Leveraging Your Smartphone Sensors for Powerful Home Assistant Automations

Discover how to use your phone's battery, location, Wi‑Fi, Bluetooth and app sensors to trigger smart home actions in Home Assistant, with step‑by‑step examples and setup tips.
31 January 2026 by
TechStora Editorial Board

Why Use Your Phone as a Home Assistant Trigger

Your smartphone is almost always within reach, making it an ideal source of real‑time data for home automation. By exposing its built‑in sensors to Home Assistant you can create context‑aware actions without adding extra hardware.

Key Smartphone Sensors Available in Home Assistant

  • sensor.battery_state – Charging, Not Charging, Full
  • device_tracker (GPS) – Home, Work, custom zones
  • Wi‑Fi connection & signal strength
  • Bluetooth status and iBeacon broadcasts
  • App‑specific triggers (e.g., Sonos app opened)

Automation Examples

Below are practical automations that illustrate how each sensor can be used.

  • Night‑time light shutdown: When sensor.battery_state changes to Charging after 22:00, turn off all lights and smart plugs.
  • Work zone climate control: As soon as device_tracker enters the Work zone, set the thermostat to an energy‑saving temperature and disable unnecessary lights.
  • BLE iBeacon room presence: Broadcast an iBeacon from your phone; when the beacon is detected in the living‑room zone, turn on the TV and dim the lights.
  • Wi‑Fi based away detection: When your phone disconnects from the home Wi‑Fi, lock doors and close the garage door.
  • AirPods do‑not‑disturb mode: If Bluetooth shows your AirPods connected to the phone during work hours, enable a Do‑Not‑Disturb scene.
  • App‑triggered speaker power: Opening the Sonos app turns on the smart plug powering the Sonos speaker.

Setting Up Device Tracker and Zones

Install the Home Assistant mobile app, enable location tracking, and you’ll see a new device_tracker.your_device_name entity. Define additional zones (e.g., Work, School) in Configuration → Zones and assign them to the tracker.

Using BLE iBeacon for Room Presence

Enable the “BLE Scan” integration on your phone, configure it as an iBeacon transmitter, and create a binary sensor for each room. Use these sensors as triggers to control lights, speakers, or HVAC on a per‑room basis.

Combining Wi‑Fi and GPS for Faster Presence Detection

Add the Composite Device Tracker integration to merge Wi‑Fi and GPS data. Wi‑Fi disconnects fire instantly, while GPS provides broader location context. Example configuration:

  • composite: default_options: time_as: device_or_local require_movement: false trackers: - name: PhoneTracker time_as: local entity_id: - entity: binary_sensor.your_wifi_tracker_name all_states: true

Practical Automation Ideas to Try Today

  • Turn off all lights when your phone starts charging after bedtime.
  • Adjust thermostat when you arrive at work via GPS zone.
  • Activate “movie mode” when your phone’s Bluetooth connects to a TV remote.
  • Enable Do‑Not‑Disturb when AirPods are in use during work hours.
  • Power on smart plugs for entertainment devices when the corresponding app opens.

Getting Started Checklist

  • Install the Home Assistant mobile app on your smartphone.
  • Enable location, battery, Wi‑Fi, and Bluetooth sensor reporting.
  • Create zones for Home, Work, and any other frequent locations.
  • Set up the Composite Device Tracker integration for combined GPS/Wi‑Fi triggers.
  • Define automations using the sensor entities listed above.