Hello, I’d like help with one of the Sonoff Dual R3 devices I have purchased, of which this is the first with this issue that I’m facing. The device will reboot rapidly, each reboot taking roughly 700ms by my estimate. It occurs immediately after the logs say it is Enabling STA. At this point I’m decently certain I have a device that is faulty in some way but I figured I’d see if any of you experts have a different thing to try. This is the third such device I have flashed using ESPHome, each time using a modified version of the first successful flash’s yaml file where I change the name, IP, api key, etc to avoid conflicts, so they are effectively all configured the same - I don’t suspect that the yaml is the issue at hand as this process has already been successful twice. My most recent flash I made the logs very-verbose to make sure any detail is present just in case it is relevant. Here is hoping someone else has dealt with this before. I only took the logs from the first boot loop, but it runs through this endlessly, repeating from the start and incrementing the unsuccessful boot count by 1 until it gets to 10, then starts over.
[17:47:52.944]rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[17:47:52.947]configsip: 0, SPIWP:0xee
[17:47:52.953]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[17:47:52.955]mode:DIO, clock div:2
[17:47:52.957]load:0x3fff0030,len:6276
[17:47:52.960]load:0x40078000,len:15736
[17:47:52.962]load:0x40080400,len:4
[17:47:52.964]load:0x40080404,len:3860
[17:47:52.965]entry 0x40080634
[17:47:52.971]I (29) boot: ESP-IDF 5.4.2 2nd stage bootloader
[17:47:52.976]I (29) boot: compile time Nov 11 2025 21:54:33
[17:47:52.979]I (30) boot: Multicore bootloader
[17:47:52.982]I (31) boot: chip revision: v3.1
[17:47:52.985]I (33) boot.esp32: SPI Speed : 40MHz
[17:47:52.989]I (37) boot.esp32: SPI Mode : DIO
[17:47:52.992]I (41) boot.esp32: SPI Flash Size : 4MB
[17:47:52.997]I (44) boot: Enabling RNG early entropy source...
[17:47:53.000]I (49) boot: Partition Table:
[17:47:53.006]I (51) boot: ## Label Usage Type ST Offset Length
[17:47:53.012]I (58) boot: 0 nvs WiFi data 01 02 00009000 00005000
[17:47:53.019]I (64) boot: 1 otadata OTA data 01 00 0000e000 00002000
[17:47:53.025]I (71) boot: 2 app0 OTA app 00 10 00010000 001c0000
[17:47:53.032]I (77) boot: 3 app1 OTA app 00 11 001d0000 001c0000
[17:47:53.038]I (84) boot: 4 eeprom Unknown data 01 99 00390000 00001000
[17:47:53.045]I (90) boot: 5 spiffs Unknown data 01 82 00391000 0000f000
[17:47:53.048]I (97) boot: End of partition table
[17:47:53.056]I (100) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=25fech (155628) map
[17:47:53.105]I (161) esp_image: segment 1: paddr=00036014 vaddr=3ff80000 size=0001ch ( 28) load
[17:47:53.112]I (161) esp_image: segment 2: paddr=00036038 vaddr=3ffb0000 size=03ee4h ( 16100) load
[17:47:53.120]I (171) esp_image: segment 3: paddr=00039f24 vaddr=40080000 size=060f4h ( 24820) load
[17:47:53.127]I (182) esp_image: segment 4: paddr=00040020 vaddr=400d0020 size=adddch (712156) map
[17:47:53.369]I (425) esp_image: segment 5: paddr=000ede04 vaddr=400860f4 size=10bc8h ( 68552) load
[17:47:53.405]I (463) boot: Loaded app from partition at offset 0x10000
[17:47:53.409]I (463) boot: Disabling RNG early entropy source...
[17:47:53.433][ 2][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x400ecf64
[17:47:53.446][ 13][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x400ecf34
[17:47:53.460][ 27][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x400ecf04
[17:47:53.474][ 40][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x400eced4
[17:47:53.487][ 54][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x400ecf64
[17:47:53.501][ 67][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x400ecf34
[17:47:53.514][ 81][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x400ecf04
[17:47:53.528][ 94][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x400eced4
[17:47:53.541][ 108][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RX (2) successfully set to 0x400ecf64
[17:47:53.555][ 121][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_TX (3) successfully set to 0x400ecf34
[17:47:53.568][ 135][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_CTS (4) successfully set to 0x400ecf04
[17:47:53.581][ 148][V][esp32-hal-periman.c:235] perimanSetBusDeinit(): Deinit function for type UART_RTS (5) successfully set to 0x400eced4
[17:47:53.605][ 174][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 3 successfully set to type UART_RX (2) with bus 0x3ffb003c
[17:47:53.618][ 185][V][esp32-hal-periman.c:160] perimanSetPinBus(): Pin 1 successfully set to type UART_TX (3) with bus 0x3ffb003c
[17:47:53.624]=========== Before Setup Start ===========
[17:47:53.627]Chip Info:
[17:47:53.633]------------------------------------------
[17:47:53.640] Model : ESP32
[17:47:53.649] Package : D0WD-Q5
[17:47:53.654] Revision : 3.01
[17:47:53.659] Cores : 2
[17:47:53.664] CPU Frequency : 160 MHz
[17:47:53.669] XTAL Frequency : 40 MHz
[17:47:53.674] Features Bitfield : 0x00000032
[17:47:53.678] Embedded Flash : No
[17:47:53.683] Embedded PSRAM : No
[17:47:53.687] 2.4GHz WiFi : Yes
[17:47:53.692] Classic BT : Yes
[17:47:53.696] BT Low Energy : Yes
[17:47:53.701] IEEE 802.15.4 : No
[17:47:53.707]------------------------------------------
[17:47:53.711]INTERNAL Memory Info:
[17:47:53.717]------------------------------------------
[17:47:53.723] Total Size : 332252 B ( 324.5 KB)
[17:47:53.730] Free Bytes : 304296 B ( 297.2 KB)
[17:47:53.736] Allocated Bytes : 24248 B ( 23.7 KB)
[17:47:53.742] Minimum Free Bytes: 300028 B ( 293.0 KB)
[17:47:53.748] Largest Free Block: 131072 B ( 128.0 KB)
[17:47:53.754]------------------------------------------
[17:47:53.757]Flash Info:
[17:47:53.763]------------------------------------------
[17:47:53.769] Chip Size : 4194304 B (4 MB)
[17:47:53.775] Block Size : 65536 B ( 64.0 KB)
[17:47:53.781] Sector Size : 4096 B ( 4.0 KB)
[17:47:53.788] Page Size : 256 B ( 0.2 KB)
[17:47:53.793] Bus Speed : 40 MHz
[17:47:53.799] Bus Mode : DIO
[17:47:53.805]------------------------------------------
[17:47:53.809]Partitions Info:
[17:47:53.815]------------------------------------------
[17:47:53.833] nvs : addr: 0x00009000, size: 20.0 KB, type: DATA, subtype: NVS
[17:47:53.852] otadata : addr: 0x0000E000, size: 8.0 KB, type: DATA, subtype: OTA
[17:47:53.869] app0 : addr: 0x00010000, size: 1792.0 KB, type: APP, subtype: OTA_0
[17:47:53.885] app1 : addr: 0x001D0000, size: 1792.0 KB, type: APP, subtype: OTA_1
[17:47:53.904] eeprom : addr: 0x00390000, size: 4.0 KB, type: DATA, subtype: 0x99
[17:47:53.922] spiffs : addr: 0x00391000, size: 60.0 KB, type: DATA, subtype: SPIFFS
[17:47:53.928]------------------------------------------
[17:47:53.932]Software Info:
[17:47:53.938]------------------------------------------
[17:47:53.944] Compile Date/Time : Nov 11 2025 21:53:29
[17:47:53.949] ESP-IDF Version : 5.4.2
[17:47:53.953] Arduino Version : 3.2.1
[17:47:53.959]------------------------------------------
[17:47:53.963]Board Info:
[17:47:53.969]------------------------------------------
[17:47:53.974] Arduino Board : ESP32_DEV
[17:47:53.978] Arduino Variant : esp32
[17:47:53.983] Core Debug Level : 5
[17:47:53.987] Arduino Runs Core : 1
[17:47:53.992] Arduino Events on : 1
[17:47:53.996] CDC On Boot : 0
[17:47:54.002]============ Before Setup End ============
[17:47:54.109][I][logger:121]: Log initialized
[17:47:54.115][VV][esp32.preferences:079]: nvs_get_blob: key: 233825507, len: 4
[17:47:54.121][C][safe_mode:084]: Unsuccessful boot attempts: 0
[17:47:54.128][VV][esp32.preferences:048]: s_pending_save: key: 233825507, len: 4
[17:47:54.133][V][esp32.preferences:122]: Saving 1 items...
[17:47:54.140][VV][esp32.preferences:131]: Checking if NVS data 233825507 has changed
[17:47:54.146][V][esp32.preferences:134]: sync: key: 233825507, len: 4
[17:47:54.153][D][esp32.preferences:149]: Writing 1 items: 0 cached, 1 written, 0 failed
[17:47:54.157][I][app:073]: Running through setup()
[17:47:54.163][V][app:074]: Sorting components by setup priority
[17:47:54.167][V][component:166]: Setup preferences
[17:47:54.174][V][scheduler:148]: Scheduler interval for is 60000ms, offset 1388ms
[17:47:54.179][VV][component:223]: preferences loop disabled
[17:47:54.184][C][component:173]: Setup preferences took 9ms
[17:47:54.188][V][component:166]: Setup gpio.switch
[17:47:54.194][D][switch:024]: 'Master Room Relay' Turning OFF.
[17:47:54.200][D][switch:063]: 'Master Room Relay': Sending state OFF
[17:47:54.206][D][switch:024]: 'Master Room Relay' Turning OFF.
[17:47:54.211][C][component:173]: Setup gpio.switch took 20ms
[17:47:54.215][V][component:166]: Setup gpio.switch
[17:47:54.220][D][switch:024]: 'Master Corner Relay' Turning OFF.
[17:47:54.227][D][switch:063]: 'Master Corner Relay': Sending state OFF
[17:47:54.232][D][switch:024]: 'Master Corner Relay' Turning OFF.
[17:47:54.237][C][component:173]: Setup gpio.switch took 10ms
[17:47:54.241][V][component:166]: Setup binary_sensor
[17:47:54.247][C][component:173]: Setup binary_sensor took 0ms
[17:47:54.251][V][component:166]: Setup gpio.binary_sensor
[17:47:54.257][C][component:173]: Setup gpio.binary_sensor took 1ms
[17:47:54.261][V][component:166]: Setup binary_sensor
[17:47:54.267][C][component:173]: Setup binary_sensor took 0ms
[17:47:54.271][V][component:166]: Setup gpio.binary_sensor
[17:47:54.277][C][component:173]: Setup gpio.binary_sensor took 1ms
[17:47:54.282][V][component:166]: Setup web_server_base
[17:47:54.287][C][component:173]: Setup web_server_base took 0ms
[17:47:54.291][V][component:166]: Setup wifi
[17:47:54.293][C][wifi:078]: Starting
[17:47:54.296][C][wifi:078]: Local MAC: 20:43:A8:C9:5C:0C
[17:47:54.307][V][esp32.preferences:067]: nvs_get_blob('2614382419'): ESP_ERR_NVS_NOT_FOUND - the key might not be set yet
[17:47:54.311][V][wifi_esp32:226]: Enabling STA
[17:47:54.380]ets Jul 29 2019 12:21:46