Assertion: preference | /r/HasProperty | name: mainpage
Facets:
Source sentences:
text: preferences { page ( name: "mainPage" , title: "Select some things" , hideWhenEmpty: true ) { section { input "switches" , "capability.switch" , title: "Select a switch" input "valves" , "capability.valve" , title: "Select a valve" , required: false } section { input "audio" , "capability.musicPlayer" , title: "Select a music player" } } } It is worth noting that in the last example, the audio input does not have the usual required: false attribute.
text: preferences { page ( name: "mainPage" , title: "Select some things" , hideWhenEmpty: true ) { section { input "switches" , "capability.switch" , title: "Select a switch" input "valves" , "capability.valve" , title: "Select a valve" , required: false } section { input "audio" , "capability.musicPlayer" , title: "Select a music player" } } } It is worth noting that in the last example, the audio input does not have the usual required: false attribute.
text: preferences { page ( name: "mainPage" , title: "Select some things" , hideWhenEmpty: true ) { section { input "audio" , "capability.musicPlayer" , title: "Select a music player" input "volume" , "number" , title: "Set it to this volume level" , hideWhenEmpty: "audio" } } }
text: preferences { page ( name: "mainPage" , title: "Select some things" , hideWhenEmpty: true ) { section { input "audio" , "capability.musicPlayer" , title: "Select a music player" input "volume" , "number" , title: "Set it to this volume level" , hideWhenEmpty: "audio" } } }