     if ( millis() - previousMillis >= waitInterval ) {
       previousMillis = millis();
       if ( function == -1 ) {
-        buttonNode.setProperty("event").send("SINGLEHELD");
+        buttonNode.setProperty("event").setRetained(false).send("SINGLEHELD");
         Serial.println("SINGLE LONG click");
       }
 
       if ( function == -2 ) {
-        buttonNode.setProperty("event").send("DOUBLEHELD");
+        buttonNode.setProperty("event").setRetained(false).send("DOUBLEHELD");
         Serial.println("DOUBLE LONG click");
       }
 
       if ( function == -3 ) {
-        buttonNode.setProperty("event").send("TRIPLEHELD");
+        buttonNode.setProperty("event").setRetained(false).send("TRIPLEHELD");
         Serial.println("TRIPLE LONG click");
       }
     }

    Serial.println("One-shot");
    if ( function == 1 ) {
      Serial.println("SINGLE click");
      buttonNode.setProperty("event").send("SINGLE");
    }

    if ( function == 2 ) {
      buttonNode.setProperty("event").send("DOUBLE");
      Serial.println("DOUBLE click");
    }

    if ( function == 3 ) {
      buttonNode.setProperty("event").send("TRIPLE");
      Serial.println("TRIPLE click");
    }
    // This has been a single event.

// Register our two HomieNode instances
// nodeName(property, value, retained);
HomieNode relayNode("relay", "relay");
//HomieNode buttonNode("button", "button", false);
HomieNode buttonNode("button", "button");

bool RelayHandler(const HomieRange& range, const String& value) {
  /*
