Created
March 18, 2015 18:34
-
-
Save tylerlange/71f6ccc09569e154e5bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tiles { | |
standardTile("toggle", "device.door", width: 2, height: 2) { | |
state("unknown", label:'${name}', action:"refresh.refresh", icon:"st.doors.garage.garage-open", backgroundColor:"#ffa81e") | |
state("closed", label:'${name}', action:"door control.open", icon:"st.doors.garage.garage-closed", backgroundColor:"#79b821", nextState:"opening") | |
state("open", label:'${name}', action:"door control.close", icon:"st.doors.garage.garage-open", backgroundColor:"#ffa81e", nextState:"closing") | |
state("opening", label:'${name}', icon:"st.doors.garage.garage-opening", backgroundColor:"#ffe71e") | |
state("closing", label:'${name}', icon:"st.doors.garage.garage-closing", backgroundColor:"#ffe71e") | |
} | |
standardTile("open", "device.door", inactiveLabel: false, decoration: "flat") { | |
state "default", label:'open', action:"door control.open", icon:"st.doors.garage.garage-opening" | |
} | |
standardTile("close", "device.door", inactiveLabel: false, decoration: "flat") { | |
state "default", label:'close', action:"door control.close", icon:"st.doors.garage.garage-closing" | |
} | |
standardTile("refresh", "device.door", inactiveLabel: false, decoration: "flat") { | |
state "default", label:'', action:"refresh.refresh", icon:"st.secondary.refresh" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment