href "timeIntervalInput", title: "Only during a certain time"
input "days", "enum", title: "Only on certain days of the week", multiple: true, required: false,
options: ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"]
- if (settings.modes) {
+ //if (settings.modes) {
input "modes", "mode", title: "Only when mode is", multiple: true, required: false
- }
+ // }
input "oncePerDay", "bool", title: "Only once per day", required: false, defaultValue: false
}
}
private takeAction(evt) {
def name = "mode_$evt.value".toString()
- def selectedSong = state.selectedSongs."$name"
+ def selectedSong = state.selectedSongs
if (selectedSong == "PAUSE") {
sonos.stop()