nitobuendia / oura-custom-component

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

[Feature request] Battery Level state or attribute #18

Closed bridgewatermedia closed 1 year ago

bridgewatermedia commented 1 year ago

I'm not sure if the API has this exposed or not, but the battery level/charge level of the Oura ring would be a useful feature to have access to. Is it possible to implement this in a future release?

Thanks!

nitobuendia commented 1 year ago

@bridgewatermedia Thanks a lot for opening the new issue.

My understanding is that Oura ring only syncs data to the cloud when you sync the ring on the app. This is also the data available on the API. As such, if you expected updated data on the battery status, this may not be possible at all since I assume you won't be syncing the app all the time.

Nonetheless, I've checked the API documentation and I only saw one reference to battery which is "low_battery_alert". This exists within the sleep periods endpoint which is already available on the Sleep Sensor on oura-v2 that we're working on.

If your use case is simply to get a notification when battery is low, this may work - with the caveat that it might be updated only once in a day.