nitobuendia / oura-custom-component

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

Issue with connecting #4

Closed norgan closed 3 years ago

norgan commented 3 years ago

Logger: root Source: custom_components/oura/sensor.py:245 First occurred: 20:37:13 (1 occurrences) Last logged: 20:37:13

Couldn't fetch data for Oura ring sensor.

Logger: root Source: custom_components/oura/api.py:165 First occurred: 20:37:13 (1 occurrences) Last logged: 20:37:13

Unable to retrieve access token from file data.

norgan commented 3 years ago

Token is not being saved to file

{"code": null}

norgan commented 3 years ago

Found the problem. Need to tick these: Allow server-side authentication (grant-type code) Allow client-side authentication (grant-type token)

nitobuendia commented 3 years ago

Hi @norgan , thanks for reporting. Do I understand that this is fixed now?

One note: I am not sure why, but usually when you restart the system it usually will log "Couldn't fetch data for Oura ring sensor.". However, if you do not see any other errors, or it repeated again, it's not an issue.

In your case, you had another error, but it seems that you have found the root cause. I think that part is documented on the Getting Started, but I do admit that their documentation is rather short.

nitobuendia commented 3 years ago

Marking as fixed.