I am trying to add a Samsung refrigerator to HA via Smart-things. I’ve created the token following the instructions at SmartThings - Home Assistant
However, when I try to add the token to HA, I get an error message:
SmartThings could not validate the webhook URL. Please ensure the webhook URL is reachable from the internet and try again.
The web hook that was presented is available from the internet. I do get a log of the attempt:
Logger: homeassistant.components.smartthings.config_flow
Source: components/smartthings/config_flow.py:131
Integration: SmartThings (documentation, issues)
First occurred: 7:35:54 PM (1 occurrences)
Last logged: 7:35:54 PM
API error setting up the SmartApp: {‘requestId’: ‘6054496568871730221’, ‘error’: {‘code’: ‘ConstraintViolationError’, ‘message’: ‘The request is malformed.’, ‘details’: [{‘code’: ‘TargetNon200Error’, ‘target’: ‘https://ha.theunimatrix.com/api/webhook/1fff68e1c9d07ef7df6f908f97cf1c163a3fd8f0b700cf4e0c8c963a47fcba13’, ‘message’: ‘Target did not respond with a 200 status. Upstream status code=403’, ‘details’: }]}}
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/components/smartthings/config_flow.py”, line 131, in async_step_pat
app, client = await create_app(self.hass, self.api)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/smartthings/smartapp.py”, line 145, in create_app
app, client = await api.create_app(app)
^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/pysmartthings/smartthings.py”, line 110, in create_app
entity = await self._service.create_app(app.to_data())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/pysmartthings/api.py”, line 171, in create_app
return await self.post(API_APPS, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/pysmartthings/api.py”, line 395, in post
return await self.request(“post”, self._api_base + resource, data=data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/site-packages/pysmartthings/api.py”, line 368, in request
raise APIResponseError(
pysmartthings.errors.APIResponseError: Unprocessable Entity (422): {“requestId”: “6054496568871730221”, “error”: {“code”: “ConstraintViolationError”, “message”: “The request is malformed.”, “details”: [{“code”: “TargetNon200Error”, “target”: “https://ha.theunimatrix.com/api/webhook/1fff68e1c9d07ef7df6f908f97cf1c163a3fd8f0b700cf4e0c8c963a47fcba13”, “message”: “Target did not respond with a 200 status. Upstream status code=403”, “details”: }]}}
I’ve tried to do this several times and run into the same issues.
Any help would be appreciated.
Mike.