Closed syphernl closed 3 years ago
@syphernl Hi thanks for reporting, I didn't know this older integration still worked. The integration polls every 10 minutes which is almost 30000 times per month. So if this is the real (maybe new) limit, we can only poll once every 31 minutes.
We are not the only one: https://stackoverflow.com/questions/66805576/session-limit-of-10000-exceeded
Hi I have same problem too :(
@poisondima @syphernl you can try to change the 10 minutes to 30 in the code. On these two lines: https://github.com/cyberjunky/home-assistant-google_fit/blob/3c9f0cb57caec5883f60a94b73e6e436f74f2f8e/custom_components/google_fit/sensor.py#L31 https://github.com/cyberjunky/home-assistant-google_fit/blob/3c9f0cb57caec5883f60a94b73e6e436f74f2f8e/custom_components/google_fit/sensor.py#L32
Thank you, I changed for 60 minutes, now I will wait for the end of the limit
I've done the same (set it to 30
though). Not sure when the limit expires but we'll see.
FYI: In regards to sleep updates there seems to have been a few changes: https://developers.google.com/fit/improvements. I got an email about this earlier today that some oAuth scopes will be restricted soon:
Google Fit API (To be categorized as restricted in spring 2021)
https://www.googleapis.com/auth/fitness.activity.read
https://www.googleapis.com/auth/fitness.blood_glucose.read
https://www.googleapis.com/auth/fitness.blood_pressure.read
https://www.googleapis.com/auth/fitness.body.read
https://www.googleapis.com/auth/fitness.body_temperature.read
https://www.googleapis.com/auth/fitness.heart_rate.read
https://www.googleapis.com/auth/fitness.location.read
https://www.googleapis.com/auth/fitness.nutrition.read
https://www.googleapis.com/auth/fitness.oxygen_saturation.read
https://www.googleapis.com/auth/fitness.reproductive_health.read
https://www.googleapis.com/auth/fitness.sleep.read
This sensor currently uses:
Except for the fitness.body.write
(not sure why it needs that scope) all of them are listed to be categorized to be restricted. So things might break (further) in the near future 😢
Thanks, I have added it to version 1.0.4, can you test it?
Works fine for me!
Works! thanks.
I noticed this in my logs: