Hi, there are a few Automations that I wanted to trigger whenever I go to bed or after a few minutes of falling asleep. For this purpose, I got myself a Emfit QS Sleep Tracker which is a nifty contact-less device that you put under your mattress and monitors bed presence, heart rate, activity level, etc.
Here is the Home Assistant custom component that I created for Emfit QS trackers:
https://github.com/jxlarrea/ha-emfitqs
Hope some of you find this useful!