EverythingSmartHome / everything-presence-one

Official Repo for the Everything Presence One sensor!
400 stars 71 forks source link

Everything-presence-one in a boot loop after recent update #210

Open pawilli opened 1 month ago

pawilli commented 1 month ago

My Ep1 is in a boot loop after update. I have attached my conf and the boot loop log below.

Please assist. Thank you.

----ESPHOME` YAML----

substitutions:
  name: ep1-up
  friendly_name: Motion Living room
packages:
  Everything_Smart_Technology.Everything_Presence_One: github://everythingsmarthome/everything-presence-one/everything-presence-one.yaml@main

esphome:
  name: ${name}
  name_add_mac_suffix: false
  friendly_name: ${friendly_name}

api:
  encryption:
    key: <<redacted>>

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

#----END ESPHOME YAML----

-----LOG FILE BELOW from boot to boot---

[09:18:46]Rebooting... [09:18:46]ets Jul 29 2019 12:21:46 [09:18:46] [09:18:46]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) [09:18:46]configsip: 0, SPIWP:0xee [09:18:46]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 [09:18:46]mode:DIO, clock div:2 [09:18:46]load:0x3fff0030,len:6652 [09:18:46]ho 0 tail 12 room 4 [09:18:46]load:0x40078000,len:15052 [09:18:46]load:0x40080400,len:3836 [09:18:46]entry 0x4008069c [09:18:46]I (29) boot: ESP-IDF 4.4.7 2nd stage bootloader [09:18:46]I (29) boot: compile time 17:10:53 [09:18:46]I (29) boot: Multicore bootloader [09:18:46]I (32) boot: chip revision: v3.0 [09:18:46]I (36) boot.esp32: SPI Speed : 40MHz [09:18:46]I (41) boot.esp32: SPI Mode : DIO [09:18:46]I (45) boot.esp32: SPI Flash Size : 4MB [09:18:46]I (50) boot: Enabling RNG early entropy source... [09:18:46]I (55) boot: Partition Table: [09:18:46]I (59) boot: ## Label Usage Type ST Offset Length [09:18:46]I (66) boot: 0 otadata OTA data 01 00 00009000 00002000 [09:18:46]I (73) boot: 1 phy_init RF data 01 01 0000b000 00001000 [09:18:46]I (81) boot: 2 app0 OTA app 00 10 00010000 001c0000 [09:18:46]I (88) boot: 3 app1 OTA app 00 11 001d0000 001c0000 [09:18:46]I (96) boot: 4 nvs WiFi data 01 02 00390000 0006d000 [09:18:46]I (103) boot: End of partition table [09:18:46]I (108) esp_image: segment 0: paddr=001d0020 vaddr=3f400020 size=37f5ch (229212) map [09:18:46]I (199) esp_image: segment 1: paddr=00207f84 vaddr=3ffbdb60 size=03380h ( 13184) load [09:18:46]I (205) esp_image: segment 2: paddr=0020b30c vaddr=40080000 size=04d0ch ( 19724) load [09:18:46]I (213) esp_image: segment 3: paddr=00210020 vaddr=400d0020 size=a93c4h (693188) map [09:18:46]I (464) esp_image: segment 4: paddr=002b93ec vaddr=40084d0c size=10224h ( 66084) load [09:18:46]I (502) boot: Loaded app from partition at offset 0x1d0000 [09:18:46]I (502) boot: Disabling RNG early entropy source... [09:18:46]I (513) cpu_start: Multicore app [09:18:46]I (514) cpu_start: Pro cpu up. [09:18:46]I (514) cpu_start: Starting app cpu, entry point is 0x40081f94 [09:18:46]I (502) cpu_start: App cpu up. [09:18:46]I (532) cpu_start: Pro cpu start user code [09:18:46]I (532) cpu_start: cpu freq: 160000000 [09:18:46]I (532) cpu_start: Application information: [09:18:46]I (536) cpu_start: Project name: ep1-up [09:18:46]I (541) cpu_start: App version: 2024.7.2 [09:18:46]I (546) cpu_start: Compile time: Jul 27 2024 17:16:20 [09:18:46]I (552) cpu_start: ELF file SHA256: 14b136596c557818... [09:18:46]I (558) cpu_start: ESP-IDF: 4.4.7 [09:18:46]I (563) cpu_start: Min chip rev: v0.0 [09:18:46]I (568) cpu_start: Max chip rev: v3.99 [09:18:46]I (573) cpu_start: Chip rev: v3.0 [09:18:46]I (578) heap_init: Initializing. RAM available for dynamic allocation: [09:18:46]I (585) heap_init: At 3FFAE6E0 len 0000F480 (61 KiB): DRAM [09:18:46]I (591) heap_init: At 3FFC5820 len 0001A7E0 (105 KiB): DRAM [09:18:46]I (597) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM [09:18:46]I (603) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM [09:18:46]I (610) heap_init: At 40094F30 len 0000B0D0 (44 KiB): IRAM [09:18:46]I (617) spi_flash: detected chip: generic [09:18:46]I (621) spi_flash: flash io: dio [09:18:46]I (627) cpu_start: Starting scheduler on PRO CPU. [09:18:46]I (0) cpu_start: Starting scheduler on APP CPU. [09:18:46][E][esp-idf:000]: I (239) gpio: GPIO[25]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0

[E][esp-idf:000]: I (240) gpio: GPIO[26]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0

[E][esp-idf:000]: I (274) uart: queue free spaces: 20

[E][esp-idf:000]: I (275) gpio: GPIO[32]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0

[E][esp-idf:000]: I (276) gpio: GPIO[15]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 1| Intr:0

[E][shtcx:080]: sensor polling failed [E][esp-idf:000]: I (294) gpio: GPIO[33]| InputEn: 1| OutputEn: 0| OpenDrain: 0| Pullup: 0| Pulldown: 1| Intr:0

[E][esp-idf:000]: I (311) wifi: [E][esp-idf:000]: wifi driver task: 3ffbd724, prio:23, stack:6656, core=0 [E][esp-idf:000]:

[E][esp-idf:000][wifi]: I (1255) system_api: Base MAC address is not set

[E][esp-idf:000][wifi]: I (1263) system_api: read default base MAC address from EFUSE

[E][esp-idf:000][wifi]: I (1276) wifi: [E][esp-idf:000][wifi]: wifi firmware version: 1fd20f4 [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (1294) wifi: [E][esp-idf:000][wifi]: wifi certification version: v7.0 [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (1304) wifi: [E][esp-idf:000][wifi]: config NVS flash: enabled [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (1324) wifi: [E][esp-idf:000][wifi]: config nano formating: disabled [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (1335) wifi: [E][esp-idf:000][wifi]: Init data frame dynamic rx buffer num: 32 [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (1355) wifi: [E][esp-idf:000][wifi]: Init static rx mgmt buffer num: 5 [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (1375) wifi: [E][esp-idf:000][wifi]: Init management short buffer num: 32 [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (1386) wifi: [E][esp-idf:000][wifi]: Init dynamic tx buffer num: 32 [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (1406) wifi: [E][esp-idf:000][wifi]: Init static rx buffer size: 1600 [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (1427) wifi: [E][esp-idf:000][wifi]: Init static rx buffer num: 10 [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (1437) wifi: [E][esp-idf:000][wifi]: Init dynamic rx buffer num: 32 [E][esp-idf:000][wifi]:

[E][esp-idf:000]: I (1458) wifi_init: rx ba win: 6

[E][esp-idf:000]: I (1468) wifi_init: tcpip mbox: 32

[E][esp-idf:000]: I (1478) wifi_init: udp mbox: 6

[E][esp-idf:000]: I (1478) wifi_init: tcp mbox: 6

[E][esp-idf:000]: I (1488) wifi_init: tcp tx win: 5760

[E][esp-idf:000]: I (1488) wifi_init: tcp rx win: 5760

[E][esp-idf:000]: I (1498) wifi_init: tcp mss: 1440

[E][esp-idf:000]: I (1509) wifi_init: WiFi IRAM OP enabled

[E][esp-idf:000]: I (1509) wifi_init: WiFi RX IRAM OP enabled

[E][esp-idf:000][wifi]: I (1520) phy_init: phy_version 4791,2c4672b,Dec 20 2023,16:06:06

[E][esp-idf:000][wifi]: I (1605) wifi: [E][esp-idf:000][wifi]: mode : sta (c8:f0:9e:f0:ee:94) [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (1607) wifi: [E][esp-idf:000][wifi]: enable tsf [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (1611) wifi: [E][esp-idf:000][wifi]: Set ps type: 1

[E][esp-idf:000][wifi]:

[E][shtcx:094]: sensor read failed [E][esp-idf:000][wifi]: I (2641) wifi: [E][esp-idf:000][wifi]: Set ps type: 1

[E][esp-idf:000][wifi]:

[E][shtcx:094]: sensor read failed [E][esp-idf:000][wifi]: I (5232) wifi: [E][esp-idf:000][wifi]: new:<1,0>, old:<1,0>, ap:<255,255>, sta:<1,0>, prof:1 [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (5445) wifi: [E][esp-idf:000][wifi]: state: init -> auth (b0) [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (5450) wifi: [E][esp-idf:000][wifi]: state: auth -> assoc (0) [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (5456) wifi: [E][esp-idf:000][wifi]: state: assoc -> run (10) [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (5488) wifi: [E][esp-idf:000][wifi]: connected with <>, aid = 1, channel 1, BW20, bssid = <> [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (5491) wifi: [E][esp-idf:000][wifi]: security: WPA2-PSK, phy: bgn, rssi: -47 [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (5502) wifi: [E][esp-idf:000][wifi]: pm start, type: 1

[E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (5522) wifi: [E][esp-idf:000][wifi]: AP's beacon interval = 102400 us, DTIM period = 1 [E][esp-idf:000][wifi]:

[E][esp-idf:000][wifi]: I (5549) wifi: [E][esp-idf:000][wifi]: idx:0 (ifx:0, 70:0f:6a:7c:b1:e2), tid:1, ssn:0, winSize:64 [E][esp-idf:000][wifi]:

[E][esp-idf:000][sys_evt]: I (6547) esp_netif_handlers: sta ip: 1....0, mask: 255.255.255.0, gw: 1...*

[E][esp-idf:000][wifi]: I (6573) wifi: [E][esp-idf:000][wifi]: idx:1 (ifx:0, 70:0f:6a:7c:b1:e2), tid:0, ssn:0, winSize:64 [E][esp-idf:000][wifi]:

E (11566) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: [09:18:46]E (11566) task_wdt: - loopTask (CPU 1) [09:18:46]E (11566) task_wdt: Tasks currently running: [09:18:46]E (11566) task_wdt: CPU 0: IDLE0 [09:18:46]E (11566) task_wdt: CPU 1: IDLE1 [09:18:46]E (11566) task_wdt: Aborting. [09:18:46] [09:18:46]abort() was called at PC 0x40101e40 on core 0 [09:18:46] [09:18:46] [09:18:46]Backtrace: 0x40082966:0x3ffbe3f0 0x400896e5:0x3ffbe410 0x4008f89a:0x3ffbe430 0x40101e40:0x3ffbe4a0 0x400832e9:0x3ffbe4c0 0x40175e87:0x3ffb2f00 0x40102591:0x3ffb2f20 0x4008aabc:0x3ffb2f40 [09:18:46] [09:18:46] [09:18:46] [09:18:46] [09:18:46]ELF file SHA256: 14b136596c557818 [09:18:46] [09:18:46]Rebooting... .....boot loop continues.....

----end log----

EverythingSmartHome commented 1 month ago

Hello, do you happen to have it blocked from internet access?

ThreeFN commented 1 month ago

Can confirm I'm having a similar issue, and yes, in my case my 'esphome net' is default blocked from most networks including WAN. I assume there's a blocking internet call that causes a reboot on failure?

EverythingSmartHome commented 1 month ago

Can you share config? Also if you can share the firewall rule you have that would be useful as I am unable to reproduce this on my side currently

ThreeFN commented 1 month ago

I'll start with this screen shot from pfsense but I can provide more detail if needed: image You can basically see the rules in order, I added the extra allow DNS rule and the allow github.io rule and that stopped the EP1's from 'flashing' their LEDs (like a reboot/restart flash), they wouldn't really connect to HA, and the log would be them connecting and disconnecting 1-2 times a minute.