esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
291 stars 36 forks source link

ESPHome constant reboot / disconnects on DHCP #2159

Closed ilium007 closed 2 years ago

ilium007 commented 3 years ago

Operating environment/Installation (Hass.io/Docker/pip/etc.):

Docker

ESP (ESP32/ESP8266, Board/Sonoff):

ESP8266 - Adafruit Huzzah ESP8266 breakout (issue occurs with all ESPxx devices) PLATFORMIO_ESP01_1M

ESPHome version (latest production, beta, dev branch)

1.18.0

Affected component:

Uptime

Description of problem: Device loses API connection at approx 23-26mins consistently. I do not believe it is wifi / DHCP related as no other device on subnet is affected. Router is a Mikrotik Chateau (routeros 7). DHCP lease time is 5min. If I change the config to use a static IP the devices stay up indefinitely.

Problem-relevant YAML-configuration entries:

substitutions:
  device_name: "office-test-0"
  name: "Office Test 0"

esphome:
  name: office_test_0
  platform: ESP8266
  board: esp01_1m

wifi:
  networks:
    - ssid: LIBERTY
      password: !secret liberty_wifi  
  fast_connect: on

  #manual_ip:
  #  static_ip: 192.168.10.200
  #  gateway: 192.168.10.1
  #  subnet: 255.255.255.0
  #  dns1: 192.168.10.1
  power_save_mode: none
  domain: .home

  #use_address: 192.168.10.21

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Office Test 0 Fallback Hotspot"
    password: "BGwbVrAWKMw4"

captive_portal:

# Enable logging
logger:
  level: VERBOSE

# Enable Home Assistant API
api:

ota:

time:
  - platform: homeassistant
    id: homeassistant_time
    timezone: "Australia/Sydney"

sensor:
  - platform: uptime
    name: ${device_name} Uptime

  - platform: wifi_signal
    name: ${device_name} Wifi Signal
    update_interval: 60s

text_sensor:
  - platform: version
    name: ${device_name} ESPhome Version
  - platform: wifi_info
    ip_address:
      name: ${device_name} IP

Logs (if applicable):

ets Jan  8 2013,rst cause:1, boot mode:(3,5)

load 0x4010f000, len 3584, room 16 
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
@cp:0
ld
[I][logger:170]: Log initialized
[C][ota:366]: There have been 0 suspected unsuccessful boot attempts.
[I][app:029]: Running through setup()...
[D][text_sensor:015]: 'office-test-0 ESPhome Version': Sending state '1.18.0 Jun 20 2021, 00:36:53'
[C][wifi:033]: Setting up WiFi...
[I][wifi:194]: WiFi Connecting to 'LIBERTY'...
[D][sensor:099]: 'office-test-0 Uptime': Sending state 5.37100 s with 0 decimals of accuracy
[I][wifi:457]: WiFi Connected!
[C][wifi:303]:   SSID: 'LIBERTY'
[C][wifi:304]:   IP Address: 192.168.10.21
[C][wifi:306]:   BSSID: 48:8F:5A:11:24:DD
[C][wifi:307]:   Hostname: 'office_test_0'
[C][wifi:311]:   Signal strength: -46 dB ▂▄▆█
[C][wifi:315]:   Channel: 1
[C][wifi:316]:   Subnet: 255.255.255.0
[C][wifi:317]:   Gateway: 192.168.10.1
[C][wifi:318]:   DNS1: 192.168.10.1
[C][wifi:319]:   DNS2: (IP unset)
[D][wifi:466]: Disabling AP...
[C][ota:029]: Over-The-Air Updates:
[C][ota:030]:   Address: office_test_0.home:8266
[C][api:022]: Setting up Home Assistant API server...
[I][app:059]: setup() finished successfully!
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -46.00000 dBm with 0 decimals of accuracy
[D][text_sensor:015]: 'office-test-0 IP': Sending state '192.168.10.21'
[I][app:105]: ESPHome version 1.18.0 compiled on Jun 20 2021, 00:36:53
[C][wifi:443]: WiFi:
[C][wifi:303]:   SSID: 'LIBERTY'
[C][wifi:304]:   IP Address: 192.168.10.21
[C][wifi:306]:   BSSID: 48:8F:5A:11:24:DD
[C][wifi:307]:   Hostname: 'office_test_0'
[C][wifi:311]:   Signal strength: -46 dB ▂▄▆█
[C][wifi:315]:   Channel: 1
[C][wifi:316]:   Subnet: 255.255.255.0
[C][wifi:317]:   Gateway: 192.168.10.1
[C][wifi:318]:   DNS1: 192.168.10.1
[C][wifi:319]:   DNS2: (IP unset)
[C][uptime.sensor:030]: Uptime Sensor 'office-test-0 Uptime'
[C][uptime.sensor:030]:   Unit of Measurement: 's'
[C][uptime.sensor:030]:   Accuracy Decimals: 0
[C][uptime.sensor:030]:   Icon: 'mdi:timer-outline'
[C][logger:189]: Logger:
[C][logger:190]:   Level: DEBUG
[C][logger:191]:   Log Baud Rate: 115200
[C][logger:192]:   Hardware UART: UART0
[C][version.text_sensor:021]: Version Text Sensor 'office-test-0 ESPhome Version'
[C][version.text_sensor:021]:   Icon: 'mdi:new-box'
[C][captive_portal:169]: Captive Portal:
[C][ota:029]: Over-The-Air Updates:
[C][ota:030]:   Address: office_test_0.home:8266
[C][api:095]: API Server:
[C][api:096]:   Address: office_test_0.home:6053
[C][wifi_signal.sensor:009]: WiFi Signal 'office-test-0 Wifi Signal'
[C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[C][wifi_info:009]: WifiInfo IPAddress 'office-test-0 IP'
[D][api.connection:617]: Client 'ESPHome v1.18.0 (192.168.10.12)' connected successfully!
[I][app:105]: ESPHome version 1.18.0 compiled on Jun 20 2021, 00:36:53
[C][wifi:443]: WiFi:
[C][wifi:303]:   SSID: 'LIBERTY'
[C][wifi:304]:   IP Address: 192.168.10.21
[C][wifi:306]:   BSSID: 48:8F:5A:11:24:DD
[C][wifi:307]:   Hostname: 'office_test_0'
[C][wifi:311]:   Signal strength: -46 dB ▂▄▆█
[C][wifi:315]:   Channel: 1
[C][wifi:316]:   Subnet: 255.255.255.0
[C][wifi:317]:   Gateway: 192.168.10.1
[C][wifi:318]:   DNS1: 192.168.10.1
[C][wifi:319]:   DNS2: (IP unset)
[C][uptime.sensor:030]: Uptime Sensor 'office-test-0 Uptime'
[C][uptime.sensor:030]:   Unit of Measurement: 's'
[C][uptime.sensor:030]:   Accuracy Decimals: 0
[C][uptime.sensor:030]:   Icon: 'mdi:timer-outline'
[C][logger:189]: Logger:
[C][logger:190]:   Level: DEBUG
[C][logger:191]:   Log Baud Rate: 115200
[C][logger:192]:   Hardware UART: UART0
[C][version.text_sensor:021]: Version Text Sensor 'office-test-0 ESPhome Version'
[C][version.text_sensor:021]:   Icon: 'mdi:new-box'
[C][captive_portal:169]: Captive Portal:
[C][ota:029]: Over-The-Air Updates:
[C][ota:030]:   Address: office_test_0.home:8266
[C][api:095]: API Server:
[C][api:096]:   Address: office_test_0.home:6053
[C][wifi_signal.sensor:009]: WiFi Signal 'office-test-0 Wifi Signal'
[C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[C][wifi_info:009]: WifiInfo IPAddress 'office-test-0 IP'
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -50.00000 dBm with 0 decimals of accuracy
[D][api:067]: Disconnecting aioesphomeapi (192.168.10.12)
[D][api.connection:617]: Client 'Home Assistant 2021.5.5 (192.168.10.12)' connected successfully!
[D][sensor:099]: 'office-test-0 Uptime': Sending state 56.53900 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -49.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 116.53900 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -48.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 176.53900 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 236.53900 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -53.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 296.53900 s with 0 decimals of accuracy
[I][ota:046]: Boot seems successful, resetting boot loop counter.
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 356.53900 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -53.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 416.54401 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -53.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 476.54099 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 536.54401 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -53.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 596.54498 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 656.53900 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -53.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 716.54602 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 776.54602 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 836.53900 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 896.53900 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 956.53900 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -53.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 1016.53900 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 1076.53894 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 1136.53894 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -53.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 1196.53894 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 1256.54199 s with 0 decimals of accuracy
[D][api:067]: Disconnecting ESPHome v1.18.0 (192.168.10.12)
[D][api.connection:617]: Client 'ESPHome v1.18.0 (192.168.10.12)' connected successfully!
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 1316.54004 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 1376.53894 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 1436.53894 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -53.00000 dBm with 0 decimals of accuracy

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Exception (29):
epc1=0x4000df64 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000000 depc=0x00000000

>>>stack>>>

ctx: sys
sp: 3fffec10 end: 3fffffb0 offset: 0190
3fffeda0:  00000005 3ffefa78 00000002 40100830  
3fffedb0:  4023b15f 3fff2384 00000005 4023b0f4  
3fffedc0:  00000002 4023b09b 00000002 4023a1f8  
3fffedd0:  4023a221 3fffee80 3ffefa78 00000016  
3fffede0:  40237c90 3fffee80 3ffef924 3ffef2b0  
3fffedf0:  3ffed680 3fffee80 3fffee80 00040000  
3fffee00:  4542494c 00595452 40102c8a 00000100  
3fffee10:  3ffeb70c 7fffffff 00002200 00000001  
3fffee20:  40233ff5 00000080 0016ac84 3fff3224  
3fffee30:  ffffffd0 3ffef438 3ffed690 3ffefa78  
3fffee40:  3ffee890 00000030 00000000 4023898b  
3fffee50:  00000000 3fff2384 ffffffd0 00000000  
3fffee60:  00000000 3ffefa78 00000014 0000000f  
3fffee70:  40000f58 00000000 68daf807 00000000  
3fffee80:  00000000 04310101 00640100 00000046  
3fffee90:  3ffed6a4 000000f1 3ffed6ba 3ffed698  
3fffeea0:  00000000 3ffed6a4 3ffed6ad 3ffed6f5  
3fffeeb0:  00000000 00000000 3ffed6df 3ffed73f  
3fffeec0:  3ffed6c3 3ffed6fb 00000000 00000000  
3fffeed0:  00000000 00000000 00000030 00000000  
3fffeee0:  3fff274c 402383fa 3ffee890 3fff2384  
3fffeef0:  00000000 3ffefa78 3ffee890 3ffed680  
3fffef00:  3ffed680 00000119 00000000 00000030  
3fffef10:  00000000 3ffed68a 40241b67 3ffee890  
3fffef20:  3ffed674 3fffdcc0 3ffeaf98 3ffeaf98  
3fffef30:  00000080 3ffee890 00000000 3ffe8524  
3fffef40:  40241427 3fffdab0 00000000 4021c1ac  
3fffef50:  3ffeaf98 40000f49 3fffdab0 40000f49  
3fffef60:  40000e19 00000005 00062d74 00000000  
3fffef70:  60000600 aa55aa55 00000089 40104e09  
3fffef80:  40104e0f 00062d74 00000000 742d6563  
3fffef90:  4010000d 50492030 736f4800 6f430074  
3fffefa0:  40240308 3fffef3c 402402b9 3fffff28  
3fffefb0:  3fffffc0 00000000 00000000 feefeffe  
3fffefc0:  feefeffe feefeffe feefeffe feefeffe  
3fffefd0:  feefeffe feefeffe feefeffe feefeffe  
3fffefe0:  feefeffe feefeffe feefeffe feefeffe  
3fffeff0:  feefeffe feefeffe feefeffe feefeffe  
3ffff000:  feefeffe feefeffe feefeffe feefeffe  
3ffff010:  feefeffe feefeffe feefeffe feefeffe  
3ffff020:  feefeffe feefeffe feefeffe feefeffe  
3ffff030:  feefeffe feefeffe feefeffe feefeffe  
3ffff040:  feefeffe feefeffe feefeffe feefeffe  
3ffff050:  feefeffe feefeffe feefeffe feefeffe  
3ffff060:  feefeffe feefeffe feefeffe feefeffe  
3ffff070:  feefeffe feefeffe feefeffe feefeffe  
3ffff080:  feefeffe feefeffe feefeffe feefeffe  
3ffff090:  feefeffe feefeffe feefeffe feefeffe  
3ffff0a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff100:  feefeffe feefeffe feefeffe feefeffe  
3ffff110:  feefeffe feefeffe feefeffe feefeffe  
3ffff120:  feefeffe feefeffe feefeffe feefeffe  
3ffff130:  feefeffe feefeffe feefeffe feefeffe  
3ffff140:  feefeffe feefeffe feefeffe feefeffe  
3ffff150:  feefeffe feefeffe feefeffe feefeffe  
3ffff160:  feefeffe feefeffe feefeffe feefeffe  
3ffff170:  feefeffe feefeffe feefeffe feefeffe  
3ffff180:  feefeffe feefeffe feefeffe feefeffe  
3ffff190:  feefeffe feefeffe feefeffe feefeffe  
3ffff1a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff200:  feefeffe feefeffe feefeffe feefeffe  
3ffff210:  feefeffe feefeffe feefeffe feefeffe  
3ffff220:  feefeffe feefeffe feefeffe feefeffe  
3ffff230:  feefeffe feefeffe feefeffe feefeffe  
3ffff240:  feefeffe feefeffe feefeffe feefeffe  
3ffff250:  feefeffe feefeffe feefeffe feefeffe  
3ffff260:  feefeffe feefeffe feefeffe feefeffe  
3ffff270:  feefeffe feefeffe feefeffe feefeffe  
3ffff280:  feefeffe feefeffe feefeffe feefeffe  
3ffff290:  feefeffe feefeffe feefeffe feefeffe  
3ffff2a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff300:  feefeffe feefeffe feefeffe feefeffe  
3ffff310:  feefeffe feefeffe feefeffe feefeffe  
3ffff320:  feefeffe feefeffe feefeffe feefeffe  
3ffff330:  feefeffe feefeffe feefeffe feefeffe  
3ffff340:  feefeffe feefeffe feefeffe feefeffe  
3ffff350:  feefeffe feefeffe feefeffe feefeffe  
3ffff360:  feefeffe feefeffe feefeffe feefeffe  
3ffff370:  feefeffe feefeffe feefeffe feefeffe  
3ffff380:  feefeffe feefeffe feefeffe feefeffe  
3ffff390:  feefeffe feefeffe feefeffe feefeffe  
3ffff3a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff400:  feefeffe feefeffe feefeffe feefeffe  
3ffff410:  feefeffe feefeffe feefeffe feefeffe  
3ffff420:  feefeffe feefeffe feefeffe feefeffe  
3ffff430:  feefeffe feefeffe feefeffe feefeffe  
3ffff440:  feefeffe feefeffe feefeffe feefeffe  
3ffff450:  feefeffe feefeffe feefeffe feefeffe  
3ffff460:  feefeffe feefeffe feefeffe feefeffe  
3ffff470:  feefeffe feefeffe feefeffe feefeffe  
3ffff480:  feefeffe feefeffe feefeffe feefeffe  
3ffff490:  feefeffe feefeffe feefeffe feefeffe  
3ffff4a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff500:  feefeffe feefeffe feefeffe feefeffe  
3ffff510:  feefeffe feefeffe feefeffe feefeffe  
3ffff520:  feefeffe feefeffe feefeffe feefeffe  
3ffff530:  feefeffe feefeffe feefeffe feefeffe  
3ffff540:  feefeffe feefeffe feefeffe feefeffe  
3ffff550:  feefeffe feefeffe feefeffe feefeffe  
3ffff560:  feefeffe feefeffe feefeffe feefeffe  
3ffff570:  feefeffe feefeffe feefeffe feefeffe  
3ffff580:  feefeffe feefeffe feefeffe feefeffe  
3ffff590:  feefeffe feefeffe feefeffe feefeffe  
3ffff5a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff600:  feefeffe feefeffe feefeffe feefeffe  
3ffff610:  feefeffe feefeffe feefeffe feefeffe  
3ffff620:  feefeffe feefeffe feefeffe feefeffe  
3ffff630:  feefeffe feefeffe feefeffe feefeffe  
3ffff640:  feefeffe feefeffe feefeffe feefeffe  
3ffff650:  feefeffe feefeffe feefeffe feefeffe  
3ffff660:  feefeffe feefeffe feefeffe feefeffe  
3ffff670:  feefeffe feefeffe feefeffe feefeffe  
3ffff680:  feefeffe feefeffe feefeffe feefeffe  
3ffff690:  feefeffe feefeffe feefeffe feefeffe  
3ffff6a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff6f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff700:  feefeffe feefeffe feefeffe feefeffe  
3ffff710:  feefeffe feefeffe feefeffe feefeffe  
3ffff720:  feefeffe feefeffe feefeffe feefeffe  
3ffff730:  feefeffe feefeffe feefeffe feefeffe  
3ffff740:  feefeffe feefeffe feefeffe feefeffe  
3ffff750:  feefeffe feefeffe feefeffe feefeffe  
3ffff760:  feefeffe feefeffe feefeffe feefeffe  
3ffff770:  feefeffe feefeffe feefeffe feefeffe  
3ffff780:  feefeffe feefeffe feefeffe feefeffe  
3ffff790:  feefeffe feefeffe feefeffe feefeffe  
3ffff7a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff7f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff800:  feefeffe feefeffe feefeffe feefeffe  
3ffff810:  feefeffe feefeffe feefeffe feefeffe  
3ffff820:  feefeffe feefeffe feefeffe feefeffe  
3ffff830:  feefeffe feefeffe feefeffe feefeffe  
3ffff840:  feefeffe feefeffe feefeffe feefeffe  
3ffff850:  00000005 00000000 00000020 00000100  
3ffff860:  00000005 00000000 00000020 4010065c  
3ffff870:  00000005 00000000 00000020 4010065c  
3ffff880:  3ffeae55 40104d03 00000005 40101a50  
3ffff890:  3ffeae55 40104d03 3ffee868 4010065c  
3ffff8a0:  401025e7 3ffee868 00000020 4010065c  
3ffff8b0:  00007fff 574cd41b 3ffef2b0 401027c8  
3ffff8c0:  3ffeb70c 00000000 00000000 00000100  
3ffff8d0:  00007fff 574cd41b 40102c8a 00000100  
3ffff8e0:  3ffeb70c 7fffffff 00002200 00000001  
3ffff8f0:  40103bfb 00040000 00000000 00040000  
3ffff900:  00002200 40103bf8 00040000 574cd41b  
3ffff910:  3ffef018 40102b5b 4000050c 3fffc278  
3ffff920:  401029ac 3fffc200 00000022 ffffffff  
3ffff930:  4020f45b 2c9f0300 4000050c 3fffc278  
3ffff940:  401029ac 3fffc200 00000022 00000000  
3ffff950:  4020ea75 00000030 0000001c ffffffff  
3ffff960:  402067a7 3ffffa70 4021fd10 3fff0898  
3ffff970:  00000000 3ffffef0 00000000 fffffffe  
3ffff980:  ffffffff 3fffc6fc 000000d3 3ffffa70  
3ffff990:  00000002 3fff2d04 3fff18dc 00000030  
3ffff9a0:  00000002 3fff2d04 3fff18dc 00000030  
3ffff9b0:  00000000 00000000 00000000 4010298e  
3ffff9c0:  40102a09 3ffffbd0 40226080 00000030  
3ffff9d0:  007a1200 aa5cc2e5 00000000 4010065c  
3ffff9e0:  00000000 00000000 00000001 4010065c  
3ffff9f0:  0000000c 00000000 3fff2b34 3fff18dc  
3ffffa00:  3fff2d04 3ffffa70 3fff2b34 4021c26e  
3ffffa10:  3ffeae5c 4010139a 04000000 4021c2a8  
3ffffa20:  00000001 00000004 4000df54 4020f48a  
3ffffa30:  00000000 00000000 00000000 4010298e  
3ffffa40:  40102a09 8f5c28f6 3ff5d8a2 00000030  
3ffffa50:  3fff2d04 00000002 3ffffa70 402067b1  
3ffffa60:  401025e7 2c9f0300 4000050c 3fffc278  
3ffffa70:  4021fd10 00000000 00001388 00000008  
3ffffa80:  00000000 00000000 00000008 ffffffff  
3ffffa90:  40228c23 3fff9c3a 40242587 00000001  
3ffffaa0:  ffffffff 00000000 40242587 00000001  
3ffffab0:  ffffffff 00000000 3ffeafa1 00000008  
3ffffac0:  402425d6 3ffee4d0 3fff2384 00000001  
3ffffad0:  00000002 00000000 00000020 4010065c  
3ffffae0:  00000005 00000005 00000002 40101a50  
3ffffaf0:  3ffeae52 4024168f 3ffee4d0 00000020  
3ffffb00:  00000000 40234c13 3ffefa78 3fff2384  
3ffffb10:  00000000 00000002 00000000 3ffee4d0  
3ffffb20:  3fffb352 40105353 3fff2994 3fff0bb4  
3ffffb30:  3fff274c 3e30c8e0 00000001 00000000  
3ffffb40:  3fff1fdc 40228591 3fff2994 3fff0bb4  
3ffffb50:  00000000 00000000 40242587 00000001  
3ffffb60:  ffffffff 00000000 3ffeafa1 00000008  
3ffffb70:  402425d6 3ffee5c0 3fff2384 00000001  
3ffffb80:  402426e2 3ffee5c0 3fff2384 3ffee5c0  
3ffffb90:  00000005 00000005 00000008 3fffb960  
3ffffba0:  3ffeae52 4024168f 3ffee5c0 00000020  
3ffffbb0:  00000000 40234c13 3ffefa78 3fff2384  
3ffffbc0:  00000000 00000002 00000000 3ffee5c0  
3ffffbd0:  3fffb97a 40105353 3fff2a58 3fff0bb4  
3ffffbe0:  3fff274c 3ffffca2 3ffffc10 3fffb360  
3ffffbf0:  3fffb31c 40228591 3fff2a58 3fff0bb4  
3ffffc00:  3fff0000 3ffffca2 3ffffc60 00000610  
3ffffc10:  00000014 3fffb31c 3fff2d28 00000000  
3ffffc20:  3fff0f78 3fff0f44 3fffb944 4022881e  
3ffffc30:  3fff2d24 3fff0f44 3fffb944 40228c38  
3ffffc40:  3fff0e44 40105353 3fff2994 4022c8d5  
3ffffc50:  00000000 00002738 00000000 3fff0e48  
3ffffc60:  3fff0f78 00000003 3fff0f44 4022f00c  
3ffffc70:  3fff0f44 00000000 00000000 4022cc70  
3ffffc80:  00000002 3fffb944 3fff8e74 4022fd8e  
3ffffc90:  00008660 000010cc 000010cc 3fffb988  
3ffffca0:  3fffb944 3fff3228 3fff0f44 4022f250  
3ffffcb0:  3fff0000 3fff8944 00000020 00000610  
3ffffcc0:  00000014 3fffb944 3fff3228 4022fd24  
3ffffcd0:  00000000 00000001 00000001 40228c8d  
3ffffce0:  3fff3224 000000ff 00000000 00000006  
3ffffcf0:  3fff0f1c 3fff8944 00000000 4022c8d5  
3ffffd00:  00000000 00001fda 00000000 3fff3224  
3ffffd10:  00000002 00000000 00000020 4010065c  
3ffffd20:  40101e81 00000000 00000002 40101a50  
3ffffd30:  3ffeae52 40104ceb 3ffee4d0 4022fd8e  
3ffffd40:  00000001 40103ec6 3ffef018 40100c47  
3ffffd50:  40104337 4bc6a7f0 0016ae5c 0000000d  
3ffffd60:  3fff3430 3fff3424 00000020 40100ecf  
3ffffd70:  40103dff 00000031 00000002 00040000  
3ffffd80:  00002200 00000001 00000001 40227c61  
3ffffd90:  40102cc4 00080000 3fff3344 402012da  
3ffffda0:  3fff3430 00000000 00000000 40202128  
3ffffdb0:  3fff96ac 2c9f0300 4000050c 3fffc278  
3ffffdc0:  401029ac 3fffc200 00000022 40203f98  
3ffffdd0:  4000dd24 00000030 00000010 ffffffff  
3ffffde0:  4000066d 58991a81 4bc6a7f0 00005899  
3ffffdf0:  00004bc6 3a98fff0 3ffffef0 fffffffe  
3ffffe00:  000041f7 3fffc6fc 1162fff0 58991a81  
3ffffe10:  4bc6a7f0 3fff352c 3fff1964 00000030  
3ffffe20:  3ffffe50 3ffffe40 00000010 00000000  
3ffffe30:  3fff2ba4 c2540000 3fff2b94 40204ef8  
3ffffe40:  401006ed 00000030 00000010 4021e7e8  
3ffffe50:  3fff1c68 80000000 3ffffe80 401000e1  
3ffffe60:  00000000 00000000 3fff1a4c 402071b8  
3ffffe70:  00000000 4bc6a7f0 0016ae6f 00000003  
3ffffe80:  00000000 00000000 4bc6a7f0 00000000  
3ffffe90:  3fff1ce8 3fff1a4c 4010074a 66a7ef9d  
3ffffea0:  00000000 3fff2c8c 3ffffee0 4020cf16  
3ffffeb0:  40249142 00000000 3fff16dc 00000001  
3ffffec0:  00000000 4bc6a7f0 0016ae6f 3fff1964  
3ffffed0:  00000000 00000000 4bc6a7f0 00000000  
3ffffee0:  00000000 4bc6a7f0 0016ae6f 3fff1b54  
3ffffef0:  00000000 00000000 4bc6a7f0 00000000  
3fffff00:  00000000 4bc6a7f0 4010074a 8083126e  
3fffff10:  401056ed 1b96b4a5 3fff0b1c 00000000  
3fffff20:  3fff0160 3fff0b1c 0000000d 3fff0b1c  
3fffff30:  0016ae6f 3fff1b54 4021c22c 3fffefa0  
3fffff40:  3fff0b1c 0016ae6f 3fff1b54 4021c886  
3fffff50:  3fff2d10 0000000d 3fff0768 4020ae54  
3fffff60:  00000001 0000276c 3fff1900 3fff1abc  
3fffff70:  3fff2d10 feefeffe feefeffe feefeffe  
3fffff80:  00000000 00000000 00000001 3fff0abc  
3fffff90:  3fffdad0 00000000 3fff0a7c 4020d554  
3fffffa0:  3fffdad0 00000000 3fff0a7c 4021c350  
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

 ets Jan  8 2013,rst cause:1, boot mode:(3,5)

load 0x4010f000, len 3584, room 16 
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld
[I][logger:170]: Log initialized
[C][ota:366]: There have been 0 suspected unsuccessful boot attempts.
[I][app:029]: Running through setup()...
[D][text_sensor:015]: 'office-test-0 ESPhome Version': Sending state '1.18.0 Jun 20 2021, 00:36:53'
[C][wifi:033]: Setting up WiFi...
[I][wifi:194]: WiFi Connecting to 'LIBERTY'...
[D][sensor:099]: 'office-test-0 Uptime': Sending state 0.09900 s with 0 decimals of accuracy
[I][wifi:457]: WiFi Connected!
[C][wifi:303]:   SSID: 'LIBERTY'
[C][wifi:304]:   IP Address: 192.168.10.21
[C][wifi:306]:   BSSID: 48:8F:5A:11:24:DD
[C][wifi:307]:   Hostname: 'office_test_0'
[C][wifi:311]:   Signal strength: -54 dB ▂▄▆█
[C][wifi:315]:   Channel: 1
[C][wifi:316]:   Subnet: 255.255.255.0
[C][wifi:317]:   Gateway: 192.168.10.1
[C][wifi:318]:   DNS1: 192.168.10.1
[C][wifi:319]:   DNS2: (IP unset)
[D][wifi:466]: Disabling AP...
[C][ota:029]: Over-The-Air Updates:
[C][ota:030]:   Address: office_test_0.home:8266
[C][api:022]: Setting up Home Assistant API server...
[I][app:059]: setup() finished successfully!
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -54.00000 dBm with 0 decimals of accuracy
[D][text_sensor:015]: 'office-test-0 IP': Sending state '192.168.10.21'
[I][app:105]: ESPHome version 1.18.0 compiled on Jun 20 2021, 00:36:53
[C][wifi:443]: WiFi:
[C][wifi:303]:   SSID: 'LIBERTY'
[C][wifi:304]:   IP Address: 192.168.10.21
[C][wifi:306]:   BSSID: 48:8F:5A:11:24:DD
[C][wifi:307]:   Hostname: 'office_test_0'
[C][wifi:311]:   Signal strength: -54 dB ▂▄▆█
[C][wifi:315]:   Channel: 1
[C][wifi:316]:   Subnet: 255.255.255.0
[C][wifi:317]:   Gateway: 192.168.10.1
[C][wifi:318]:   DNS1: 192.168.10.1
[C][wifi:319]:   DNS2: (IP unset)
[C][uptime.sensor:030]: Uptime Sensor 'office-test-0 Uptime'
[C][uptime.sensor:030]:   Unit of Measurement: 's'
[C][uptime.sensor:030]:   Accuracy Decimals: 0
[C][uptime.sensor:030]:   Icon: 'mdi:timer-outline'
[C][logger:189]: Logger:
[C][logger:190]:   Level: DEBUG
[C][logger:191]:   Log Baud Rate: 115200
[C][logger:192]:   Hardware UART: UART0
[C][version.text_sensor:021]: Version Text Sensor 'office-test-0 ESPhome Version'
[C][version.text_sensor:021]:   Icon: 'mdi:new-box'
[C][captive_portal:169]: Captive Portal:
[C][ota:029]: Over-The-Air Updates:
[C][ota:030]:   Address: office_test_0.home:8266
[D][api.connection:617]: Client 'Home Assistant 2021.5.5 (192.168.10.12)' connected successfully!
[C][api:095]: API Server:
[C][api:096]:   Address: office_test_0.home:6053
[C][wifi_signal.sensor:009]: WiFi Signal 'office-test-0 Wifi Signal'
[C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[C][wifi_info:009]: WifiInfo IPAddress 'office-test-0 IP'
[D][api:067]: Disconnecting ESPHome v1.18.0 (192.168.10.12)
[D][api.connection:617]: Client 'ESPHome v1.18.0 (192.168.10.12)' connected successfully!
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -53.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 56.45600 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -53.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 116.45200 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -53.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 176.45700 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -53.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 236.45000 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -53.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 296.45099 s with 0 decimals of accuracy
[I][ota:046]: Boot seems successful, resetting boot loop counter.
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -47.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 356.45001 s with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Wifi Signal': Sending state -49.00000 dBm with 0 decimals of accuracy
[D][sensor:099]: 'office-test-0 Uptime': Sending state 416.45001 s with 0 decimals of accuracy

Additional information and things you've tried:

image
Urs-O commented 3 years ago

I can confirm the issue, i'm also affected by the Bug. I use a sensor which needs to be powercycled after a reset, so after 20-40 minutes it doesn't deliver anything anymore. I have confirmed it with the uptime sensor, same problem here.

ilium007 commented 3 years ago

image

ilium007 commented 3 years ago

I don't know if it is an ESPHome issue or a Home Assistant issue. Not sure what other logs I can get from Home Assistant or whether I can enable some sort of debug logging.

2021-06-20 11:40:44 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 12:03:52 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 12:26:36 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 13:10:27 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 13:34:18 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 13:56:26 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 14:18:57 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 14:42:09 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 15:03:19 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 15:24:51 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 15:46:43 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 16:10:56 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 16:33:05 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 16:55:22 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 17:19:33 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 17:42:16 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 18:06:25 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 18:30:16 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 19:18:18 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 19:40:38 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
2021-06-20 20:03:25 WARNING (MainThread) [homeassistant.components.esphome] Can't connect to ESPHome API for None (office_test_0.home): Timeout while waiting for API response!
ilium007 commented 3 years ago

Tried v1.20.0-dev with arduino_version: espressif8266@3.0.0 with no success. Same behavior configured for DHCP vs static IP.

125008456-e4ee9a00-e0a5-11eb-8a76-a39be30f3ec4

chemelli74 commented 3 years ago

Investigation will be not so easy, as in some networks (mine for example) connection between device and HA is rock stable for weeks. Maybe your router says something about disconnections ?

Simone

ilium007 commented 3 years ago

It’s nothing to do with my router (Mikrotik routerOS). I’ve posted the exception dumps from the device. It’s certainly code / memory related.

ilium007 commented 3 years ago

I've tested with a Ubiquiti EdgeRouter with same results. Both Adafruit Huzzah breakouts, one the ESP8266 and the other is the ESP32. And this is nothing about HA at this point, the boards are crashing and rebooting.

chemelli74 commented 3 years ago

I've tested with a Ubiquiti EdgeRouter with same results. Both Adafruit Huzzah breakouts, one the ESP8266 and the other is the ESP32. And this is nothing about HA at this point, the boards are crashing and rebooting.

Sorry then, I cannot be of any help. I'm on a different board:

esphome:
  name: esp32-salotto-ble-gateway
  platform: ESP32
  board: nodemcu-32s

Simone

ilium007 commented 3 years ago

I'll try with a different access point to see if I can narrow it down to the wifi.

github-actions[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

mmakaay commented 2 years ago

I’ve posted the exception dumps from the device.

Did you decide the stack trace at some point? It's impossible to decode that without access to the firmware.elf that was used at the time of the stack trace dump. Connecting to a serial console and using command line esphome logs would do the decoding for you. That should give an idea about where in the code the exception is being triggered.

If such information is available, start a new thread of request for this one to be reopened.