Automation to detect sleep with Aqara FP2

Hi everyone,

I installed an Aqara FP2 sensor above my sofa to track my heart rate and detect when I fall asleep, so I can trigger an automation to wake me up again. The FP2 is set up via the Aqara app and works great there.

Unfortunately, when integrating the sensor via HomeKit into Home Assistant, only a presence entity is exposed. This is not helpful at all for sleep tracking. I therefore tried to create an automation directly in the Aqara app. While there is a “Fall asleep” trigger available, there is no useful action like sending a webhook or triggering anything in Home Assistant. The only available action is sending a notification — which is kind of ironic when you’re already asleep.

All I really need is a trigger in Home Assistant that fires when the FP2 detects that I have fallen asleep.

Has anyone managed to implement something like this in Home Assistant or found a workaround?

Thanks for your help.