HA install failed, after reinstall unable to integrate Smartthings

I had an HA running on proxmox installed using script by whiskerz007 and it was stable for some months, but recently it failed for some reason. I had a backup of the settings and set out to reinstall and reconfigure. Part of the reinstall was the Smartthings integration. I did not restore the settings, but rather have attempted to reconfigure mostly from scratch.

The following have been done:
Proxmox install script ran again (HassOS 3.5, 0.101.2)
Confirmed accessible via duckdns address
Attempted to add ST integration, but it failed
Ran hass_smartthings_remove which appeared to work successfully
Deleted /config/.storage/smartthings
Restarted VM
Smartapp was deleted successfully from Smartthings it would seem
Token was also removed from ST website
Created new token
Attempted to create new integration in HA with new token
“Unknown error occurred” displays

Log shows:

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 136, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 122, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 163, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 48, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 90, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  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/smartthings/config_flow.py", line 90, in async_step_user
    await setup_smartapp_endpoint(self.hass)
  File "/usr/src/homeassistant/homeassistant/components/smartthings/smartapp.py", line 237, in setup_smartapp_endpoint
    hass, config[CONF_WEBHOOK_ID]
TypeError: async_create_cloudhook() takes 2 positional arguments but 3 were given

AND

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 136, in auth_middleware
    return await handler(request)
  File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 122, in handle
    result = await result
  File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 163, in post
    return await super().post(request, flow_id)
  File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 48, in wrapper
    result = await method(view, request, *args, **kwargs)
  File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 90, in post
    result = await self._flow_mgr.async_configure(flow_id, data)
  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/smartthings/config_flow.py", line 90, in async_step_user
    await setup_smartapp_endpoint(self.hass)
  File "/usr/src/homeassistant/homeassistant/components/smartthings/smartapp.py", line 225, in setup_smartapp_endpoint
    hass, DOMAIN, "SmartApp", config[CONF_WEBHOOK_ID], smartapp_webhook
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 33, in async_register
    raise ValueError("Handler is already defined!")
ValueError: Handler is already defined!

Am I just missing something obvious? Any wisdom would greatly be appreciated. It is simply amazing how quickly people can come to depend on the automation and voice control the system affords us. :slight_smile:

Thanks in advance for any help and certainly a HUGE thanks to all those that are much smarter than myself for all their work on this project!!

I’m having this exact same issue - basically same circumstances started it, and definitely the same log outputs.

Tried removing the webhook, changing the personal access token, deleting & modifying the smartthings file in storage, reinstalling both apps on my phone along with deleting the HA SmartApp, etc. No luck.

Having the same problem.

I think I may have been able to resolve it based on this closed Issue Request on Github.

Try the steps on the link and hopefully it’ll work - primarily adding the webhooks url to the smartthings file in storage.

https://github.com/home-assistant/home-assistant/issues/28475