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 webhook not working

See original GitHub issue

The problem

After installing Home Assistant Core 2022.6.0b1 I get the following error message

The integrations works well despite og the error message

What version of Home Assistant Core has the issue?

Home Assistant Core 2022.6.0b1

What was the last working version of Home Assistant Core?

Home Assistant Core 2022.5.*

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

No response

Anything in the logs that might be useful for us?

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 191, in _async_refresh
    self.data = await self._async_update_data()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 150, in _async_update_data
    return await self.update_method()
  File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 663, in async_subscribe_webhook
    return await self._do_retry(self._async_subscribe_webhook)
  File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 659, in _do_retry
    raise exception
  File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 648, in _do_retry
    return await func()
  File "/usr/src/homeassistant/homeassistant/components/withings/common.py", line 705, 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:1
  • Comments:67 (9 by maintainers)

github_iconTop GitHub Comments

4reactions
wezcommented, Sep 14, 2022

In addition to the source change I needed to make over here: https://github.com/home-assistant/core/issues/68760#issuecomment-1246206834 and this amendment to the PR: https://github.com/home-assistant/core/pull/73228#pullrequestreview-1106606833

what I found I needed to do to get this integration working was:

  • Set up the Nabu Casa cloud
  • Configure hass to use Nabu Casa cloud access and enable it
  • Create a withings app and set to the callback URL to the Nabu Casa cloud URL with /auth/external/callback appended. eg: https://MAGIC.ui.nabu.casa/auth/external/callback
  • Add the withings integration and fill out the auth/secret info, then authorize the app
  • Go to cloud settings and enable the webhook callback for the withings integration
  • Copy the webhook URL
  • Go to https://developer.withings.com/dashboard/ and edit your app and add the webhook URL to the list of URLs allowed; be sure to preserve the original URL in case you decide to delete and re-add the app.
  • Click the test button on the withings portal to verify that the webhook is working: it should briefly outline the input box in green if it is good
  • Restart hass so that the webhook subscriptions are setup with the new callback URL
1reaction
Klangen82commented, Nov 18, 2022

Got it to work by using

Callback Uri: https://my.home-assistant.io/redirect/oauth

So all good from my side!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Struggling to get Withings integrations fully operational
Make sure you have the option to use the webhook set to true in the Withings configuration ; Make sure the remote URL...
Read more >
Integrate the HTTP / Webhook API with the Withings API
Setup the HTTP / Webhook API trigger to run a workflow which integrates with the Withings API. Pipedream's integration platform allows you to...
Read more >
Withings: Welcome
Welcome to Withings Developer Portal. Discover the services we offer, and all the tools you need to integrate them. You will be able...
Read more >
Withings Integrations - Connect Your Apps with IFTTT
Integrate Withings with your favorite apps & devices to unlock powerful automations. See how you can connect Withings with the 700+ other apps...
Read more >
Withings applet data to webhooks : r/ifttt - Reddit
IFTTT recently changed Withings applet so I recreated my applet that runs a webhook that ... Issues getting data from Coinbase websocket api....
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