nitobuendia / oura-custom-component

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

[Feature Request] Add multiple values per day sensors: sessions, workouts #21

Closed nitobuendia closed 1 year ago

nitobuendia commented 1 year ago

In the quest of adding all Oura API data as sensors, we want to add Sessions and Workouts sensor. This is different to other sensors in that the data is not unique per day/date, but may contain multiple values per day and needs to be groupped.

nitobuendia commented 1 year ago

This is now complete on oura-v2 branch. Unfortunately, I do not use either sensor so I don't have time to test this with. Nonetheless, this same logic worked fine for sleep_periods on #22, so it should be fine. Otherwise, I appreciate if anyone can open an issue to share any bugs found.

I will close this once oura-v2 gets merged into the main branch.

nitobuendia commented 1 year ago

This was fixed by the merge of oura-v2.