nitobuendia / oura-custom-component

Oura Custom Component for Home-Assistant. Adds Oura Ring sleep information.
106 stars 25 forks source link

[Refactoring] Split sleep sensor in two #22

Closed nitobuendia closed 1 year ago

nitobuendia commented 1 year ago

Currently Sleep sensor relies on Sleep Periods API to retrieve the data. I believe this would break the code if multiple sleep periods happen on the same time. This is because Sleep Periods behave similar to Sessions or Workouts in #21.

The idea for workaround here is to split Sleep sensor into two:

nitobuendia commented 1 year ago

This is now technically completed and working. Nonetheless, filtering of sleep type has not been done yet.

nitobuendia commented 1 year ago

This is now completed on oura-v2. This will be closed when merged into the main branch.