)
preferences {
- page(name: "mainPage", title: "Play a message on your Sonos when something happens", nextPage: "chooseTrack", uninstall: true)
- page(name: "chooseTrack", title: "Select a song", install: true)
page(name: "timeIntervalInput", title: "Only during a certain time") {
section {
input "starting", "time", title: "Starting", required: false
input "ending", "time", title: "Ending", required: false
}
}
+ page(name: "mainPage", title: "Play a message on your Sonos when something happens", nextPage: "chooseTrack", uninstall: true)
+ page(name: "chooseTrack", title: "Select a song", install: true)
+
}
private songOptions() {
-
+ /*
// Make sure current selection is in the set
def options = new LinkedHashSet()
options.addAll(dataMaps.collect{it.station})
log.trace "${options.size()} songs in list"
- options.take(20) as List
+ options.take(20) as List*/
+ state.selectedSong = "SomeTrack"
}
private saveSelectedSongs() {
+ /*
try {
def songs = sonos.statesSince("trackData", new Date(0), [max:30]).collect{it.jsonValue}
log.info "Searching ${songs.size()} records"
}
catch (Throwable t) {
log.error t
- }
+ }*/
+ state.selectedSong = "SomeTrack"
}