I’ve tried adding this to a custom component. It seems to load fine without any errors but I don’t get any sensors. Has anyone else tried it yet and been successful?
If anybody could tell me how to download and add this as a custom component, I would like to give it a try… thanks!
Config flow does not work for custom components. The pull request went stale… Can anyone help?
Any news on integration I HA. Had hoped for 0.96 but obviously it isn’t there
The pull request was reviewed and changes were requested by balloob. The changes weren’t made within 30 days, so the pull request was automatically closed. It looks like just yesterday Vangorra re-opened the pull request after making the requested changes. It’s now awaiting peer review. It probably won’t make it into 0.96, but perhaps 0.97. You can keep an eye on the new PR here:
I see it just got merged! woohoo \o/
Are there any docs for this? I searched for ‘withings’ on the integrations page but nothing appears for me.
EDIT: I see it’s still getting merged, I should be more patient!
It is not merged yet so it won’t be on the website, but you can see the docs in raw format on Github here.
Extremely excited for this integration!
Good news it has been merged.
Can’t wait! Perhaps a 0.98.2 release?
Hopefully it will make it into 0.99 anyway.
New features don’t get added to service releases. If it gets merged within the next two weeks it will be a part of 0.99
Hi,
I just installed 0.99 and saw that the Withings integration was released but I get some errors while I am trying to set it up, during the OAuth2 process.
During the process I am redirected to the Withings website, I approve the prompt and at the end, there is a call to my Home Assistant server (available on the Internet) that ends with an error 500 Internal Server Error.
The url looks like this:
https://<home_assistant_url>/api/withings/authorize?flow_id=xxxxx64eccc7cfd&profile=BP&code=xxxxxfc7f5b204fdb040ce19c58e930ed175&state=xxxxxOdE5TmoNgFWrO1Ckbh7S8k
and the error in the logs is the following
2019-09-19 17:56:48 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py", line 418, in start
resp = await task
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py", line 458, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py", line 119, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/real_ip.py", line 40, in real_ip_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 73, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 231, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 128, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/withings/config_flow.py", line 182, in get
flow_id, {const.PROFILE: profile, const.CODE: code}
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 89, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 132, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File "/usr/src/homeassistant/homeassistant/components/withings/config_flow.py", line 132, in async_step_finish
return await self._async_create_session(profile, code)
File "/usr/src/homeassistant/homeassistant/components/withings/config_flow.py", line 139, in _async_create_session
credentials = auth_client.get_credentials(code)
File "/usr/local/lib/python3.7/site-packages/nokia/__init__.py", line 86, in get_credentials
client_secret=self.consumer_secret)
File "/usr/local/lib/python3.7/site-packages/requests_oauthlib/oauth2_session.py", line 307, in fetch_token
self._client.parse_request_body_response(r.text, scope=self.scope)
File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 421, in parse_request_body_response
self.token = parse_token_response(body, scope=scope)
File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 431, in parse_token_response
validate_token_parameters(params)
File "/usr/local/lib/python3.7/site-packages/oauthlib/oauth2/rfc6749/parameters.py", line 441, in validate_token_parameters
raise MissingTokenError(description="Missing access token parameter.")
oauthlib.oauth2.rfc6749.errors.MissingTokenError: (missing_token) Missing access token parameter.
I am running the 0.99 version on RPi3 using the latest stable docker image.
Any idea how I could fix that?
Thanks
Ben
I couldn’t get this to work in 0.99b
https://github.com/home-assistant/home-assistant/issues/26613
My self and others can’t get it working in 0.99 either
https://github.com/home-assistant/home-assistant/issues/26716
@difeta / Vangorra did mention possibly having to wait for a new nokia 1.2.1 release. But then the ticket got closed / resolved. So we will have to wait and see?
Trying to configure but after selecting profile on Withiongs web page a receive error:
{"errors":[{"message":"redirect_uri_mismatch: The redirect URI provided is missing or does not match partner callback url"}]}
Any idea what is wrong?
My URI in Withings is my HomeAssistant web port available from outside on port 80.
The integration isn’t working.
Have a read on the second link to GitHub I posted on the previous post, there is also mention about the error you are getting and how to resolve it.
There is information on getting Withings working with a temporary work around, using the Custom deps deployment.
I have linked to the exact comment.
Thank you!
hey,
i followed the steps in teh workaround, however im still getting the error:
{“errors”:[{“message”:“redirect_uri_mismatch: The redirect URI provided is missing or does not match partner callback url”}]}
when i use the URL in my withings dev app - does my nabu casa URL work?
eg, using this:
https://xxxfake.ui.nabu.casa/
If that’s your externap address then yes.
You may also need the following in your configuration.yaml
http:
base_url: https://xxxfake.ui.nabu.casa
thanks! that did the trick