 
 // Track current status of the devices
 boolean           g_relay_status                 = false;
-boolean           g_bypass_activated             = false;
+uint8_t           g_bypass_activated             = 0;
 boolean           g_bypass_hold                  = false;
 boolean           g_bypass_type                  = true; // True = switch; False = button
 

WiFiClient        g_wifiClient;
PubSubClient      g_mqttClient(g_wifiClient);


//############################################################################
//

      #endif
    }
  } else if (g_bypass_hold) {
    publishRelayStatus();
    #ifdef DEBUG
      Serial.println(F("INFO:  Bypass set, aborting requested action."));
    #endif
  } else {
    #ifdef DEBUG
