private@homelab: ~/latest
Home Assistant · Zigbee2MQTT · local control
private@homelab:~$ cat guides/article.md
·
· ·
11–17 minutes
read

Aqara FP310 Presence Sensor: Zigbee2MQTT + Home Assistant Local Setup

Set up the Aqara FP310 with Zigbee2MQTT and Home Assistant: check its protocol, pair locally, tune presence and environmental reporting, and understand OTA update support.

Aqara FP310 Presence Sensor: Zigbee2MQTT + Home Assistant Local Setup

The Aqara FP310 is a China-market, battery-powered presence sensor with temperature, humidity and illuminance measurements. It supports Zigbee2MQTT directly in Zigbee mode, so a local Home Assistant setup does not need an Aqara hub for day-to-day sensing.

Start by checking the protocol rather than assuming a new sensor needs a Thread-to-Zigbee cross-flash. Aqara’s China FAQ explicitly says Zigbee is the default. Its downloadable manual describes a different onboarding flow, so the guide below covers both an already-Zigbee unit and one that has been switched to Thread.

What Is the Aqara FP310, and Why 24GHz?

Aqara calls it AI 多维人在传感器 FP310 — AI multidimensional presence sensor FP310. 人体存在传感器 means a human-presence sensor, distinguishing this use from a simple motion-only detector. The manufacturer’s model is RTCZCGQ14LM, and Zigbee2MQTT identifies it as FP310 with Zigbee model lumi.sensor_occupy.acn1. The manual specifies two CR2450 cells, Thread, Zigbee and Bluetooth, and 24 GHz radar for presence detection. Aqara dates its China launch to 9 April 2026.

The radar detects subtle movement associated with a stationary person, rather than relying only on the larger motion needed by a conventional infrared motion sensor. Aqara recommends aiming the face toward the person to improve detection of breathing movement. It also combines presence with environmental readings, making one device useful for occupancy, daylight and room-temperature automations.

The FP300 uses PIR plus 60 GHz radar. Radar frequency alone does not establish which finished sensor detects a seated person better: antenna design, algorithms, mounting, distance and firmware all affect the result. There is no controlled comparison here that justifies ranking the FP310’s still-presence sensitivity below the FP300’s.

The FP310 manual states compliance with the applicable Chinese short-range-device categories for its radio and radar. That does not establish that an FP300’s 60 GHz band is illegal or that regulation was Aqara’s sole design motive. For a buyer, the useful distinctions are the exact regional product, supported mode and exposed controls.

FP310 vs FP300 — Which Should You Get?

Feature FP310 FP300
Documented market Aqara China product/support documentation Aqara global product range
Manufacturer model RTCZCGQ14LM PS-S04D / PS-S04E variants
Sensing 24 GHz radar presence; light, temperature and humidity PIR plus 60 GHz radar; light, temperature and humidity
Protocol Zigbee or Thread; FAQ says default Zigbee Zigbee or Thread
Battery Two CR2450 cells Two CR2450 cells
Zigbee2MQTT Supported as FP310 Supported as PS-S04D
OTA capability in current Z2M Included; compatible offered firmware still required Included; compatible offered firmware still required
Exposed controls Presence tuning, environment reporting and range Additional PIR/source options and composite-range control in the current definition

The current definitions are not identical, and OTA is not an FP310-exclusive advantage. In particular, the released FP300 definition also includes Zigbee OTA support. Check the FP300’s current OTA controls and offered firmware before considering an app-based update route.

Choose using regional support, seller warranty and the functions your installed integration exposes. A local FP300 may be easier to support outside China; an FP310 can fit a China-market installation without assuming that its frequency makes it better or worse in every room. Check prices at purchase time rather than treating an old launch price as a current offer.

The FP300 setup guide covers that model, while the FP2 and FP300 comparison discusses battery power versus the FP2’s different feature set. For the current FP300 OTA capability, use the PS-S04D device reference.

What You Need Before Starting

  • An FP310 with two correctly installed CR2450 batteries.
  • A supported Zigbee coordinator and a current Zigbee2MQTT release containing the FP310 definition. This guide was checked against 2.14.3 / converters 26.125.0 on 1 November 2026.
  • A working MQTT broker, Home Assistant’s MQTT integration and Zigbee2MQTT Home Assistant discovery enabled.
  • A phone with Aqara Home and Bluetooth if you need to change the protocol. A mandatory app conversion is not a prerequisite for a unit already running Zigbee.

Check your installed release’s supported-device list and the model actually reported during interview. Update to a supported release containing FP310 if the exact model is missing.

Normal Zigbee sensing and Home Assistant automations can stay local. Aqara app setup, protocol-firmware downloads and online firmware checks are separate operations that may need an account and internet access.

Step 1 — Check the FP310 Protocol

Aqara’s China FAQ says “默认协议是 Zigbee 协议” — the default protocol is Zigbee — and describes switching to Thread for Matter setup. The linked manual instead describes switching to Zigbee in its onboarding section. Treat those as conflicting documentation rather than proof that every retail unit ships with one particular firmware.

  1. If the sensor is new and already in Zigbee pairing mode, proceed to Permit join and let Zigbee2MQTT identify it.
  2. If it was previously used on Thread, open Aqara Home and start adding the device through Bluetooth. Select Zigbee in the protocol-selection screen and follow the app’s firmware-download and transfer instructions.
  3. Keep the batteries installed and let the protocol change complete. The manual warns that changing protocol resets settings/data; record any existing setup you intend to recreate.
  4. After conversion to Zigbee, pair it with your coordinator. Do not start an app conversion merely because one interview is slow.

The manufacturer’s reset controls distinguish two actions: hold the reset button for five seconds to reset network settings and enter pairing; press it quickly ten times for a factory reset that clears data. Choose the network reset for re-pairing and reserve the factory reset for clearing the device’s data.

The manual says removing the battery insulation starts pairing; if the window has expired, the five-second hold opens it again. Indicator descriptions vary by stage and protocol, so combine the manual/app indication with the coordinator log instead of identifying the protocol from an assumed blink pattern alone.

Step 2 — Pair the FP310 with Zigbee2MQTT

  1. Enable Permit join in the Zigbee2MQTT frontend.
  2. Wake or put the FP310 into pairing using its documented five-second reset-button hold if required.
  3. Allow the interview and configuration to finish. Confirm model FP310 and lumi.sensor_occupy.acn1.
  4. Rename it, for example to fp310_living_room, and close Permit join.
  5. Check live presence and environmental messages in Zigbee2MQTT before troubleshooting Home Assistant discovery.

The principal MQTT properties are presence, temperature, humidity, illuminance, battery and voltage. Home Assistant represents presence as a binary sensor, where detected presence is on. Battery voltage is reported in mV. Battery percentage may take time to appear; it is not a live precision fuel gauge.

target_distance is available as a range-setup aid. The manual describes distance to the strongest detected radar return, not necessarily the nearest person or a precise horizontal distance. Do not use it as reliable person tracking or assume a displayed distance proves which person occupies a desk.

Actual Home Assistant entity IDs can differ from these examples. If Zigbee2MQTT receives data but Home Assistant has no entities, check the same MQTT broker, discovery enablement and discovery prefix. The Zigbee2MQTT state base topic and Home Assistant’s discovery prefix serve different purposes; changing one does not mean manually subscribing the integration to a matching sensor topic.

The FP1E guide covers a global Zigbee presence option, but FP1E requires USB power. It is not a battery-powered substitute for FP310.

Step 3 — Configure Presence Detection

Mount the sensor before tuning it. The manual permits wall, desk and ceiling placement, recommends aiming toward the occupied area, and calls for screw fixing above two metres. Avoid fans, air-conditioning outlets, air purifiers and large strongly reflective surfaces where practical. The stated 6 m / 120° coverage is a laboratory maximum, not a promise for every angle or room.

  • presence_sensitivity: low, medium or high. Start with medium as a tuning choice and check seated occupants as well as walking movement.
  • absence_delay_timer: 10–300 seconds, in five-second steps in the released definition. This is 无人判定周期 — the absence-decision period. Interference or renewed detection can restart evaluation, so an off report is not guaranteed at precisely that many seconds after someone leaves.
  • detection_range: 0–6 m in the current exposed scalar control. Match the monitored room rather than assuming radar stops at every partition. Wake the device with its button when refreshing settings.
  • spatial_learning: start manual AI 空间背景学习 — background learning — after mounting. Keep the area empty for about 30 seconds as the manual directs. It also learns continuously; this is not a calibration that permanently freezes the room model.
  • ai_interference_source_selfidentification: interference-source identification for conditions such as fans and air conditioners.
  • ai_sensitivity_adaptive: adaptive sensitivity. Evaluate it in the actual room rather than assuming it eliminates every false presence.

Aqara’s manual describes discontinuous detection ranges in its app. The FP310 Zigbee2MQTT definition checked here exposes a numeric range, so do not assume its interface offers the same zone-selection UI. An FP2-style room with multiple independent presence zones is a different capability.

Environmental reporting: temp_and_humidity_sampling controls the temperature/humidity sampling group, while light_sampling controls light. Each accepts off, low, medium, high or custom. Temperature and humidity then have separate reporting interval, threshold and mode settings. They are not three independent sampling-mode selectors.

In custom mode, temperature/humidity sampling periods span 0.5–3600 seconds, with separate reporting intervals of 600–3600 seconds. Light sampling also spans 0.5–3600 seconds, and light reporting intervals span 20–3600 seconds. Reporting thresholds and interval/threshold combinations determine when readings are sent. More frequent sampling and reports can shorten battery life; change one setting at a time and check whether the automation needs the extra traffic.

Calibration: Zigbee2MQTT’s temperature and humidity offsets are absolute adjustments; illuminance uses a percentage adjustment. Temperature/humidity precision options can reduce decimal places up to the documented range, not create additional measurement accuracy. These are converter-side processing options applied to incoming reports, not values written into the sensor’s own calibration.

LED schedule: use led_disabled_night, schedule_start_time and schedule_end_time, with times in HH:MM. Check the result in the room and keep the device’s time handling in mind after setup.

Building Automations in Home Assistant

Use the discovered presence entity for standard binary-sensor automations. Replace these example entity IDs with yours. The first turns lights on when presence becomes detected:

automations.yaml
alias: FP310 - Lights on presence
triggers:
  - trigger: state
    entity_id: binary_sensor.fp310_living_room_presence
    to: "on"
actions:
  - action: light.turn_on
    target:
      entity_id: light.living_room

The sensor already evaluates its configured absence delay before reporting no presence. You may still add a Home Assistant delay if the household needs a longer grace period. This example responds immediately to a reported off state:

automations.yaml
alias: FP310 - Lights off no presence
triggers:
  - trigger: state
    entity_id: binary_sensor.fp310_living_room_presence
    to: "off"
actions:
  - action: light.turn_off
    target:
      entity_id: light.living_room

Use an extra occupancy, time-of-day or temperature condition where a false absence would cause an inconvenient shutdown. A presence sensor is a comfort-automation input, not proof that a room is safe to power down.

Presence plus room conditions: illuminance can gate an automation, but darkness alone does not show that air conditioning is needed. This example also checks room temperature and selects cooling explicitly on a compatible climate entity:

automations.yaml
alias: FP310 - Cool occupied warm room
triggers:
  - trigger: state
    entity_id: binary_sensor.fp310_living_room_presence
    to: "on"
conditions:
  - condition: numeric_state
    entity_id: sensor.fp310_living_room_illuminance
    below: 100
  - condition: numeric_state
    entity_id: sensor.fp310_living_room_temperature
    above: 28
actions:
  - action: climate.set_temperature
    target:
      entity_id: climate.living_room_ac
    data:
      hvac_mode: cool
      temperature: 24

The 100 lux, 28°C and 24°C values are example preferences. Confirm that your climate entity supports cooling and temperature control. This automation checks conditions when presence turns on; if you also want it to react when the occupied room later becomes hotter, add a temperature trigger and retain a presence condition.

Distance-based automations need particular care. Use track_target_distance for setup and compare the reported estimate with the real room. For “someone is at the desk,” test the geometry and update behavior first; the range reading is not a substitute for independent zone detection.

OTA Firmware Updates in Zigbee2MQTT

The current FP310 device reference and released converter include OTA support. Aqara’s China FAQ describes updates through Aqara Home only, so distinguish that vendor-supported path from Zigbee2MQTT’s community implementation. An OTA-capable definition does not promise that an update for every installed firmware is published or offered.

  1. Record the installed firmware and review the offered update information.
  2. Open the FP310’s OTA controls in Zigbee2MQTT and check for an update.
  3. Proceed only if a matching image is offered. Keep the sensor powered and within reliable range while transfer completes.
  4. After updating, check presence, reporting and any configuration your automations depend on.

The transfer to the sensor uses Zigbee. The default firmware index and image retrieval use the internet; calling the whole update process offline would be misleading. No available image is not a reason to install a file for a different regional model. The current FP300 definition also supports OTA, so it is not a valid reason by itself to import an FP310.

Troubleshooting

No join: confirm batteries, the five-second pairing action, Permit join and radio coverage. If the sensor was on Thread, inspect the protocol through Aqara Home. A default-Zigbee device does not need a speculative firmware conversion as the first fix.

Interview or configuration failure: keep the actual error, wake the device and try within reliable range. Reconfigure retries converter configuration; it is distinct from a new interview. The current released definition explicitly configures presence reporting to address the case where presence stops updating after idle while environmental reports continue; check that definition and firmware before blaming every gap on MQTT.

False presence: with the room empty, run background learning, check fan/curtain/airflow interference, adjust the monitored range, then compare sensitivity and adaptive settings. Avoid labeling fans as the universal cause; reflective surfaces and placement also matter.

Environmental readings look wrong: compare co-located sensors after stabilization, check sampling/reporting settings and apply justified offsets. Do not assume an unexplained one- or two-degree difference is normal for every unit.

Entities missing after restart: first determine whether Zigbee2MQTT still receives current presence. Then check MQTT connection, discovery settings, disabled entities and retained discovery configuration in Home Assistant. This separates a device-reporting problem from an integration problem.

Availability Outside China

The FP310 documentation is for the China-market product, and Aqara China’s site limits its stated sales/service scope to mainland China. Import availability, warranty and app-region behavior should be confirmed with the seller; no particular cross-border listing or current price is established here.

Outside China, the global FP300 may be easier to obtain with local support. Choose between the exact models on warranty, features and installation rather than a blanket 24 GHz versus 60 GHz sensitivity claim. If continuous power and different presence features suit the room, the FP2 local setup guide covers a separate Wi-Fi option.

For Thread/Matter, use the correct protocol and a compatible Matter controller/Thread border router. An Aqara M3 can form part of that arrangement, but it is not the only possible controller path and should not be described as a prerequisite for local Zigbee2MQTT sensing.

FAQ

Does FP310 work without an Aqara hub?
Yes. In Zigbee mode it can join a supported Zigbee2MQTT coordinator and report through MQTT to Home Assistant. Aqara Home may be needed for a protocol change, not for every routine local reading.

Must a new FP310 be cross-flashed from Thread?
No universal requirement is established. The China FAQ says default Zigbee, while the linked manual’s onboarding wording differs. Check the actual mode; change it only if necessary.

How do I reset it?
The manual distinguishes a five-second hold for network reset/pairing from ten rapid presses for factory reset. Protocol switching also clears settings/data, so preserve anything you need before changing it.

What differs from FP300?
FP310 uses 24 GHz radar and China-market documentation; FP300 uses PIR plus 60 GHz radar and has global variants. Their current Zigbee2MQTT option sets differ, and both include OTA capability. No tested sensitivity ranking is claimed.

Are Zigbee2MQTT updates guaranteed?
No. The definition supports OTA, but a matching image must be available. Aqara documents its own app update path; online retrieval and local sensing are separate dependencies.

Sources and version: checked on 1 November 2026 against Aqara China’s FP310 FAQ and linked manual, model specifications, FP300 specifications, FP310’s integration reference and released converter 26.125.0. Configuration examples were reviewed without operating hardware.

local-firstHome Assistantno-cloud