I have a web services smart app that supports switch capability and is authorized / configured to use 2 physical switches. Now another physical switch is added, so how do I authorize this new switch ? Should I run the whole authorization flow again ? Or is there any other way to authorize it for the app ?
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
2
The SmartApp will appear in the SmartThings native mobile App (under the hamburger menu). There you should have a Preferences page(s) where you can add / remove devices … right?
No, I am not using the SmartThings native mobile app. Its my own mobile app that will be communicating with the web services smart app.
tgauchat
(ActionTiles.com co-founder Terry @ActionTiles; GitHub: @cosmicpuppy)
4
Yes.
Just repeat the whole OAuth flow again.
The user will be required to login and select their location like the first time, but your preference page of type OAuth Page will display all the devices, including the selected and unselected devices.