by Tiago França
Version 1 (May 27, 2025)
Download (18 downloads)
Create Oauth tokens for authentication in SmartThings automations. Since Dec 2024, Smartthings tokens expire after 24h, so we need to now use OAuth authentication and loop daily to refresh the access token.
Source: https://developer.smartthings.com/docs/getting-started/authorization-and-permissions
Setup:
1. Download CLI
2. Create Smartthings App. No redirect URI needed, default is fine.
3. Create smartthings_app.json file in folder "Automate/smartthings", with:
{
"scope": "x:scenes:*",
"client_id": ,
"client_secret": ,
"redirect_uri": "https://api.smartthings.com/installedapp"
}
For more help, see:
https://levelup.gitconnected.com/smartthings-api-taming-the-oauth-2-0-beast-5d735ecc6b24
5 stars | 1 | |
4 stars | 0 | |
3 stars | 0 | |
2 stars | 0 | |
1 star | 0 | |
Reports | 0 |
Rate and review within the app in the Community section.