Alright, this is a good one to keep in mind if you ever decide to put a device input section in a dynamic page.
Two whole days, I’ve spent screwing around with this problem:
input(
//name : "${switchID} // doesn't work no way, no how
//name : switchID // doesn't work if constructed thus, def switchID = "thisCrud${someOtherBits}"
name : switchID // works: where switchID was built oldschool, IE: def switchID = "thisCrud" + someOtherVar
,title : "Select switches..."
,multiple : true
,required : true
,type : "capability.droveMeInsane"
)
Argggg…, in other words gstrings, bad juju…
So to avoid the problem shown in the screen shot, do not directly use gString variable name construction directly within the input maps name key value assignment.
