Skip to content

Instantly share code, notes, and snippets.

@aurman
Created August 30, 2013 03:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aurman/6386130 to your computer and use it in GitHub Desktop.
Save aurman/6386130 to your computer and use it in GitHub Desktop.
def switchMode{
def map = [:]
switch (cmd.mode) {
case zigbee.smartShield(text: "F,0").format()
break
case zigbee.smartShield(text: "F,1").format()
break
case zigbee.smartShield(text: "F,2").format()
break
}
map.name = "thermostatMode"
map
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment