I have the same question.
Found this ![]()
If you have an Android phone with Tasker (free) and Sleep as Android (free) you can set up a trigger from Sleep and have that shoot off a message to Home Assistant.
The options available are:
I would assume the “REM” option may be the closest one you’re interested in.
You could follow the steps in here to get you to communicate between Tasker and HA.
