Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add total sleep duration sensor #228

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lukas-hermans
Copy link

As observed in #75 and #163, the sleep duration sensor is not the same as the sleep duration shown on the Garmin Connect Portal. The sleep duration sensor is retrieved from the get_user_summary method of the garminconnect Python library. My implementation of the total sleep duration sensor uses the get_sleep_data method and takes the sleepTimeSeconds, similar to the sleep score sensor.

Example:

Sleep duration from Garmin Connect Portal:

Screenshot from 2025-01-07 20-04-11

Sleep Duration from total sleep duration sensor (458min = 7h 38min):

Screenshot from 2025-01-07 20-08-52

@lukas-hermans lukas-hermans changed the title Add total sleep duration as a sensor Add total sleep duration sensor Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant