Maybe I have been looking at the instructions too much, but I’m not having much success with connecting Smartthings to my HA.
I’m using Naba Casa to implement the connection to my HA.
- Confirm the callback URL is correct. If using Home Assistant Cloud, it will start with
https://hooks.nabuca.casa
. If the URL is not correct, update your Home Assistant configuration, restart, and try again.
Enter your Personal Access Token.
Enter the token from the Smartthings app
With that error, I went down the troubleshooting path by increasing the verbosity of the logging around Smartthings.
The only things that I found an error around in the home-assistant.log was:
2023-07-28 21:55:06.351 ERROR (MainThread) [frontend.js.latest.202304111] https://bqxu80gzhm8j48aachxbrs7ugr898wvf.ui.nabu.casa/config/integrations:0:0 ResizeObserver loop completed with undelivered notifications.
2023-07-28 21:55:14.311 DEBUG (MainThread) [homeassistant.components.smartthings.smartapp] Setup endpoint for https://hooks.nabu.casa/gAAAAABke-3xkWxdiZaRSO_IgHNoEastcpOpVGhOVKuaVS6Uc2_AIEhhKTY6Hu5ZEGyTDuWxKaPrU7E6m7TQfBkv-Jy_z_0HzNQY3yKZ5F_F9lz4x0YGWw9CK9N5TkcVzxp8BDJvBz-Nmqu7k73rXPet_ftemU3CODysipDJNjvporBXskaEfIY=
2023-07-28 21:55:23.982 ERROR (MainThread) [homeassistant.components.smartthings.config_flow] API error setting up the SmartApp: {'requestId': '7292349150713668401', 'error': {'code': 'ConstraintViolationError', 'message': 'The request is malformed.', 'details': [{'code': 'TargetNon200Error', 'target': 'https://hooks.nabu.casa/gAAAAABke-3xkWxdiZaRSO_IgHNoEastcpOpVGhOVKuaVS6Uc2_AIEhhKTY6Hu5ZEGyTDuWxKaPrU7E6m7TQfBkv-Jy_z_0HzNQY3yKZ5F_F9lz4x0YGWw9CK9N5TkcVzxp8BDJvBz-Nmqu7k73rXPet_ftemU3CODysipDJNjvporBXskaEfIY=', '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 126, 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.10/site-packages/pysmartthings/smartthings.py", line 110, in create_app
entity = await self._service.create_app(app.to_data())
File "/usr/local/lib/python3.10/site-packages/pysmartthings/api.py", line 171, in create_app
return await self.post(API_APPS, data)
File "/usr/local/lib/python3.10/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.10/site-packages/pysmartthings/api.py", line 368, in request
raise APIResponseError(
pysmartthings.errors.APIResponseError: Unprocessable Entity (422): {"requestId": "7292349150713668401", "error": {"code": "ConstraintViolationError", "message": "The request is malformed.", "details": [{"code": "TargetNon200Error", "target": "https://hooks.nabu.casa/gAAAAABke-3xkWxdiZaRSO_IgHNoEastcpOpVGhOVKuaVS6Uc2_AIEhhKTY6Hu5ZEGyTDuWxKaPrU7E6m7TQfBkv-Jy_z_0HzNQY3yKZ5F_F9lz4x0YGWw9CK9N5TkcVzxp8BDJvBz-Nmqu7k73rXPet_ftemU3CODysipDJNjvporBXskaEfIY=", "message": "Target did not respond with a 200 status. Upstream status code=404", "details": []}]}}
Any ideas on where I went wrong?