Custom Componenet: Oura Ring sleep data sensor

Another strange thing. In HA, I see heart rate for the period (today afternoon) when the ring was in the airplane mode.


At Oura on the web, I see lots of missing data after putting the ring on the charger and updating:

Finally, the app is consistent with Oura on the web:

So the HA custom component may need fixes. Please correct me if I am wrong. In particular, the app says there’s no data between 12:30 and 14:30 (after updating) but HA says:

Alex

For debugging, I created another card that shows HR as a line graph, over the last 48h:



Perhaps it helps to compare with the app for yesterday:

The graps look somewhat similar (I chose “show more detail” in the 2nd HA picture). I compared the app with HA again: 74 vs no data for the period 13:21:04 through 13:36:04 on Jan 21, 2023.

Just seeing this - I’ll work on something and send over a PR.

I think some update in git broke the last graph. The sensor.oura_heart_rate has been getting empty arrays.


The sensor.oura_sleep*s are fine.

Is it possible to get the battery level from the api ? I would like to stop charging at 80%.

unfortunately it’s not possible due to Oura API not exposing any battery related info…only thing I found on their API docs is “low_battery_alert”: true"