Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

integration in own smart home environment

Hi,

 

i want to integrate a fitbit flex in my smart home environment. For this purpose i have different expectations and as far as i know fitbit doesn't match them yet. Anyway i'm completely new here and so I'm not completely sure what features are already possible. Maybe someone can tell me what is possible and what i need for it.

 

My current plan:

 

1. The fitbit flex should be connected to different devices via bluetooth (raspberry pi, android phone...). Depending on location, different raspberry's shall be able to automatically connect to the fitbit and sync data. For mobile usage, the smartphone can start the connection.
-> I need an API to connect the flex with linux or other systems and different devices should be able to connect with the flex.

 

2. Regarding previous point, the data will be retrieved by my own pc's and forwarded to local server. I would like to skip the cloud and simply process everything in my local network.

 

3. The tracker should be binded to a smart alarm. When i get in flat sleep, light will get lighter, music will start playing, alert will be switched off when i stand up or any other nonsense... So i need real-time data (update every minute would also work). So either i need to be able to pull current data every minute or some type of notification when a state just has changed.

 

Thanks in advance for any hints!

 

Best regards!
Fruchti

Best Answer
0 Votes
1 REPLY 1

Hello

1) Fitbit trackers can not be directly connected to any thirdparty devices

2) Instead of connecting Fitbit devices directly to your hardware you can you subscriptions notifications API: https://wiki.fitbit.com/display/API/Fitbit+Subscriptions+API

every time when Fitbit tracker synces to Fitbit servers you'll be getting push message

3) Sorry but alarms data is currently not supported by Fitbit API.

 

Also for other type of data as I mentioned above you don't need to pull every minute from Fitbit servers, you can just use subscriptions api and Fitbit will send you push notification every time when something that is supported by Fitbit subscription API changed on Fitbit servers.

So for instance if you subscribed to listen for Activities you'll be getting push notification everytime user either enters any activity manually of every time when tracker is synces to Fitbit servers.

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer