Smartthings integration doesnt work after full restore, docs confusing

HI:

I had to reinstall HAOS on my x86 laptop, and restore HA from a backup,

Now smarthings doesnt work.

This is confusing to me:

Confirm Callback URL
SmartThings will be configured to send push updates to Home Assistant at:

https://hooks.nabu.casa/gAAAAABmpADU4Xpqubi7hf99db4iwi8bbqmpJdDVrA1AGB2ICuayDToRWKoroCeXh7zUo5S0jx9JBAmgI3MQmE-xY-HISrXC7mxc4blcOVgPrPGql0S_SzPHtbjPydDr8801YKiLWiqfy0FmJE3CLkA4hLV7ylzaALujaTDhr04osR2DUqd5KPE=

If this is not correct, please update your configuration, restart Home Assistant, and try again.

Update WHAT configuration? How?

This is what my log reports:

Error setting up entry Morning Glory for smartthings
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 635, in __async_setup_with_context
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/smartthings/__init__.py", line 129, in async_setup_entry
    token = await api.generate_tokens(
            ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pysmartthings/smartthings.py", line 209, in generate_tokens
    result = await self._service.generate_tokens(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/pysmartthings/api.py", line 424, in generate_tokens
    raise APIInvalidGrant(data.get("error_description"))
pysmartthings.errors.APIInvalidGrant: Invalid refresh token: 35e2c614-923e-4998-840e-bdcd94e98147 requested by clientId: 27626807-7048-4a99-a0a1-3d3e5578acb3 with grantType: refresh_token, e.cause: no cause

I’m kinda new to this, so any more specific instructions would be helpful.

When you reinstalled it rolled back what’s known as a security token and it’s out of whack with what ST expects. You will need to search for instructions on how to re-authenticate HA to smartthings

Usually this involves basically going through similar steps as when you installed and should be documented on the integrations page…

I just looked… It is. SmartThings - Home Assistant

unfortunartely, this instructions say:

 If the URL is not correct, update your Home Assistant configuration, restart, and try again.

but don’t tell you how to do this. No clue where the URL is stored. Others have found the same thing,.

When I used to use SmartThings it usually (unfortunately) meant blowing away the integration and re-installing itl but I have not used ST in nearly two years. I know people asked for a way to update the token without blowing it away but I never had hi hopes.

If you used ‘devices’ in your automations sorry.

If youre using entity states it’s only a minor annoyance as long as you didn’t rename everything after it got pulled into HA.

Basically if you’re using states and didn’t rename a lot - chances are most stuff pulls in and just works. But if you use devices in automations the device ceases to exist when the integration is uninstalled.

Personally my solution was throw the st hub in the trash. (imho Samsung completely hosed the platform) But different strokes for different folks.