diff --git a/esphome/components/api/__init__.py b/esphome/components/api/__init__.py index 9a2078f37b..a7050b3683 100644 --- a/esphome/components/api/__init__.py +++ b/esphome/components/api/__init__.py @@ -203,6 +203,7 @@ async def to_code(config): if CORE.using_esp_idf: # Enable heap tracing in sdkconfig add_idf_sdkconfig_option("CONFIG_HEAP_TRACING", True) + add_idf_sdkconfig_option("CONFIG_HEAP_TRACE_STACK_DEPTH", 10) # Set tracing mode (standalone or system) if heap_tracing_config[CONF_HEAP_TRACING_STANDALONE]: