Coder Social home page Coder Social logo

Comments (4)

cyberjunky avatar cyberjunky commented on June 8, 2024

Can you try version 1.0.7?
I added the scopes and it kept working, i have no heart/sleep data to test with.

from home-assistant-google_fit.

damousys avatar damousys commented on June 8, 2024

To bad but no succes after updating
2022-06-07 10:04:31 DEBUG (SyncWorker_3) [custom_components.google_fit.sensor] Last weight 112.3
2022-06-07 10:04:33 DEBUG (SyncWorker_6) [custom_components.google_fit.sensor] Last height 186.0
2022-06-07 10:04:34 DEBUG (SyncWorker_3) [custom_components.google_fit.sensor] Steps 353
2022-06-07 10:04:34 DEBUG (SyncWorker_4) [custom_components.google_fit.sensor] Starttime 2022-06-06T17:00:00Z, Endtime 2022-06-07T11:00:00Z
2022-06-07 10:04:34 DEBUG (SyncWorker_4) [custom_components.google_fit.sensor] Sleep dataset {'session': []}
2022-06-07 10:04:34 DEBUG (SyncWorker_3) [custom_components.google_fit.sensor] Move time 0
2022-06-07 10:04:34 DEBUG (SyncWorker_1) [custom_components.google_fit.sensor] Calories 0
2022-06-07 10:04:34 DEBUG (SyncWorker_0) [custom_components.google_fit.sensor] Distance 0.26

from home-assistant-google_fit.

cyberjunky avatar cyberjunky commented on June 8, 2024

@damousys I have dug into it, and the call for sleep data is empty in the code, investigating further, thanks or feedback

from home-assistant-google_fit.

damousys avatar damousys commented on June 8, 2024

Now i have got this in my logs
2022-06-07 12:06:07 DEBUG (SyncWorker_12) [custom_components.google_fit.sensor] Sleep dataset {'session': [{'id': 'Walk1654592040000', 'name': 'Walk', 'description': '', 'startTimeMillis': '1654592040000', 'endTimeMillis': '1654592700000', 'modifiedTimeMillis': '1654595944747', 'application': {'packageName': 'com.xiaomi.hm.health'}, 'activityType': 7}]}

2022-06-07 20:44:41 DEBUG (SyncWorker_5) [custom_components.google_fit.sensor] Sleep dataset {'session': [{'id': 'Walk1654592040000', 'name': 'Walk', 'description': '', 'startTimeMillis': '1654592040000', 'endTimeMillis': '1654592700000', 'modifiedTimeMillis': '1654595944747', 'application': {'packageName': 'com.xiaomi.hm.health'}, 'activityType': 7}, {'id': 'Others1654592040000', 'name': 'Others', 'description': '', 'startTimeMillis': '1654592040000', 'endTimeMillis': '1654594140000', 'modifiedTimeMillis': '1654627125301', 'application': {'packageName': 'com.xiaomi.hm.health'}, 'activityType': 108}, {'id': 'Walk1654597500000', 'name': 'Walk', 'description': '', 'startTimeMillis': '1654597500000', 'endTimeMillis': '1654597740000', 'modifiedTimeMillis': '1654627125301', 'application': {'packageName': 'com.xiaomi.hm.health'}, 'activityType': 7}, {'id': 'Walk1654599060000', 'name': 'Walk', 'description': '', 'startTimeMillis': '1654599060000', 'endTimeMillis': '1654599360000', 'modifiedTimeMillis': '1654627125301', 'application': {'packageName': 'com.xiaomi.hm.health'}, 'activityType': 7}]}

2022-06-07 21:15:09 DEBUG (SyncWorker_8) [custom_components.google_fit.sensor] Sleep dataset {'session': [{'id': 'Walk1654592040000', 'name': 'Walk', 'description': '', 'startTimeMillis': '1654592040000', 'endTimeMillis': '1654592700000', 'modifiedTimeMillis': '1654595944747', 'application': {'packageName': 'com.xiaomi.hm.health'}, 'activityType': 7}, {'id': 'Others1654592040000', 'name': 'Others', 'description': '', 'startTimeMillis': '1654592040000', 'endTimeMillis': '1654594140000', 'modifiedTimeMillis': '1654627125301', 'application': {'packageName': 'com.xiaomi.hm.health'}, 'activityType': 108}, {'id': 'Walk1654597500000', 'name': 'Walk', 'description': '', 'startTimeMillis': '1654597500000', 'endTimeMillis': '1654597740000', 'modifiedTimeMillis': '1654627125301', 'application': {'packageName': 'com.xiaomi.hm.health'}, 'activityType': 7}, {'id': 'Walk1654599060000', 'name': 'Walk', 'description': '', 'startTimeMillis': '1654599060000', 'endTimeMillis': '1654599360000', 'modifiedTimeMillis': '1654627125301', 'application': {'packageName': 'com.xiaomi.hm.health'}, 'activityType': 7}]}

2022-06-07 23:47:42 DEBUG (SyncWorker_3) [custom_components.google_fit.sensor] Sleep dataset {'session': [{'id': 'Walk1654592040000', 'name': 'Walk', 'description': '', 'startTimeMillis': '1654592040000', 'endTimeMillis': '1654592700000', 'modifiedTimeMillis': '1654595944747', 'application': {'packageName': 'com.xiaomi.hm.health'}, 'activityType': 7}, {'id': 'Others1654592040000', 'name': 'Others', 'description': '', 'startTimeMillis': '1654592040000', 'endTimeMillis': '1654594140000', 'modifiedTimeMillis': '1654637993001', 'application': {'packageName': 'com.xiaomi.hm.health'}, 'activityType': 108}, {'id': 'Walk1654597500000', 'name': 'Walk', 'description': '', 'startTimeMillis': '1654597500000', 'endTimeMillis': '1654597740000', 'modifiedTimeMillis': '1654637993001', 'application': {'packageName': 'com.xiaomi.hm.health'}, 'activityType': 7}, {'id': 'Walk1654599060000', 'name': 'Walk', 'description': '', 'startTimeMillis': '1654599060000', 'endTimeMillis': '1654599360000', 'modifiedTimeMillis': '1654637993001', 'application': {'packageName': 'com.xiaomi.hm.health'}, 'activityType': 7}]}

from home-assistant-google_fit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.