bkr1969
(Brian)
August 9, 2021, 3:59pm
1
I’ve read through dozens of posts here and on github with no clear, or at least working, solutions. Has anyone been able to get fitbit integrated when using nabu casa?
tom_l
August 9, 2021, 4:17pm
2
Sorry to say this but I wouldn’t waste your time with it.
Even if you do get it working, a month or so later it will stop working you have re-install it to get it working again.
opened 07:42AM - 22 Feb 21 UTC
The problem
My fitbit integration regularly loses the ability to authenticate with Fitbit servers. I currently have an error in the logs...
integration: fitbit
bkr1969
(Brian)
August 9, 2021, 5:48pm
3
Bummer. (More characters to meet minimum)
tom_l
August 9, 2021, 11:55pm
4
It may get fixed in future. Keep an eye on the issue, though it has been 6 months already.
Guess it’s still broken.
opened 09:50PM - 13 May 23 UTC
integration: fitbit
### The problem
Hi,
I noticed the last couple of days my fitbit sensors were… not updating so I restart core and they then became unavailable with this in the error logs.
```
Logger: homeassistant.components.sensor
Source: components/fitbit/sensor.py:193
Integration: Sensor (documentation, issues)
First occurred: 3:15:38 PM (1 occurrences)
Last logged: 3:15:38 PM
Error while setting up fitbit platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 304, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.10/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 193, in setup_platform
authd_client.client.refresh_token()
File "/usr/local/lib/python3.10/site-packages/fitbit/api.py", line 156, in refresh_token
token = self.session.refresh_token(
File "/usr/local/lib/python3.10/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.10/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.10/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 441, in parse_token_response
validate_token_parameters(params)
File "/usr/local/lib/python3.10/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.10/site-packages/oauthlib/oauth2/rfc6749/errors.py", line 399, in raise_from_error
raise cls(**kwargs)
oauthlib.oauth2.rfc6749.errors.InvalidGrantError: (invalid_grant)
```
I don't know if this is some web issue or API issue. I logged into my dev account for fitbit and it seems to be normal (but not sure what I'm looking for exactly) status says it's read only.
Thanks
### What version of Home Assistant Core has the issue?
2023.5.2
### What was the last working version of Home Assistant Core?
2023.5.1 maybe?
### What type of installation are you running?
Home Assistant OS
### Integration causing the issue
FitBit
### Link to integration documentation on our website
https://www.home-assistant.io/integrations/fitbit/
### Diagnostics information
_No response_
### Example YAML snippet
_No response_
### Anything in the logs that might be useful for us?
_No response_
### Additional information
_No response_
Is the solution to remove, restart and re-add?