preferences {
page(name: "setupNotifications")
- page(name: "chooseTrack", title: "Select a song or station")
page(name: "timeIntervalInput", title: "Only during a certain time") {
section {
input "starting", "time", title: "Starting", required: false
}
}
-def chooseTrack() {
- dynamicPage(name: "chooseTrack") {
- section{
- input "song","enum",title:"Play this track", required:true, multiple: false, options: songOptions()
- }
- }
-}
-
private songOptions() {
// Make sure current selection is in the set