I had this integration running smoothly since early 2022. All of the sudden it stopped communicating.
I have tried everything to get it active again, but failed. In desperation, I removed \config\fitbit.conf and the configuration.yaml entry:
Following that, I verified everything from fitbit.com and Login to see my configuration. Then I tried to start over. but when I get to the notifications/configurator [CONFIGURE], it does not seem to do anything. It here is a link https://xxxxx.duckdns.org/api/fitbit as well as the button [I HAVE AUTHORIZED FITBIT.]
Neither do anything, noting that the linked file does not exist in my home assistant.
It has been a very long time with this manually configured integration. Does anyone have any ideas?
Did you change your Fitbit to use your Google account? As soon as I made that change, the Fitbit integration stopped working for me, and has not started working again.
I’m having the same issue. Have not changed anything except updating Home Assistant as builds are released.
My logs show:
Logger: homeassistant.components.sensor
Source: helpers/entity_platform.py:359
Integration: Sensor (documentation, issues)
First occurred: October 9, 2023 at 4:15:05 PM (1 occurrences)
Last logged: October 9, 2023 at 4:15:05 PM
Error while setting up fitbit platform for sensor
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 359, in _async_setup_platform
await asyncio.shield(task)
File “/usr/local/lib/python3.11/concurrent/futures/thread.py”, line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/fitbit/sensor.py”, line 519, in setup_platform
authd_client.client.refresh_token()
File “/usr/local/lib/python3.11/site-packages/fitbit/api.py”, line 156, in refresh_token
token = self.session.refresh_token(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/requests_oauthlib/oauth2_session.py”, line 452, in refresh_token
self.token = self._client.parse_request_body_response(r.text, scope=self.scope)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/oauthlib/oauth2/rfc6749/clients/base.py”, line 427, in parse_request_body_response
self.token = parse_token_response(body, scope=scope)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/oauthlib/oauth2/rfc6749/parameters.py”, line 441, in parse_token_response
validate_token_parameters(params)
File “/usr/local/lib/python3.11/site-packages/oauthlib/oauth2/rfc6749/parameters.py”, line 448, in validate_token_parameters
raise_from_error(params.get(‘error’), params)
File “/usr/local/lib/python3.11/site-packages/oauthlib/oauth2/rfc6749/errors.py”, line 399, in raise_from_error
raise cls(**kwargs)
oauthlib.oauth2.rfc6749.errors.InvalidGrantError: (invalid_grant)
Has there been any other updates on this or other users experiencing the same issues?
I am apprehensive to try and restart from scrtah this intergration if I dont have to.
I am also experiencing the issue. I think it’s related to Fitbit moving to using Google accounts. My Fitbit integration went offline as soon as I switched to the Google account for Fitbit.
Ended up just switching to Google account and setting up Google Fit from HACS and then connecting with Health Connect. Was also able to use the new entities in the fitbit card.
Not seeing Sleep or Activity yet, but maybe we need some time to sync.
in Fitbit go into your profile and turn on Heath Connect (profile – Fitbit settings – Health Connect)
This brought in some data, but it didn’t include today’s activity and my weight was old.
To resolve this I downloaded the Google Fit app and connected it to read from my Fitbit app via Health Connect also configured it to sync with Health Connect.
Once I did this, my FitBit Data (current) got pulled into Google Fit and then my HA dashboard had all updated data.
FYI … For the first steps I used a video from BeardedTinker.
I’ve just seen the exact same thing, but since I followed your steps to migrate my account from Fitbit to Google Fit and Health Connect, I fear it won’t be possible to use both…
@allenporter & @gregoryborah
I am still having troubles and now I get an error without even trying.
I deleted the old fitbit entries and restarted HA. In settings, I added the integration as UI.
now I get the error
Also, I have read earlier that I have to convert to Google. What if you don’t have Google? Any ideas?
I had this error, too. I needed to update the application definition in the fitbit developer settings to fix the redirect_uri parameter value. It needs to be https://my.home-assistant.io/redirect/oauth
now.