diff --git a/esp32/src/main.cpp b/esp32/src/main.cpp index c2cebec..4da930c 100644 --- a/esp32/src/main.cpp +++ b/esp32/src/main.cpp @@ -335,7 +335,6 @@ void systemInit(){ Homie_setFirmware("PlantControl", FIRMWARE_VERSION); Homie.setLoopFunction(loopHandler); - Homie.setup(); mConfigured = Homie.isConfigured(); @@ -415,6 +414,8 @@ void systemInit(){ // Mode 3 stayAlive.advertise("alive").setName("Alive").setDatatype("number").settable(aliveHandler); } + + Homie.setup(); }