Request for Fitbit Support

Would be great to add Fitbit support to see your latest steps, calories, floors climbed, weight logged, activity, sleep stats, friends, etc.

Some guys here were trying to get it going but the issue was closed: https://github.com/home-assistant/home-assistant/issues/1028

PR here: https://github.com/home-assistant/home-assistant/pull/1662

I saw that, not sure if it works or not, or how to implement it (client ID and client secret).

I had it working but does not work with the current build. Till its merged you can setup a Fitbit dev account here- https://dev.fitbit.com/

How do you get the client ID and service? I’ve checked the Fitbit Dev site before but can’t figure it out.

First register a new app and set below-
Application Website - http://localhost:8123/auth/fitbit
Organization Website - http://localhost:8123/auth/fitbit
OAuth 2.0 Application Type - personal
Callback URL = http://127.0.0.1:8123/auth/fitbit/callback
ACcess- Read-only

In the next screen you will see the client id and secret

1 Like

I’m on the latest version of hass, registered a new app like the description says and copied the client ID and secret to the fitbit.conf file, but when I try to authorize the fitbit I get an error. My client_id is copied straight from the dev fitbit site.

"The app you’re trying to connect did not provide valid information to Fitbit. Please report this issue to them.

Developer information: unauthorized_client - Invalid client_id"

Please check out the brand new Fitbit sensor docs and make sure you have the latest version of the Fitbit sensor because there was a minor issue with configuration. If you can’t/don’t want to go to the dev version, please set client_id and client_secret in your configuration.yaml.

I checked out the new docs. Followed the guide and the configurator on the front end, but when I have to authorize it by going to http://localhost:8123/auth/fitbit, I get the same error

"The app you’re trying to connect did not provide valid information to Fitbit. Please report this issue to them.

Developer information: unauthorized_client - Invalid client_id"

@robbiet480 even i get the same error, will try putting thje client id in the config file and try again.

So since HASS v0.19 we have a Fitbit sensor to show a number of stats. However, there is no support yet for showing info about the battery and alarms. Personally, I would love to integrate Fitbit alarm info into HASS. It would allow me to automate things based on the time my Fitbit alarm goes off.

I’ll add my vote to this feature request. If I should have opened a new one, please let me know.

1 Like

Battery reports only approximate state, “High”, “Empty”, etc.

Getting alarms is possible via the existing Python fitbit module. So it could be integrated into HASS.

@robbiet480 is there a way using fitbit api to get if user is asleep?
If not, is there way to get a streaming heartrate value and step count…we can then use these metrics to know if a person is currently sleeping.

@fanaticDavid @happyleaves I’m working on a PR to include the battery levels on fitbit devices.

This PR will show extra information on the battery badges and it show the battery level of all Fitbit devices linked to the given account.

It is almost ready. Let me know what you think:

#configuration.yaml
sensor:
 - platform: fitbit
   monitored_resources:
    - "activities/steps"
    - "devices/battery"

I will let you guys know when it is finished.

Thanks guys

Guys, PR https://github.com/home-assistant/home-assistant/pull/8583 submitted

1 Like

I love the Fitbit sensor, the only thing i am missing is the alarms.
Is there a way to integrate this?

Is it possible to add fitbit batteryLevel info for the actual percentage. Seems to be supported by their API.
Get Devices (fitbit.com)