Skip to content

Add custom Matter entities for Aqara Spatial Multi-Sensor FP400 - #195403

Open
lanthaler wants to merge 1 commit into
home-assistant:devfrom
lanthaler:fp400
Open

lanthaler wants to merge 1 commit into
home-assistant:devfrom
lanthaler:fp400

Conversation

@lanthaler

Copy link
Copy Markdown
Contributor

Breaking change

Proposed change

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New integration (thank you!)
  • New feature (which adds functionality to an existing integration)
  • Deprecation (breaking change to happen in the future)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests (refactoring, typing, performance, etc.)
  • Developer tooling (CI, GitHub workflows, linters and checkers, scripts, AI instructions, code owners)

Additional information

  • This PR fixes or closes issue: n/a
  • This PR is related to issue: n/a
  • Link to documentation pull request: n/a
  • Link to contributors documentation pull request: n/a
  • Link to frontend pull request: n/a

Checklist

  • I understand the code I am submitting and can explain how it works.
  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • I have followed the development checklist
  • I have followed the perfect PR recommendations
  • The code has been formatted using Ruff (ruff format homeassistant tests)
  • Tests have been added to verify that the new code works.
  • Any generated code has been carefully reviewed for correctness and compliance with project standards.

If user exposed functionality or configuration variables are added/changed:

If the code communicates with devices, web services, or third-party tools:

  • The manifest file has all fields filled out correctly.
    Updated and included derived files by running: python3 -m script.hassfest.
  • New or updated dependencies have been added to requirements_all.txt.
    Updated by running python3 -m script.gen_requirements_all.
  • For the updated dependencies a diff between library versions and ideally a link to the changelog/release notes is added to the PR description.

To help with the load of incoming pull requests:

@lanthaler
lanthaler requested a review from a team as a code owner November 29, 2026 22:46
Copilot AI adaptive review requested due to automatic review settings November 29, 2026 22:46
@home-assistant

home-assistant Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

👋 Hi! Thanks for contributing to Home Assistant.

This is your PR dashboard which flags anything you need to address before your PR can be reviewed. Once everything is green, you can press the 'Ready for review' button at the bottom of the page to notify reviewers to take a look.

More information about this dashboard

This dashboard automatically updates on every change to this PR and reevaluates the rules as you go. Until everything has been addressed, the bot will keep the PR in draft.

Skip a check that doesn't apply

If you think a check doesn't apply to your PR (or the rule is bugged), comment @home-assistant ignore "<check name>" "<reason>". The check name as shown in the table above. This will mark the check as ignored and let you put your PR in 'Ready for review'; @home-assistant unignore "<check name>" restores the rule.

Bot commands

Reply with @home-assistant <command>. Several commands can be stacked, one per line:

  • update — Re-runs the bot's checks on the issue or pull request.
  • ignore — Waives a dashboard check: ignore "<check name>" "<reason>". (author) — e.g. @home-assistant ignore "Merge conflicts" "Broken rule, no merge conflicts present"
  • unignore — Restores a waived dashboard check: unignore "<check name>". (author) — e.g. @home-assistant unignore "Merge conflicts"
  • unassign — Removes the given integration domain's label and its code owners from the assignees. (author or code owners) — e.g. @home-assistant unassign "opensky"
  • close — Closes the issue or pull request. (code owners)
  • reopen — Reopens the issue or pull request. (code owners)
  • rename — Renames the issue or pull request: rename "<new title>". (code owners) — e.g. @home-assistant rename "A more descriptive title"
  • add-label — Adds a label (needs-more-information, problem in dependency, problem in custom component, problem in config, problem in device, feature-request) to the issue or pull request. (code owners) — e.g. @home-assistant add-label "needs-more-information"
  • remove-label — Removes a label (needs-more-information, problem in dependency, problem in custom component, problem in config, problem in device, feature-request) from the issue or pull request. (code owners) — e.g. @home-assistant remove-label "needs-more-information"
  • mark-draft — Marks the pull request as draft. (code owners)
  • update-branch — Updates the pull request branch with the base branch. (code owners)

Checks

✨ Everything's in order!

5 checks passed (6 skipped)
Status Check Details
✅ Forbidden files No forbidden files.
✅ Merge conflicts Merge status is being recalculated by GitHub.
✅ Merge target This PR targets dev.
✅ Type of change Type of change: new-feature
✅ CLA Everyone involved has signed the CLA.
➖ New integration validation Not a new-integration PR.
➖ Single new platform No new platforms added.
➖ Documentation Not a new integration or platform — no documentation PR required.
➖ Belongs together No pull requests listed.
➖ Code owner approval Touches no platinum integration — no code-owner approval required.
➖ Blocking: awaiting-frontend awaiting-frontend label not set — nothing to block.

@home-assistant home-assistant Bot added has-tests integration: matter new-feature Quality Scale: No score Top 100 Integration is ranked within the top 100 by usage Top 200 Integration is ranked within the top 200 by usage Top 50 Integration is ranked within the top 50 by usage labels Nov 29, 2026
@home-assistant

Copy link
Copy Markdown
Contributor

Hey there @home-assistant/matter, mind taking a look at this pull request as it has been labeled with an integration (matter) you are listed as a code owner for? Thanks!

Code owner commands

Reply with @home-assistant <command>:

  • update — Re-runs the bot's checks on the issue or pull request.
  • ignore — Waives a dashboard check: ignore "<check name>" "<reason>". (author) — e.g. @home-assistant ignore "Merge conflicts" "Broken rule, no merge conflicts present"
  • unignore — Restores a waived dashboard check: unignore "<check name>". (author) — e.g. @home-assistant unignore "Merge conflicts"
  • unassign — Removes the given integration domain's label and its code owners from the assignees. (author or code owners) — e.g. @home-assistant unassign "opensky"
  • close — Closes the issue or pull request. (code owners)
  • reopen — Reopens the issue or pull request. (code owners)
  • rename — Renames the issue or pull request: rename "<new title>". (code owners) — e.g. @home-assistant rename "A more descriptive title"
  • add-label — Adds a label (needs-more-information, problem in dependency, problem in custom component, problem in config, problem in device, feature-request) to the issue or pull request. (code owners) — e.g. @home-assistant add-label "needs-more-information"
  • remove-label — Removes a label (needs-more-information, problem in dependency, problem in custom component, problem in config, problem in device, feature-request) from the issue or pull request. (code owners) — e.g. @home-assistant remove-label "needs-more-information"
  • mark-draft — Marks the pull request as draft. (code owners)
  • update-branch — Updates the pull request branch with the base branch. (code owners)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the FP400 integration changes.

No open issues 🎉

What changed in this PR

Adds Aqara Spatial Multi-Sensor FP400 support to Home Assistant’s existing Matter integration through custom sensor and configuration entities.

Changes:

  • Adds human count, installation diagnostics, zone count, five configuration selects, installation height, and an AI spatial learning button.
  • Adds translated entity names, options, and icons.
  • Adds a device fixture, behavior tests, and discovery snapshots.
File Description
tests/​components/​matter/​test_sensor.py Tests sensor updates and unknown human counts.
tests/​components/​matter/​test_select.py Tests configuration writes and option updates.
tests/​components/​matter/​test_number.py Tests installation height limits and writes.
tests/​components/​matter/​test_button.py Tests the spatial learning command.
tests/​components/​matter/​snapshots/​test_sensor.ambr Records sensor metadata and initial states.
tests/​components/​matter/​snapshots/​test_select.ambr Records select options and initial states.
tests/​components/​matter/​snapshots/​test_number.ambr Records number entities and limits.
tests/​components/​matter/​snapshots/​test_button.ambr Records learning and identify buttons.
tests/​components/​matter/​snapshots/​test_binary_sensor.ambr Records occupancy entities across endpoints.
tests/​components/​matter/​fixtures/​nodes/​aqara_presence_fp400.json Supplies FP400 device data for tests.
tests/​components/​matter/​common.py Includes FP400 in shared device tests.
homeassistant/​components/​matter/​strings.json Adds entity names and option translations.
homeassistant/​components/​matter/​sensor.py Defines custom measurement and diagnostic sensors.
homeassistant/​components/​matter/​select.py Defines five configuration selects and value mappings.
homeassistant/​components/​matter/​number.py Adds installation height with device-reported limits.
homeassistant/​components/​matter/​icons.json Adds icons for the new entities.
homeassistant/​components/​matter/​button.py Adds the AI spatial learning button.

Review effort: Balanced (adaptive)

Copilot AI adaptive review requested due to automatic review settings November 29, 2026 23:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The external Aqara cluster definitions require validation against matter-python-client==1.6.1, particularly the enum values and learning command, in an environment with that dependency.

No open issues 🎉

Review effort: Balanced (adaptive)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

has-tests integration: matter new-feature Quality Scale: No score Top 50 Integration is ranked within the top 50 by usage Top 100 Integration is ranked within the top 100 by usage Top 200 Integration is ranked within the top 200 by usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants