GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - daspl1ff/ha-aqara-fp400: Home Assistant Aqara FP400 Card & Controls

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

27 Commits
27 Commits

Folders and files

NameName
Last commit message
Last commit date
custom_components/aqara_fp400
custom_components/aqara_fp400
 
 
docs
docs
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
CARD_NOTES.md
CARD_NOTES.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
hacs.json
hacs.json
 
 
ruff.toml
ruff.toml
 
 

Repository files navigation

Aqara FP400 (Matter) for Home Assistant

Zones, live people positions and setup commands for the Aqara Spatial Multi-Sensor FP400 in Matter/Thread mode — the parts the Aqara app does (when it works) that plain Matter does not expose.

It rides on Home Assistant's Matter integration: same server connection, same fabric, no extra pairing. Entities land on a " radar" device linked to the sensor's Matter device.

The zone card: sensor at the top, a painted zone with a tracked person in it, the monitoring range outlined

Installation

  1. Add https://github.com/RAR/ha-aqara-fp400 as a custom repository in HACS (category: Integration) and install it, or copy custom_components/aqara_fp400 into your config/custom_components.
  2. Restart Home Assistant and add the Aqara FP400 (Matter) integration from Settings → Devices & services. It finds every FP400 on the Matter integration by itself.
  3. Add the zone card to a dashboard (see below). The integration registers the card resource itself.

Requirements

  • Home Assistant 2026.9 or newer with the Matter integration and the FP400 commissioned.
  • A Matter server that knows the FP400's vendor clusters. That is the OHF Matter Server with this change (branch aqara-fp400, image built from docker/matterjs-server/Dockerfile.dev) (custom cluster aqara.ts) — until it is released you need a server built from that branch. Reading works without it; zone commands and the position stream need it.

What you get

The device page in Home Assistant: sensors, configuration selects and numbers, diagnostic entities

Entity Meaning
sensor.<name>_radar_zones number of zones; attribute zones holds [{id, type, enabled, cells: [[row, col], …]}]
sensor.<name>_radar_regions number of non-empty regions; attribute regions holds {entry_exit, interference, monitoring: [[row, col], …]}
sensor.<name>_radar_tracked_people people currently tracked; attribute targets = [{id, x, y, row, col, activity, zones}] (cm)
sensor.<name>_radar_target_N_x / _y position of target N (disabled by default; enable for radar map cards)
sensor.<name>_radar_last_motion last motion event: enter / left / left_in / right_out / right_in / left_out / access / away
sensor.<name>_radar_activity_state / _human_count activity (unknown/active/still) and the device's people count
sensor.<name>_radar_install_status / _install_angle orientation from the tilt sensor (diagnostic)
select.<name>_radar_install_mode / _side_install / _coordinate_reverse / _detection_direction / _proximity_distance_level install and detection settings
number.<name>_radar_install_height mounting height in mm (limits from the device)
switch.<name>_radar_live_tracking keeps the position stream alive (~7 updates/s while someone moves)
button.<name>_radar_start_background_learning starts the AI space background learning
button.<name>_radar_clear_zones removes all zones

Zones themselves show up through the Matter integration as extra occupancy sensors (one child endpoint per zone) after a re-interview of the node — they are motion-triggered with the zone's own hold time.

Services

action: aqara_fp400.set_zones
data:
  device_id: <the FP400 device>
  zones:
    - id: 1
      cells: "3-4,6-10"        # rows 3-4, columns 6-10
    - id: 2
      cells: [[2, 8], [2, 9]]  # explicit [row, column] cells
      enabled: true

aqara_fp400.clear_zones, aqara_fp400.subscribe_location (timeout in seconds, max 3600) and aqara_fp400.start_learning take just device_id.

Regions (the entry/exit, interference and monitoring-range areas, drawn as cell masks on the same grid) are set the same way:

action: aqara_fp400.set_region
data:
  device_id: <the FP400 device>
  region: entry_exit        # or: interference, monitoring
  cells: "6-7,4-6"          # rows,cols range, or explicit [[row, col], …]

aqara_fp400.clear_region takes device_id and region. Clearing the monitoring region means the full grid (the device would detect nobody if the range were empty). The zone card can paint zones and all three regions — switch layers with the buttons above the grid.

The grid

16 columns × 20 rows of roughly 50 cm cells. Row 0 is the row nearest the sensor, column 8 is straight ahead; columns grow as x decreases (column ≈ 8 − round((x + 25) / 50), row ≈ y / 50). x/y in the target attributes are centimetres (y = distance from the sensor). The layout was verified by letting the device assign a person to single-column test zones.

Zone card

The integration serves a Lovelace card (pictured above); add it as a manual card:

type: custom:aqara-fp400-zone-card
entity: sensor.aqara_spatial_multi_sensor_fp400_radar_zones
title: Master bedroom      # optional
sensor_at: top             # optional; top (like the Aqara app) or bottom

Pick a layer at the top (Zones, or one of the three regions), select a zone chip or Add zone, then click or drag on the grid to paint (painting over another zone's cell moves the cell; Erase removes cells from any zone). The panel under the chips enables/disables or deletes the selected zone. Regions are drawn as outlines and painted as a fill while you edit them. Save writes the change to the device. Tracked people are drawn as dots (hollow when still); cells outside the monitoring range are shaded. Turn on the live tracking switch to see people move.

Development

Tests run inside a Home Assistant core checkout so they can reuse the Matter test fixtures:

ln -s $PWD/custom_components/aqara_fp400 <core>/tests/testing_config/custom_components/aqara_fp400
cp tests/test_integration.py <core>/tests/components/matter/test_zz_aqara_fp400.py
cd <core> && pytest tests/components/matter/test_zz_aqara_fp400.py

The aqara_presence_fp400 node fixture referenced by the tests is part of the Home Assistant change that adds the FP400 entities to the Matter integration.

License

MIT, see LICENSE.

About

Home Assistant Aqara FP400 Card & Controls

Resources

Readme
License
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.