Configuring Fitbit sensor: not showing entry in frontend

I have been trying to get Fitbit data into home assistant using Fitbit - Home Assistant

I stumbled on the start line. I added this in the sensor section of my config:

- platform: fitbit
  clock_format: 24H
  monitored_resources:
    - "activities/steps"

Then I tried follow the instructions: “Restart Home Assistant once this is complete. Go to the frontend. You will see a new entry for configuring Fitbit. Follow the instructions there to complete the setup process.”

Config is OK, I restart home assistant but can’t find anything in the frontend related to fitbit. What am I missing?

I tried for around an hour to get this working too. No luck though. I’m seeing some errors in my logs like below. I think i’ll submit an issue for this.

Logger: homeassistant.components.sensor
Source: components/fitbit/sensor.py:118
Integration: Sensor (documentation, issues)
First occurred: 17:29:07 (1 occurrences)
Last logged: 17:29:07

edit: I just opened an issue for this Error while setting up fitbit platform for sensor · Issue #58928 · home-assistant/core · GitHub

I was having the same problem after upgrading to 2021.11.0. I deleted the fitbit.conf file and restarted HA. After that I got the configuration prompt and was able to go through the setup and now have the requested sensors appear. There isn’t a frontend in the ‘Integrations’ section, but the sensors are available under ‘Entities’.

I had to set the URLs manually (instead of the auto mode) so that SSL support is properly recognized. Moreover, I had to replace the client id in the OAuth URL provided by the notification. It tried to use the URL as a client id, so I used the one given in the config.

Hi,
it does not work for me, i’m requesting your help :slight_smile:
1 - https://dev.fitbit.com/ asks for a “redirect URL”, what am I supposed to enter there? I think - but unsure that it’s the callback ?
2 - For the callback URL https://[mydomainname]:8123/api/fitbit/callback/ (aka “Redirect URL” on https://dev.fitbit.com/ ), the image shows a / in the end (after “/callback”) but not the text instruction. Is that where the error is coming from?
Because on the second notification when I click on “Please authorize Fitbit by visiting https://[mydomainname]:8123/api/fitbit”, the fitbit site replies:
“Developer information: invalid_request - Invalid redirect_uri parameter value”

Thanks.

I realise it has been a while but in case you’re still stuck (or someone else coming to this thread is stuck):

  • Yes, enter Home Assistant’s “callback URL” into Fitbit’s “redirect URL” field.
  • I don’t have a trailing slash on my redirect URL, and it’s working okay for me—so your trailing slash might be the problem.
1 Like

If nothing appears, it is perhaps because you have a problem with SSL
You need to have the cloud or Duck DNS configured to be able to see your HA from the internet safely.

to see if it fails you can enter the loggers

If you have already passed the phase, you may encounter more problems such as callback from fitbit.

I leave you a link with more steps