    
    switch (opState) {
      case OFF:
-       Bridge.put("state", "off");
+       Bridge.put("cState", "off");
        Console.println("OFF");
        break;
      case SETP:
-       Bridge.put("state", "learn");
+       Bridge.put("cState", "learn");
        Console.println("LEARN");
        break;
      case RUN:
-       Bridge.put("state", "on");
+       Bridge.put("cState", "on");
        Console.println("ON");
        DoControl();
        break;

  } else {
    DriveOutput();
  }
}

void loop() {

  } else {
     digitalWrite(RelayPin,LOW);
  }
  
}


