prefixkit Ask an engineerAsk Support RU

Zigbee devices Motion and presence sensors

Aqara PS-S04D

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

Vendor
Aqara
Model
PS-S04D
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
Power outage countpower_outage_count—read only
Motion sensitivitymotion_sensitivitylow, medium, highsettable
Batterybattery% · 0…100read only
VoltagevoltagemVread only
Presencepresence—read only
Pir detectionpir_detection—read only
Presence detection optionspresence_detection_optionsboth, mmwave, pirsettable
Ai interference source selfidentificationai_interference_source_selfidentification—settable
Ai sensitivity adaptiveai_sensitivity_adaptive—settable
Absence delay timerabsence_delay_timersec · 1…300settable
Pir detection intervalpir_detection_intervalsec · 2…300settable
Illuminanceilluminancelxread only
Humidityhumidity%read only
Temperaturetemperature°Cread only
Spatial learningspatial_learningStart Learningsettable
Restart devicerestart_deviceRestart Devicesettable
Identifyidentifyidentifysettable
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_range0…16777215settable
Detection range compositedetection_range_composite—read only
Led disabled nightled_disabled_night—settable

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:

{
  "power_outage_count": 0,
  "motion_sensitivity": "low",
  "battery": 87,
  "voltage": 2950,
  "presence": false,
  "pir_detection": false,
  "presence_detection_options": "both",
  "ai_interference_source_selfidentification": false,
  "ai_sensitivity_adaptive": false,
  "absence_delay_timer": 151,
  "pir_detection_interval": 151,
  "illuminance": 120,
  "humidity": 46.2,
  "temperature": 21.6,
  "linkquality": 120
}

Send commands to zigbee2mqtt/my_device/set:

mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"motion_sensitivity":"medium"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"presence_detection_options":"mmwave"}'
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"}'

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?