-definition(
- name: "Speaker Mood Music",
- namespace: "smartthings",
- author: "SmartThings",
- description: "Plays a selected song or station.",
- category: "SmartThings Labs",
- iconUrl: "https://s3.amazonaws.com/smartapp-icons/Partner/sonos.png",
- iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Partner/sonos@2x.png"
-)
-
-preferences {
- page(name: "mainPage", title: "Play a selected song or station on your Speaker 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
- }
- }
-}
-