jlamendo/ha-sensor.owlet

Request: add “sleep” state

Opened this issue · 1 comments

Hey!
Loving the add-on! Thanks for developing this :)

any chance you can add the “sleep” state at all? I see on the app it tracks light/deep sleep state - is this an attribute that can be pulled over somehow?

Unfortunately, Owlet doesn't expose this information via the API. I think that must be done on the backend using some sort of post-processing ML model.

If you have the Owlet Smart Sock v3, you can probably hack together a similar metric by combining something like % of minutes in the last 10 minutes in which there was motion detected + heart rate within a specific range. I know for my son, I'm able to quickly tell at a glance if he's sleeping or not by viewing the heart rate for a few measurements.