Hey everyone, I wanted to share my experience with integrating the Aqara FP2 sensor into my Home Assistant setup. I’ve been trying to create an automation that detects when I fall asleep and triggers a wake-up routine, and I finally got it working!
Initially, I was a bit frustrated because the FP2 sensor only exposed a presence entity when integrated via HomeKit. I couldn’t track sleep directly, which was my main goal. After some research, I decided to create a workaround using the sensor’s raw data and setting up a custom automation in Home Assistant.
Here’s what I did:
Calibrated the Sensor: I placed the FP2 above my bed and let it gather data for a few days to get a baseline of my sleep patterns.
Set Up Custom Automation: I used the sensor’s heart rate and movement data to create a trigger that detects when I’ve been still for a certain period, indicating I’ve fallen asleep.
Created Wake-Up Routine: Once the automation detects I’m asleep, it gently wakes me up with dimmed lights and soft music.
The results have been amazing! I’ve been getting a much better night’s sleep, and waking up feels more natural. If anyone else is struggling with sleep tracking, I’d be happy to share more details about my setup. It’s a fantastic feeling to have this level of control over my home environment!
@bramdc HomeKit Controller can’t give you that data no matter what
firmware or app version you’re running. It only ever exposes presence and
occupancy for the FP2. The heart rate and movement data the original
poster mentioned comes from Aqara’s own cloud API, the same one the Home app talks to, which is a completely separate path from the local HomeKit bridge. Nothing is missing from your setup. HomeKit was never built with for that kind of sensor data.
To pull it into HA you need something that speaks to that cloud API
directly. Two existing options that are well adopted in community: sdavides’ AqaraPOST
(Node-RED or REST setups) and Darkdragon14’s ha-aqara-devices
(a HACS integration backed by a RocketMQ bridge). Mine is the narrow
take: I built a single add-on focused on the FP2’s sleep data. It logs into your
Aqara app account and republishes heart rate, breathing rate, sleep
state, body movement, and lux as MQTT sensors, plus a one-file card that
shows the live reading with no other plugins needed.
Generally speaking: The heart rate and breathing numbers have been solid for me. The sleep-stage guess is Aqara’s own algorithm doing its best, and it’s the
part I’d trust least. It matched my actual sleep most nights, but there
are real reports of it marking people awake while they were asleep anc vice versa. I treat it as one signal and not build anything important on the stage value alone.
Hello, this is exciting! I’m new to FP2, and as it is a micromovement sensor, how can it detect HR and breathing rate? Does it manage to detect tiny movement from rising chest?
I am trying to locate the Aqara bed stripe, couldn’t find it, and come across this post. I want to do something similar (measure body temp, body movement, left-side sleep duration, right-side sleep duration, breathing rate, breathing deepness, and may be a few more other metrics. Most importantly, I want to pull the raw data from Aqara server for my own analysis.