   if (strcmp(inValue[0],"pump")==0) {
     if (strcmp(inValue[1],"1")==0) {
       isConfigPump = true;
+       digitalWrite(relay[8], relayOff);
+       configPumpStatus = "off";
       stations = relays - 1;
     }
     if (strcmp(inValue[1],"0")==0) {
       isConfigPump = false;
       stations = relays;
+    }
+    if (strcmp(inValue[1],"2")==0 && isConfigPump) {
+       digitalWrite(relay[8], relayOn);
+       configPumpStatus = "on";
     }
     schedulePumpUpdate();
   }

  smartthing.send(statusUpdate);
  statusUpdate = "";
}
void sendPumpUpdate() {
  if (isConfigPump) {
    smartthing.send("pumpAdded");
  }
  if (!isConfigPump) {
    smartthing.send("pumpRemoved");
  }
}

int relays = 8;  //set up before loading to Arduino (max = 8 with current code)
boolean isActiveHigh=false; //set to true if using "active high" relay, set to false if using "active low" relay
boolean isDebugEnabled=true;    // enable or disable debug in this example
boolean isPin13Pump =true;  //set to true if you add an additional relay to pin13 and use as pump or master valve.  

//set global variables
Timer t;
