Skip to content

Commit

Permalink
Update motion-detector.groovy (SmartThingsCommunity#2342)
Browse files Browse the repository at this point in the history
Update standardTile to multiAttributeTile.  No functional changes.
  • Loading branch information
Allan authored and workingmonk committed Sep 19, 2017
1 parent 1c72c27 commit 57249ee
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ metadata {
}

// UI tile definitions
tiles {
standardTile("motion", "device.motion", width: 2, height: 2) {
state("active", label:'motion', icon:"st.motion.motion.active", backgroundColor:"#00A0DC")
state("inactive", label:'no motion', icon:"st.motion.motion.inactive", backgroundColor:"#cccccc")
}

tiles(scale: 2) {
multiAttributeTile(name:"motion", type: "generic", width: 6, height: 4){
tileAttribute("device.motion", key: "PRIMARY_CONTROL") {
attributeState("active", label:'motion', icon:"st.motion.motion.active", backgroundColor:"#00A0DC")
attributeState("inactive", label:'no motion', icon:"st.motion.motion.inactive", backgroundColor:"#CCCCCC")
}
}
main "motion"
details "motion"
}
Expand Down

0 comments on commit 57249ee

Please sign in to comment.