12-10-2021 09:43
12-10-2021 09:43
The Web API supports sleep stages in the queries, but it seems to not support stages when inserting a sleep log (i.e., the *Add Sleep Log* API only allows specifying startTime, date, and duration). Is there some other way to create a sleep log with sleep stages data?
12-13-2021 12:00
12-13-2021 12:00
Hi @t0ny19
Sleep stages is calculated based on heart rate and movement. When manually entering a sleep log, this information is typically not available. Therefore, the behavior you're seeing that a manually created sleep log does not contain sleep stages is correct.
Gordon
12-14-2021 01:18
12-14-2021 01:18
Thanks for the reply.
I'm looking for a way to explicitly set the sleep stages data with the sleep log so that I could sync data from another fitness data supplier (e.g., from Polar or Withings or Samsung Health). Is there no other way? Is there a feature request process for something like this?
Thanks,
Tony
12-14-2021 10:01
12-14-2021 10:01
Sleep stages is only calculated for the Fitbit devices. We cannot generate sleep stage data for 3rd party devices. If the 3rd party device supports sleep stages, then you would need to aggregate the 3rd party sleep stage data separately from the Fitbit data.