Fitbit Configuration

Hi ALl ,
I have a fitbit ALTA since a long time and i would like to configure on HA

my HA is 0.71.0

/config/fitbit.conf
{
“client_id” : “[email protected]
“client_secret” : “toto”
}

/config/configuration.yaml

sensor fitbit :

  • platform: fitbit
    clock_format: 24H
    monitored_resources:
    • “activities/steps”
    • “activities/floors”
    • “activities/distance”

No error , but don’t run !!!
I see nothing

Do you have an idea to check and others ?
Thansk by advance for your help
:slight_smile:

The file fitbit.conf gets created when you walk through the configuration of the component after a restart, you need to run some steps on fitbits site. If you already followed the configuration wizard then you should see see some sensors in your states tab.

on the site on fitbit , i don’t see Application , folder is empty
and i don’t knwo how to do to add an applicaiton to give access to HA ??

You need to go back and follow the steps properly. Delete the file fitbit.conf restart home assistant. Follow the prompts in the configurator. The configurator will link you to a fit bit Developer site and from there you create the app and set it up. The URL to setup is here:

https://dev.fitbit.com/apps

You really need to follow the steps that home assistant walks you through to get it setup.

Hi
Thanks for your message :slight_smile:
1 - remove fitbit.conf
2 - Restart HA
3 - Configure in HA with Id and pass of Fitbit given
4 - On this step authorize what is the command and where ?
I loost …

Do we need to open ports or not on firewall in entry ?

click on the link to download teh callback file and thats it

i have this error

Log Details (ERROR)
Thu Jun 28 2018 12:45:50 GMT+0200 (heure d’été d’Europe centrale)

Could not parse JSON content: /config/fitbit.conf
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/homeassistant/util/json.py”, line 22, in load_json
return json.loads(fdesc.read())
File “/usr/lib/python3.6/json/init.py”, line 354, in loads
return _default_decoder.decode(s)
File “/usr/lib/python3.6/json/decoder.py”, line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/usr/lib/python3.6/json/decoder.py”, line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 4 column 1 (char 86)

I don’t understand !!!

If you read the error at the bottom it says the issue had to do with the name not being enclosed in quotes. You did not setup the fitbit.conf file correctly. It needs to be in json format. Go back and make sure the formatting is correct.

1 Like

ok it’s fine now , great
Thanks

1 Like

This might be a bit off topic but I am not finding the answer anywhere else… My partner and I both have a fitbit and obviously can’t share a fitbit account. Is there a way to pull data from multiple fitbit accounts?

1 Like

I’m also interested in this.