From dc096a9856ed217187d9170100455d9a9253c6e8 Mon Sep 17 00:00:00 2001 From: proddy Date: Mon, 8 Jun 2026 22:34:50 +0200 Subject: [PATCH] load Commands first before Scheduler --- src/core/emsesp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/emsesp.cpp b/src/core/emsesp.cpp index 9753a5d38..1fafe85d2 100644 --- a/src/core/emsesp.cpp +++ b/src/core/emsesp.cpp @@ -1131,7 +1131,7 @@ bool EMSESP::process_telegram(const std::shared_ptr & telegram) wait_validate_ = 0; } - // Check for custom entities reding this telegram + // check for custom entities reding this telegram webCustomEntityService.get_value(telegram); // check for common types, like the Version(0x02) @@ -1182,6 +1182,7 @@ bool EMSESP::process_telegram(const std::shared_ptr & telegram) } } } + // handle unknown telegrams if (!telegram_found) { // mark nonempty telegrams as ignored @@ -1763,8 +1764,8 @@ void EMSESP::start() { // start the core web services, as this loads the settings from the filesystem // this will also handle any MQTT subscriptions webCustomizationService.begin(); // load the customizations - webSchedulerService.begin(); // load the scheduler events webCommandService.begin(); // load the user commands + webSchedulerService.begin(); // load the scheduler events webCustomEntityService.begin(); // load the custom telegram reads // perform any system upgrades