It’s been written by a self_admitted noob at integrations, but it effortlessly pulls in all data from my Sleep As Android alarm clock and even introduced me to features of the app I didn’t know existed, and I’ve been using it for years.

By following his instructions (I skipped the watch bit) Home Assistant now know when I’m sleeping and awake.

I’ve been considering some kind of bed load esp board for a while but now I don’t have to. I know when I fell asleep last night and even when I was snoring.

More importantly, Home Assistant knows these things and I can now have a more reliable Good Night automation that knows when I’m sleeping, even when I get kicked out of bed and have to sofa sleep.