   HomieRange emptyRange;
   if (EEpromData.initialState) {
     RelayHandler(emptyRange, "ON");
-    relayNode.setProperty("relayInitMode").send("1");
+    relayNode.setProperty("relayInitMode").setRetained(false).send("1");
   } else {
     RelayHandler(emptyRange, "OFF");
-    relayNode.setProperty("relayInitMode").send("0");
+    relayNode.setProperty("relayInitMode").setRetained(false).send("0");
   }
   String outMsg = String(EEpromData.keepAliveTimeOut);
   keepAliveNode.setProperty("timeOut").send(outMsg);

      }
      // Read the new state, and use it to set the initial startup state
      String PIN_STATE = String(digitalRead(PIN_RELAY));
      relayNode.setProperty("relayInitMode").send(PIN_STATE);
      Serial.println("SINGLE click");
    }


  int oldValue = EEpromData.initialState;
  if (value.toInt() == 1 or value=="ON")
  {
    relayNode.setProperty("relayInitMode").setRetained(false).send("1");
    EEpromData.initialState=1;
  } else {
    relayNode.setProperty("relayInitMode").setRetained(false).send( "0");
    EEpromData.initialState=0;
  }
  if (oldValue!=EEpromData.initialState)
