Created
August 30, 2013 03:42
-
-
Save aurman/6386130 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
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