Home Assistant release with the issue:
94.X
Last working Home Assistant release (if known):
93.1
Operating environment (Hass.io/Docker/Windows/etc.):
HassOS x86 image on Hyper-V
Component/platform:
Smartthings integration
Description of problem:
I am a Nabu Casa subscriber and was using the built-in webhook functionality working with the smartthings integration to connect Hass.io and Smartthings without exposing my Hass.io directly to the internet on v93.
In v94, when attempting to add my smartthings token code as per the instructions, I get the below error:
The base_url for the http component must be configured and start with https://
This occurs even from the new setup wizard when trying to add smartthings.
I assumed this first occurred here because I had not logged into NabuCasa.
After logging into Home Assistant Cloud and ensuring webhooks and remote access were enabled, the issue persists.
Problem-relevant configuration.yaml
entries and (fill out even if it seems unimportant):
Default config - it is commented out and I believe unrelated.
# Uncomment this if you are using SSL/TLS, running in Docker container, etc.
# http:
# base_url: example.duckdns.org:8123
Traceback (if applicable):
019-06-13 18:03:04 ERROR (MainThread) [homeassistant.components.smartthings.config_flow] API error setting up the SmartApp: {'requestId': 'REDACTED', 'error': {'code': 'ConstraintViolationError', 'message': 'The request is malformed.', 'details': [{'code': 'TargetTimeoutError', 'target': 'http://192.168.REDACTED.REDACTED:8123/api/webhook/REDACTED', 'message': 'Upstream target timed out', 'details': []}]}}
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/smartthings/config_flow.py", line 96, in async_step_user
app, client = await create_app(self.hass, self.api)
File "/usr/src/homeassistant/homeassistant/components/smartthings/smartapp.py", line 109, in create_app
app, client = await api.create_app(app)
File "/usr/local/lib/python3.7/site-packages/pysmartthings/smartthings.py", line 99, in create_app
entity = await self._service.create_app(app.to_data())
File "/usr/local/lib/python3.7/site-packages/pysmartthings/api.py", line 172, in create_app
return await self.post(API_APPS, data)
File "/usr/local/lib/python3.7/site-packages/pysmartthings/api.py", line 387, in post
data=data)
File "/usr/local/lib/python3.7/site-packages/pysmartthings/api.py", line 365, in request
data=data)
pysmartthings.errors.APIResponseError: 422, message='Unprocessable Entity'
Additional information:
A couple of forum users have experienced the same issue, even after adding base_url, and seemingly without relying on Home Assistant Cloud.
https://community.home-assistant.io/t/smartthings-token-integration-error/121219
https://community.home-assistant.io/t/smarthings-integration-into-hassio-giving-base-url-error/115510
When you are logged into Nabu Casa with a non-expired account, base_url
is not even used or checked by the SmartThings integration, so it's not being picked up. Are you sure the account is active? If so, remove SmartThings, restart, and after ensuring it's showing logged in, try setting up the integration again.
The linked forum posts and error logs are not the same issue.
I'm going to close this issue for now given there's been no response in over a month.
can it be re-opened, cause i getting the same error when i try to add my token..
The same error here: in Italian is
Il base_url
per il componente http
deve essere configurato e deve iniziare con https://
.
but... which base_url? there're no url in API Token!
What does it mean?
I am getting the same error.
Please don't comment on closed PRs. Please open a new issue with your details so we can properly help you.
Most helpful comment
can it be re-opened, cause i getting the same error when i try to add my token..