In the Groovy SmartApp, you can fix the number of “main” switches you can use, so you don’t have to generate dynamically the inputs in the next pages.
Using the SmartApp SDK, I created a single-page SmartApp with the following workflow:
- Select the list of main switches.
- Click in done and create the new sections to configure the list of switches controlled and their behavior.
- Allow the installation only when all required values are filled
Here, if the user wants to update the list of “main” switches, the values remain, not like in the Groovy IDE SmartApp.
