App inputs don't always persist when navigating backwards

Hi, there! Let me see if I understand the workflow of your application:

  1. Main: Select devices you will use as main switches.
  2. SelectLights
    a. It generates the inputs according to the quantity of the devices you selected in Main
    b. You can select a list of devices that the switch of Main will control.
  3. Behavior: The options to define a behavior for each group of lights (on/off) are generated also based on the selection in Main.

As every time you enter those pages, the inputs are regenerated, the previous options selected are not kept.

BTW, the Groovy SmartApps are part of our legacy platform, so, I suggest you get started with the SmartApp SDK, here’s a tutorial about it: