prefixkit Ask an engineerAsk Support RU

Zigbee devices Motion and presence sensors

Aqara FP310

Presence sensor FP310. Works with Zigbee2MQTT with no vendor hub or cloud: it pairs with a Zigbee stick and shows up in Home Assistant.

Vendor
Aqara
Model
FP310
Type
Motion and presence sensors
Power
battery: an end device, does not extend the mesh
Firmware updates (OTA)
yes, through Zigbee2MQTT

Find it in shops: AliExpress

Links open a search in the shop; some are affiliate links: buying through them costs you nothing extra and supports this site. We do not sell devices or get them from manufacturers.

What it exposes

FeaturePropertyValuesControl
Batterybattery% · 0…100read only
VoltagevoltagemVread only
Presencepresence—read only
Illuminanceilluminancelxread only
Humidityhumidity%read only
Temperaturetemperature°Cread only
Presence sensitivitypresence_sensitivitylow, medium, highsettable
Absence delay timerabsence_delay_timersec · 10…300settable
Spatial learningspatial_learningStart Learningsettable
Restart devicerestart_deviceRestart Devicesettable
Ai interference source selfidentificationai_interference_source_selfidentification—settable
Ai sensitivity adaptiveai_sensitivity_adaptive—settable
Temp and humidity samplingtemp_and_humidity_samplingoff, low, medium, high, customsettable
Temp and humidity sampling periodtemp_and_humidity_sampling_periodsec · 0.5…3600settable
Temp reporting intervaltemp_reporting_intervalsec · 600…3600settable
Temp reporting thresholdtemp_reporting_threshold°C · 0.2…3settable
Temp reporting modetemp_reporting_modethreshold, reporting interval, threshold and intervalsettable
Humidity reporting intervalhumidity_reporting_intervalsec · 600…3600settable
Humidity reporting thresholdhumidity_reporting_threshold% · 2…15settable
Humidity report modehumidity_report_modethreshold, reporting interval, threshold and intervalsettable
Light samplinglight_samplingoff, low, medium, high, customsettable
Light sampling periodlight_sampling_periodsec · 0.5…3600settable
Light reporting intervallight_reporting_intervalsec · 20…3600settable
Light reporting thresholdlight_reporting_threshold% · 3…20settable
Light report modelight_report_modethreshold, reporting interval, threshold and intervalsettable
Track target distancetrack_target_distancestart_tracking_distancesettable
Target distancetarget_distancemread only
Detection rangedetection_rangem · 0…6settable
Led disabled nightled_disabled_night—settable
Identifyidentifyidentifysettable

MQTT: state and commands

Zigbee2MQTT publishes the device state to zigbee2mqtt/my_device (my_device is the name you give the device). An example message:

{
  "battery": 87,
  "voltage": 2950,
  "presence": false,
  "illuminance": 120,
  "humidity": 46.2,
  "temperature": 21.6,
  "presence_sensitivity": "low",
  "absence_delay_timer": 155,
  "spatial_learning": "Start Learning",
  "restart_device": "Restart Device",
  "ai_interference_source_selfidentification": false,
  "ai_sensitivity_adaptive": false,
  "temp_and_humidity_sampling": "off",
  "temp_and_humidity_sampling_period": 1800,
  "linkquality": 120
}

Send commands to zigbee2mqtt/my_device/set:

mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"presence_sensitivity":"medium"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"ai_interference_source_selfidentification":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"ai_sensitivity_adaptive":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"temp_and_humidity_sampling":"low"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"temp_reporting_mode":"reporting interval"}'

Watch the topics live from the browser: MQTT client.

Home Assistant automation example

Zigbee2MQTT creates Home Assistant entities from the device name. If it is called my_device, an automation in automations.yaml can look like this:

- alias: "Light on motion"
  mode: single
  triggers:
    - trigger: state
      entity_id: binary_sensor.my_device_presence
      to: "on"
  conditions:
    - condition: sun
      after: sunset
  actions:
    - action: light.turn_on
      target:
        entity_id: light.hallway

Check the YAML: YAML checker.

How to pair it

  1. In Zigbee2MQTT click Permit join.
  2. Put the device in pairing mode: usually a long press of the reset button (5–10 s) until the LED blinks; bulbs: switch the power off and on 5–6 times.
  3. Keep the device close to the coordinator or a router while pairing.
  4. Give it a clear name: MQTT topics and Home Assistant entities are built from it.

Exact procedure and model notes: the device page in the Zigbee2MQTT docs. No coordinator yet: coordinator picker.

Similar devices

Idea?