     }
 
     switch(cmdId) {
-    case Command.Zero.rawValue:
+    case Command.Zero:
         powerOff()
-    case Command.One.rawValue:
+    case Command.One:
         yellow()
-    case Command.Two.rawValue:
+    case Command.Two:
         green()
     default:
         throw Abort.badRequest

    return try JSON(node: [
        "version": "1.0.0",
        "command": "\(cmdId)",
        "yellow": "\(status(ports[.P20]))",
        "green": "\(status(ports[.P26]))"
        ])
}


}

func green() {
    if (gpioLib.status(ports[.P26]) == 0) {
        gpioLib.switchOn(ports: [.P26])
    } else {
        gpioLib.switchOff(ports: [.P26])
