Skip to content

Instantly share code, notes, and snippets.

@aurman
Created Aug 30, 2013
Embed
What would you like to do?
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