mirror of
https://github.com/esphome/esphome.git
synced 2026-07-10 17:05:36 +00:00
1017ce87d6b7deb49911f250be6755d06ec2f56b
The debug component's reset reason text sensor was returning an empty string on RP2040/RP2350 platforms. Read the chip reset registers to report the actual reset source. RP2040: reads VREG_AND_CHIP_RESET for POR and RUN pin. RP2350: reads POWMAN chip_reset for POR, brown-out, RUN pin, and power supply glitch. Both: checks watchdog_caused_reboot() from the Pico SDK, and distinguishes between crash (HardFault), watchdog timeout, and software reset by consulting the crash handler data. Also adds buf_append_str() helper to helpers.h for efficient plain string appends without format parsing overhead.
Description
ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems.
Readme
Multiple Licenses
546 MiB
Languages
C++
60.1%
Python
39.3%
C
0.3%
JavaScript
0.2%
