E-mail:service@linpowave.com
WhatsApp:+852 84019376

Integrating mmWave Sensors with Home Assistant: A Step-by-Step Deep Dive

blog avatar

Written by

Ningbo Linpowave

Published
Sep 19 2025
  • radar

Follow us

Person standing in a factory with machinery in the background

Introduction: From Raw Data to Smart Home Intelligence

The HLK-LD1125H mmWave radar is a highly sensitive sensor capable of detecting micro-movements, velocity, and presence. Unlike traditional motion sensors, mmWave radars can track movement through small obstacles, detect micro-movements like breathing, and even differentiate multiple targets.

For smart home enthusiasts using Home Assistant, the main challenge is that the HLK-LD1125H outputs raw UART data, which cannot be directly interpreted. This guide provides a deep technical dive, covering radar principles, data parsing, integration, and practical automation scenarios to make mmWave sensors fully actionable in a smart home environment.


Understanding Radar Interfaces and Signal Principles

UART as the Primary Interface

The HLK-LD1125H communicates via UART (Universal Asynchronous Receiver/Transmitter). This serial protocol transmits data bit by bit and requires frame headers, payloads, and checksums to parse correctly.

Key Advantages of UART for Home Automation:

  • Simple wiring, widely compatible with microcontrollers.

  • Easier to bridge to smart home platforms compared to high-speed SPI or I2C alternatives.

Radar Signal Processing Basics

MmWave radars measure time-of-flight and Doppler shifts to calculate:

  • Distance (range): Time taken for signals to return.

  • Velocity: Using Doppler frequency changes.

  • Angle: From antenna array phase differences.

This allows micro-motion detection, such as breathing, and multi-target tracking, which traditional PIR sensors cannot achieve.

Reference: TI Radar Sensor Principles


Connecting HLK-LD1125H to Home Assistant

Hardware Bridge

Since the HLK-LD1125H outputs TTL UART data, it cannot directly communicate with Home Assistant. Use a microcontroller as a bridge:

  • ESP32 or Raspberry Pi Pico: Reads UART data and sends it via MQTT.

  • Raspberry Pi: Reads UART and processes data via Python scripts for Home Assistant.

Advantages:

  • Flexibility to customize data processing.

  • Reliable communication with Home Assistant without proprietary dependencies.

Using Custom Components

Home Assistant supports custom components to handle UART data. Using Python libraries such as pyserial, the raw hexadecimal data can be converted into Home Assistant sensors or binary sensors.

Example Workflow:

  1. Read UART data with microcontroller or Raspberry Pi.

  2. Parse hexadecimal frames into structured JSON.

  3. Publish data to MQTT topics for Home Assistant.


Parsing Raw Radar Data

HLK-LD1125H outputs sequences like:

AA BB 01 02 03 04 FF
  • AA: Frame header

  • FF: Checksum

  • Middle bytes: Encoded distance, velocity, and event flags

Data Field Conversion

  • Distance: Calculates the target's proximity.

  • Velocity: Measures movement speed.

  • Event Flag: Indicates detected motion.

Filtering and Noise Reduction

Environmental factors (fans, vibrations, small objects) may introduce noise. Apply filtering techniques:

  • Moving Average Filter: Smooths rapid fluctuations.

  • Kalman Filter: Provides robust dynamic state estimation for moving targets.

Reference: Radar Signal Processing Overview


Automation Scenarios in Home Assistant

Smart Lighting

  • Turn on lights when motion is detected.

  • Avoid false triggers from pets or small objects using velocity thresholds.

HVAC & Environmental Control

  • Adjust air conditioning or ventilation based on occupancy.

  • Reduce energy consumption while maintaining comfort.

Security and Presence Detection

  • Detect unexpected presence and trigger alerts.

  • Combine multiple radar sensors for improved spatial awareness.

Sample Automation YAML:

alias: Living Room Motion Trigger trigger: platform: mqtt topic: "home/livingroom/radar" condition: condition: template value_template: "{{ value_json.motion_detected }}" action: service: light.turn_on target: entity_id: light.living_room_main

Advanced Considerations

Sampling Rate vs Precision

  • Higher sampling rates improve micro-motion detection but require more processing power.

  • Balance frequency and payload size for Home Assistant efficiency.

Multi-Sensor Deployment

  • Multiple radars improve coverage and reduce false positives.

  • Use event fusion logic to aggregate readings for reliable automation triggers.

Environmental Interference

  • Airflow, vibrations, and metallic objects can cause false readings.

  • Combine radar data with environmental sensors for improved accuracy.


FAQ

Q1: Can HLK-LD1125H detect micro-movements like breathing?
A: Yes, with sufficient sampling rate and proper filtering.

Q2: Do I need MQTT for integration?
A: Recommended, as it allows microcontrollers to communicate reliably with Home Assistant.

Q3: How can I debug raw UART data?
A: Use serial monitoring tools to inspect and verify frame structure and payload correctness.

Q4: How does mmWave radar compare to PIR sensors?
A: MmWave offers high-precision motion, multi-target detection, and micro-motion sensing, whereas PIR sensors detect only larger movements.


Conclusion

Integrating HLK-LD1125H mmWave radar with Home Assistant transforms raw sensor bytes into actionable intelligence for smart homes. With radar principles, data parsing, and automation logic, you can achieve high-precision occupancy detection, energy-efficient lighting and HVAC control, and advanced security.

Further Reading:

With careful setup, mmWave radar can elevate your home automation from basic motion detection to intelligent, responsive, and micro-motion aware systems.

Related Blogs

    blog avatar

    Ningbo Linpowave

    Committed to providing customers with high-quality, innovative solutions.

    Tag:

    • mmWave radar
    • Linpowave radar
    • Home Assistant
    • HLK-LD1125H
    • MQTT
    • DIY radar integration
    Share On
      Click to expand more