Error during setup of component SMARTTHINGS 2021.3.x

updated to latest HA release and now my SmartThings connection won’t start : (
my error log for smart things is below :slight_smile:
Any help appreciated; I tried disable/enable/restart, - no cake.

Logger: homeassistant.setup
Source: helpers/network.py:124 
First occurred: 12:42:06 AM (1 occurrences) 
Last logged: 12:42:06 AM

Error during setup of component smartthings
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/setup.py", line 213, in _async_setup_component
    result = await task
  File "/usr/src/homeassistant/homeassistant/components/smartthings/__init__.py", line 58, in async_setup
    await setup_smartapp_endpoint(hass)
  File "/usr/src/homeassistant/homeassistant/components/smartthings/smartapp.py", line 275, in setup_smartapp_endpoint
    else webhook.async_generate_url(hass, config[CONF_WEBHOOK_ID]),
  File "/usr/src/homeassistant/homeassistant/components/webhook/__init__.py", line 60, in async_generate_url
    get_url(hass, prefer_external=True, allow_cloud=False),
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 84, in get_url
    request_host = _get_request_host()
  File "/usr/src/homeassistant/homeassistant/helpers/network.py", line 124, in _get_request_host
    raise NoURLAvailableError
homeassistant.helpers.network.NoURLAvailableError

Same issue

Same with me. Tried everything I could think of, finally deleted the smartthings integration, and when I go add it back it, I get this message. Error Config flow could not be loaded.

I was able to fix mine by rolling back with the command below.

ha core update --version 2021.2.3

Found here - https://github.com/home-assistant/core/issues/47449

I have the same issue and I tried to roll back and it messed up more. I will wait for a fix and will setup at a later time.

Well, I’m glad I’m not alone or crazy! Appreciate others chiming in on this. Is anyone aware of someplace to post this issue so the main HA SmartThings Integration developers will be aware and work on a fix ? I feel like we are having this issue that needs attention, but not certain the folks that maintain the SmartThings integration are also aware this broke.

Hi Guys, just FYI : Rolling back to 2021.2.3 worked for me as well ; rolling back to 2021.3.0 did not help. Seems the code broke at 2021.3.0 ; sure hope someone figures out why this blew up !

Same Issue for me too.

Not sure if there is a way to tag the proper team to get this issue resolved.

New user here. I have the same issue trying first integration.

Per this issues page (https://github.com/home-assistant/core/issues/47449), have you checked to see that your external_url is configured? Two people on that page say that it worked for them.
I personally haven’t upgraded yet due to this issue, but I’m wondering if this works or not.

1 Like

Added external_url to configuration YAML. This worked for me. Thanks.

1 Like

I tried the external_url. I was able to move forward and it said success. But I do not see SmartThings in the list of integrations enabled.

1 Like