iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png",
iconX3Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png")
+preferences {
+ page(name: selectSwitches)
+}
+
+def selectSwitches() {
+ dynamicPage(name: "selectSwitches", title: "Switches", install: true) {
+ section("Select switches named after Hello Home phrases") {
+ input "switches", "capability.switch", title: "Switches", multiple: true
+ }
+ }
+}
def installed() {
initialize()
setLocationMode(mode)
}
}
-
-preferences {
- page(name: selectSwitches)
-}
-
-def selectSwitches() {
- dynamicPage(name: "selectSwitches", title: "Switches", install: true) {
- section("Select switches named after Hello Home phrases") {
- input "switches", "capability.switch", title: "Switches", multiple: true
- }
- }
-}