ESP32: crash in esp_vApplicationIdleHook
The problem
none(Crash detected in the Device Builder log viewer.)
- Platform: ESP32
- Installation: pip
- ESPHome 2026.8.1 (compiled)
- 2026.4.5 (running)
- Board: esp32dev
Decoded backtrace: 0x4008664e: esp_cpu_wait_for_intr at /root/.platformio/packages/framework-espidf/components/esp_hw_support/cpu.c:64 0x4008664b: xt_utils_wait_for_intr at /root/.platformio/packages/framework-espidf/components/xtensa/include/xt_utils.h:82 (inlined by) esp_cpu_wait_for_intr at /root/.platformio/packages/framework-espidf/components/esp_hw_support/cpu.c:55 0x4018071d: esp_vApplicationIdleHook at /root/.platformio/packages/framework-espidf/components/esp_system/freertos_hooks.c:58 0x4018243f: prvIdleTask at /root/.platformio/packages/framework-espidf/components/freertos/FreeRTOS-Kernel/tasks.c:4350 (discriminator 1)
Which version of ESPHome has the issue?
2026.8.1
What type of installation are you using?
Docker
What platform are you using?
ESP32
Component causing the issue
No response
YAML Config
esphome:
name: relais4canaux
friendly_name: Relais4canaux
esp32:
board: esp32dev
variant: esp32
framework:
type: esp-idf
# Activation du portail
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: •
ota:
- platform: esphome
password: •
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Optionnel : Calmer le roaming automatique
fast_connect: true # Se connecte au premier qu'il trouve sans tout scanner au boot
post_connect_roaming: false
# Configuration de l'IP Fixe
manual_ip:
static_ip: 192.168.0.171 # L'adresse que tu veux lui donner
gateway: 192.168.0.1 # L'adresse de ta box (à vérifier !)
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Relais4Canaux Fallback Hotspot"
password: •
substitutions:
base_topic: "esphome/esp32/4cnx"
mqtt:
id: mqtt_client
broker: 192.168.0.10 # Ton broker MQTT
topic_prefix: ${base_topic}
# Le "birth_message" publie "online" quand le module se connecte
birth_message:
topic: ${base_topic}/status
payload: online
# Le "will_message" est envoyé par le Broker si le module perd la connexion
will_message:
topic: ${base_topic}/status
payload: offline
text_sensor:
# 1. IP et SSID (Syntaxe native, pas de WiFi.macAddress() foireux)
- platform: wifi_info
ip_address:
name: "IP Address"
id: my_ip
on_value:
then:
- mqtt.publish:
topic: ${base_topic}/ip
payload: !lambda 'return x.c_str();'
ssid:
name: "Connected SSID"
on_value:
then:
- mqtt.publish:
topic: ${base_topic}/ssid
payload: !lambda 'return x.c_str();'
# 2. MAC ADRESSE (Utilise l'ID interne de l'appareil, plus fiable)
mac_address:
name: "MAC Address"
on_value:
then:
- mqtt.publish:
topic: ${base_topic}/mac
payload: !lambda 'return x.c_str();'
sensor:
# 3. SIGNAL RSSI (Plateforme wifi_signal)
- platform: wifi_signal
name: "WiFi Signal RSSI"
update_interval: 60s
on_value:
then:
- mqtt.publish:
topic: ${base_topic}/rssi
# Utilise 'to_string' qui est natif ESPHome au lieu de 'String()' d'Arduino
payload: !lambda 'return esphome::to_string(x);'
# Bouton de redémarrage via MQTT
button:
- platform: restart
name: "Restart Module"
# Cela créera un topic : esphome/esp32/4cnx/button/restart_module/command
# Envoyer "PRESS" sur ce topic déclenche le reboot
switch:
- platform: gpio
pin: 32
inverted: true
name: "Relais 1"
id: relay_1
restore_mode: ALWAYS_OFF
on_turn_on:
- mqtt.publish:
topic: ${base_topic}/relay1/state
payload: "on"
on_turn_off:
- mqtt.publish:
topic: ${base_topic}/relay1/state
payload: "off"
- platform: gpio
pin: 13
inverted: true
name: "Relais 2"
id: relay_2
restore_mode: ALWAYS_OFF
on_turn_on:
- mqtt.publish:
topic: ${base_topic}/relay2/state
payload: "ON"
on_turn_off:
- mqtt.publish:
topic: ${base_topic}/relay2/state
payload: "OFF"
- platform: gpio
pin: 14
inverted: true
name: "Relais 3"
id: relay_3
restore_mode: ALWAYS_OFF
on_turn_on:
- mqtt.publish:
topic: ${base_topic}/relay3/state
payload: "ON"
on_turn_off:
- mqtt.publish:
topic: ${base_topic}/relay3/state
payload: "OFF"
- platform: gpio
pin: 33
inverted: True
name: "Relais 4"
id: relay_4
restore_mode: ALWAYS_OFF
on_turn_on:
- mqtt.publish:
topic: ${base_topic}/relay4/state
payload: "ON"
on_turn_off:
- mqtt.publish:
topic: ${base_topic}/relay4/state
payload: "OFF"Anything in the logs that might be useful for us?
INFO ESPHome 2026.8.1
INFO Loaded validated config cache for relais4canaux.yaml, skipping validation.
INFO Starting log output from 192.168.0.171 using esphome API
INFO Successfully resolved relais4canaux @ 192.168.0.171 in 0.000s
INFO Successfully connected to relais4canaux @ 192.168.0.171 in 0.074s
INFO Starting looking for IP in topic esphome/discover/relais4canaux
INFO Connected to MQTT broker!
INFO Send discover via MQTT broker topic: esphome/ping/relais4canaux
INFO Successful handshake with relais4canaux @ 192.168.0.171 in 0.256s
INFO Found IP via MQTT broker: 192.168.0.171
[E][esp32.crash:329]: *** CRASH DETECTED ON PREVIOUS BOOT ***
[E][esp32.crash:332]: Reason: Fault - Unknown
[E][esp32.crash:336]: Crashed core: 1
[E][esp32.crash:337]: PC: 0x4008664E (fault location)
[E][esp32.crash:358]: Use: addr2line -pfiaC -e firmware.elf 0x4008664E 0x4008664B 0x4018071D 0x4018243FAdditional information
(Truncated to fit; full report available on request.)
Source: esphome/esphome