I’m trying to set up the SmartThings integration. When I go to enter my access token, I receive the error:
“SmartThings could not validate the webhook URL. Please ensure the webhook URL is reachable from the internet and try again.”
Thing is, I’m using Nabu Casa. So I’m pretty sure the webhook URL is right. This is confirmed by the fact that I get an exception in my HA log whenever I try to submit the access token.
Here is the exception I see:
2020-06-15 15:41:51 ERROR (MainThread) [homeassistant.components.smartthings.config_flow] API error setting up the SmartApp: {'requestId': 'A64E301C-FA3C-44B3-9BC2-F118FAE017DD', 'error': {'code': 'ConstraintViolationError', 'message': 'The request is malformed.', 'details': [{'code': 'TargetNon200Error', 'target': 'https://hooks.nabu.casa/XXX_I_removed_this_since_it_may_be_sensitive_XXX', 'message': 'Target did not respond with a 200 status. Upstream status code=404', 'details': []}]}}
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/smartthings/config_flow.py", line 108, in async_step_pat
await update_app(self.hass, app)
File "/usr/src/homeassistant/homeassistant/components/smartthings/smartapp.py", line 174, in update_app
await app.save()
File "/usr/local/lib/python3.7/site-packages/pysmartthings/app.py", line 349, in save
response = await self._api.update_app(self._app_id, self.to_data())
File "/usr/local/lib/python3.7/site-packages/pysmartthings/api.py", line 179, in update_app
return await self.put(API_APP.format(app_id=app_id), data)
File "/usr/local/lib/python3.7/site-packages/pysmartthings/api.py", line 399, in put
return await self.request("put", self._api_base + resource, data=data)
File "/usr/local/lib/python3.7/site-packages/pysmartthings/api.py", line 374, in request
data=data,
pysmartthings.errors.APIResponseError: Unprocessable Entity (422): {"requestId": "A64E301C-FA3C-44B3-9BC2-F118FAE017DD", "error": {"code": "ConstraintViolationError", "message": "The request is malformed.", "details": [{"code": "TargetNon200Error", "target": "https://hooks.nabu.casa/XXX_I_removed_this_since_it_may_be_sensitive_XXX", "message": "Target did not respond with a 200 status. Upstream status code=404", "details": []}]}}
I’m running HA 111.1. Anyone have any ideas what may be going on?