Closed ilium007 closed 2 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.
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!
Tried v1.20.0-dev with arduino_version: espressif8266@3.0.0
with no success. Same behavior configured for DHCP vs static IP.
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
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.
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.
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
I'll try with a different access point to see if I can narrow it down to the wifi.
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.
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.
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:
Logs (if applicable):
Additional information and things you've tried: