 
   }
 
-/*
- * Homie event handler
- */
 void onHomieEvent(const HomieEvent& event) {
+  // Homie event handler
   switch(event.type) {
     case HomieEventType::CONFIGURATION_MODE: // Default eeprom data in configuration mode
       digitalWrite(PIN_RELAY, LOW);

  }
  return true;
}
/*
 * Received watchdog timeout value
 */
bool watchdogTimeOutHandler(const HomieRange& range, const String& value)
{
  int oldValue = EEpromData.watchDogTimeOut;
  if (value.toInt() > 15)
  {

    EEPROM.commit();
  }
}

bool relayInitModeHandler(HomieRange range, String value) {
  // Initial mode handler
  int oldValue = EEpromData.initialState;
  if (value.toInt() == 1 or value=="ON")
  {
