home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
71.39k stars 29.9k forks source link

Withings Sleep Data for Multiple Users Doesn't Load #116365

Open mgw854 opened 4 months ago

mgw854 commented 4 months ago

The problem

My wife and I both have Withings Sleep Tracking Mats, hooked up to one account. My wife, my daughter, and I have users that are tied to a Withings scale. Around the time of the big Withings rewrite, the second user stopped working. All three users can log in to Withings and be authenticated, but only I (as the primary user) seem to have webhooks working. Only my wife sees this (webhooks_connected == false), while my daughter and I do not:

 "data": {
    "has_valid_external_webhook_url": true,
    "has_cloudhooks": true,
    "webhooks_connected": false,
    "received_measurements": [
      1,
      8,
      76,
      77,
      88,
      6,
      5
    ],
    "received_sleep_data": true,
    "received_workout_data": false,
    "received_activity_data": false
  }

What version of Home Assistant Core has the issue?

core-2024.4.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Withings

Link to integration documentation on our website

https://www.home-assistant.io/integrations/withings/

Diagnostics information

config_entry-withings-3e59cb909d9535cb097c7224c9ab2911.json

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 4 months ago

Hey there @joostlek, mind taking a look at this issue as it has been labeled with an integration (withings) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `withings` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign withings` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


withings documentation withings source (message by IssueLinks)

joostlek commented 4 months ago

I've heard this before but this is probably the most coherent story yet. So let's look into this. Note: I am currently in the crunch of my thesis so I won't have the best response times these days.

Can you turn on debug logging and reload all entries?

mgw854 commented 4 months ago

That's definitely understandable, and I remember thesis crunch time. Good luck!

home-assistant_withings_2024-05-01T13-51-59.635Z.log

I've tried to collapse the logs down to just Withings-related events

Shredder5262 commented 4 months ago

following along, I'm experiencing this also.

pajb commented 3 months ago

Yes - I am interested in this too. Not made a big effort to see multiple users on my home system yet but would like to and Google brought me here when I started to look into how to enable multiple sleep mats.

thorleifjacobsen commented 3 weeks ago

Second this, not getting one working, and I have two. :)

JSteeleIR commented 2 days ago

Following along here. I've been casually trying to debug why my sleep mat hasn't been reporting for awhile, now I realize I'm likely affected by this bug. (My SO's is logging correctly some reason, though I'm the 'primary' on the withings account. )

Good luck with your thesis!