   smartthing.send(statusUpdate);
   statusUpdate = "";
 }
+
 void sendPumpUpdate() {
-  if (isConfigPump) {
-    smartthing.send("pumpAdded");
-  }
   if (!isConfigPump) {
     smartthing.send("pumpRemoved");
   }
-}
+  if (configPumpStatus == "on") {
+    smartthing.send("onPump");
+  }
+  if (configPumpStatus =="off" && isConfigPump) {
+    smartthing.send("offPump");
+  }
+}

/**
* 
 ****************************************************************************************************************************
 * Irrigation Controller v2.5 
 * Simple, elegant irrigation controller that takes advantage of the cloud and SmartThings ecosystem
 * Arduino UNO with SmartThings Shield  and an 8 Relay Module
 * Works by receiving irrigation run times from the Cloud and then builds a queue to execute

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;
