question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Withings Sleep Mat Sensor never available

See original GitHub issue

The problem

After configuring my Withings Sleep mat within the Withings HealthMate app, creating a development account with Withings, adding a Personal App to Withings, getting my Client ID and Client Secret, and following the Withings integration setup instructions here –https://www.home-assistant.io/integrations/withings/ – some data for the Withings integration import, but the binary sensor associated with my Sleep mat never becomes available. I have gotten into and out of bed to attempt to force the binary sensor to become available since I had seen that others had also had that sensor become available after getting into and out of bed.

I know that Withings is registering the “in bed” and “out of bed” times because I set up IFTTT to write new lines to a Google Sheet on updates, and those Sheets record all of my into and out of bed times.

To troubleshoot: I have deleted and added the integration many times. I have deleted the integration, removed the Sleep mat from my Withings, hard reset the Sleep mat, added the Sleep mat back to Withings, added the integration back to HA. All without any change in the binary sensors status.

What version of Home Assistant Core has the issue?

core-2022.3.7

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

No response

Diagnostics information

No response

Example YAML snippet

withings:
  client_id: !secret withings_id
  client_secret: !secret withings_secret
  use_webhook: true

Anything in the logs that might be useful for us?

Logger: homeassistant.components.withings
Source: components/withings/common.py:702 
Integration: Withings (documentation, issues) 
First occurred: 4:44:13 PM (1 occurrences) 
Last logged: 4:44:13 PM

Unexpected error fetching subscription_update_coordinator data: Error code 293
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 187, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 147, in _async_update_data
    return await self.update_method()
  File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 660, in async_subscribe_webhook
    return await self._do_retry(self._async_subscribe_webhook)
  File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 656, in _do_retry
    raise exception
  File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 649, in _do_retry
    return await func()
  File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 702, in _async_subscribe_webhook
    await self._hass.async_add_executor_job(
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/withings_api/__init__.py", line 348, in notify_subscribe
    self.request(path=self.PATH_NOTIFY, params=params)
  File "/usr/local/lib/python3.9/site-packages/withings_api/__init__.py", line 115, in request
    return response_body_or_raise(
  File "/usr/local/lib/python3.9/site-packages/withings_api/common.py", line 830, in response_body_or_raise
    raise InvalidParamsException(status=status)
withings_api.common.InvalidParamsException: Error code 293

Additional information

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:8
  • Comments:52

github_iconTop GitHub Comments

4reactions
jarvihcommented, Jul 23, 2022

I’m using the same callback and tried turning off webhooks but the in bed status is still perpetually unavailable

OK there is one setting that I just realized that I forgot to revert in my troubleshooting. I don’t know if this will do the trick, but it may be worth a try.

Settings --> System --> Network --> In here for the Home Assistant URL I disabled Use Home Assistant Cloud and I just pasted in my cloud url in this format: https://xxxxxxxxxxxx.ui.nabu.casa

As mentioned here Integration does not work with nabu’s external cloud address and that’s why withings fails to register callback correctly.

Workaround is to manually enter your cloud address to network external address field. I hope this will be fixed soon.

2reactions
sircolby45commented, Jul 23, 2022

I’m using the same callback and tried turning off webhooks but the in bed status is still perpetually unavailable

OK there is one setting that I just realized that I forgot to revert in my troubleshooting. I don’t know if this will do the trick, but it may be worth a try.

Settings --> System --> Network --> In here for the Home Assistant URL I disabled Use Home Assistant Cloud and I just pasted in my cloud url in this format: https://xxxxxxxxxxxx.ui.nabu.casa

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sleep sensor not detected - Withings | Support
I have a brand new Sleep Analyzer that cannnot be found and paired by the Health Mate app running on my Samsung S9...
Read more >
Sleep Analyzer (EU& ROW) - I'm having issues installing my ...
Sleep Analyzer (EU& ROW) - I'm having issues installing my device. What should I do? ... Note: Only use the PSU supplied with...
Read more >
Sleep Tracking not working - Withings | Support
The Sleep tracking was working until 2 days ago. Is there some problem with the sleep tracking mat?
Read more >
Sleep Analyzer (EU & ROW) - I'm having issues with my sleep ...
If not, you need to install it. ... You can place the sleep sensor directly under the mattress (between the mattress and the...
Read more >
Sleep Analyzer (EU & ROW) - Frequently asked questions
In Europe, Withings has... ... Sleep Analyzer is not available in the US. ... Which type of mattress can I use with Sleep...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found