I backed up a working instance of HA using Win32DiskImage then restored the file to a new (identical) USB flash drive. Upon boot of the newly created flash drive, everything appears fine. HA loads, Cloud loads and logs in, all integrations appear to be fine except for Smartthings. For it I get the following error:
Error setting up entry Home for smartthings
1:02:14 PM β (ERROR) components/smartthings/__init__.py
Unable to load scenes for configuration entry 'Home' because the access token does not have the required access
1:02:13 PM β (ERROR) SmartThings
The full log shows:
2022-11-09 13:02:13.829 ERROR (MainThread) [homeassistant.components.smartthings] Unable to load scenes for configuration entry 'Home' because the access token does not have the required access
File "/usr/src/homeassistant/homeassistant/components/smartthings/__init__.py", line 193, in async_get_entry_scenes
File "/usr/local/lib/python3.10/site-packages/pysmartthings/smartthings.py", line 197, in scenes
File "/usr/local/lib/python3.10/site-packages/pysmartthings/api.py", line 319, in get_scenes
File "/usr/local/lib/python3.10/site-packages/pysmartthings/api.py", line 384, in get_items
File "/usr/local/lib/python3.10/site-packages/pysmartthings/api.py", line 376, in request
aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://api.smartthings.com/v1/scenes?locationId=3912b81f-aadf-4585-9e1d-f005db381436')
2022-11-09 13:02:14.107 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry Home for smartthings
File "/usr/src/homeassistant/homeassistant/components/smartthings/__init__.py", line 121, in async_setup_entry
File "/usr/local/lib/python3.10/site-packages/pysmartthings/smartthings.py", line 209, in generate_tokens
File "/usr/local/lib/python3.10/site-packages/pysmartthings/api.py", line 424, in generate_tokens
pysmartthings.errors.APIInvalidGrant: Invalid refresh token: 1373ea92-2972-407c-8ca1-ee94f99daa4b requested by clientId: a23ad9f5-1775-4756-a14b-3440498fe8d0 with grantType: refresh_token
I donβt understand why I would get this error when the HA instance, supposedly, is a mirror of the original. In fact, wghen I boot up the original all is good. How can the two be different??
My installation is
Home Assistant 2022.11.1
Supervisor 2022.10.2
Operating System 9.3
Frontend 20221102.1 - latest