esphome / issues

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

Panic and Reset Reason: External System every few minutes. #1119

Closed iBobik closed 4 years ago

iBobik commented 4 years ago

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

Docker on macOS ESP (ESP32/ESP8266, Board/Sonoff):

ESP8266 Affected component:

Not known

Description of problem: Every few minutes it will restart with Fatal exception:0 flag:6 (EXT_SYS_RST)

Problem-relevant YAML-configuration entries:

substitutions:
  device_name: kitchen_light
  human_name: Kitchen Light

<<: !include _network_base.yml
<<: !include _caes_flux_light.yml

debug:

logger:
  level: debug

_caes_flux_light.yml:

esphome:
  name: $device_name
  platform: ESP8266
  board: esp12e

light:
  - platform: cwww
    id: light_1
    name: $human_name
    cold_white: output_blue
    warm_white: output_green
    cold_white_color_temperature: 9000 K
    warm_white_color_temperature: 2300 K
    default_transition_length: 100ms

# Periferies of RGB controller from Jonathan Caes: https://www.tindie.com/products/JonathanCaes/iot-rgb-led-controller-with-temp-sensor-esp8266/

output:
  - platform: esp8266_pwm
    id: output_red
    pin: 14
  - platform: esp8266_pwm
    id: output_green
    pin: 12
  - platform: esp8266_pwm
    id: output_blue
    pin: 16

dallas:
  - pin: 5

sensor:
  - platform: dallas
    index: 0
    name: ${human_name} Controller Temperature

binary_sensor:
  - platform: gpio
    pin:
      number: 0
      mode: INPUT_PULLUP
      inverted: true
    name: "Button on board"
    on_press:
      then:
        - light.toggle:
            id: light_1
            transition_length: 10ms
  - platform: gpio
    pin:
      number: 3
      mode: INPUT_PULLUP
      inverted: true
    name: "Button on RX"
    on_press:
      then:
        - light.toggle: light_1

_network_base.yml:

wifi:
  ssid: "xxx"
  password: "xxx"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: ${human_name} Fallback Hotspot
    password: "xxx"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: xxx

ota:
  password: xxx

Logs (if applicable):

INFO OTA successful
INFO Successfully uploaded program.
INFO Starting log output from kitchen_light.local using esphome API
INFO Connecting to kitchen_light.local:6053 (192.168.49.154)
WARNING Initial connection failed. The ESP might not be connected to WiFi yet (Error connecting to 192.168.49.154: timed out). Re-Trying in 1 seconds
INFO Connecting to kitchen_light.local:6053 (192.168.49.154)
INFO Successfully connected to kitchen_light.local
[17:36:10][I][app:101]: ESPHome version 1.15.0-dev compiled on Mar 29 2020, 17:34:42
[17:36:10][C][wifi:415]: WiFi:
[17:36:10][C][wifi:283]:   SSID: 'xxx'
[17:36:10][C][wifi:284]:   IP Address: 192.168.49.154
[17:36:10][C][wifi:286]:   BSSID: 74:83:C2:xxx
[17:36:10][C][wifi:287]:   Hostname: 'kitchen_light'
[17:36:10][C][wifi:291]:   Signal strength: -86 dB ▂▄▆█
[17:36:10][C][wifi:295]:   Channel: 11
[17:36:10][C][wifi:296]:   Subnet: 255.255.255.0
[17:36:10][C][wifi:297]:   Gateway: 192.168.49.1
[17:36:11][C][wifi:298]:   DNS1: 192.168.49.1
[17:36:11][C][wifi:299]:   DNS2: (IP unset)
[17:36:11][C][esp8266_pwm:022]: ESP8266 PWM:
[17:36:11][C][esp8266_pwm:023]:   Pin: GPIO14 (Mode: OUTPUT)
[17:36:11][C][esp8266_pwm:024]:   Frequency: 1000.0 Hz
[17:36:11][C][esp8266_pwm:022]: ESP8266 PWM:
[17:36:11][C][esp8266_pwm:023]:   Pin: GPIO12 (Mode: OUTPUT)
[17:36:11][C][esp8266_pwm:024]:   Frequency: 1000.0 Hz
[17:36:11][C][esp8266_pwm:022]: ESP8266 PWM:
[17:36:11](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[17:36:11](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[17:36:11](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[17:36:11](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[17:36:34][D][dallas.sensor:153]: 'Kitchen Light Controller Temperature': Got Temperature=35.6°C
[17:36:34][D][sensor:092]: 'Kitchen Light Controller Temperature': Sending state 35.56250 °C with 1 decimals of accuracy
[17:37:34][D][dallas.sensor:153]: 'Kitchen Light Controller Temperature': Got Temperature=35.6°C
[17:37:34][D][sensor:092]: 'Kitchen Light Controller Temperature': Sending state 35.62500 °C with 1 decimals of accuracy
[17:37:50][I][ota:046]: Boot seems successful, resetting boot loop counter.
[17:38:34][D][dallas.sensor:153]: 'Kitchen Light Controller Temperature': Got Temperature=35.6°C
[17:38:34][D][sensor:092]: 'Kitchen Light Controller Temperature': Sending state 35.62500 °C with 1 decimals of accuracy
WARNING Disconnected from API: Timeout while waiting for message response!
INFO Connecting to kitchen_light.local:6053 (192.168.49.154)
INFO Successfully connected to kitchen_light.local
[17:39:11][D][api.connection:602]: Client 'Home Assistant 0.106.6 (192.168.49.100)' connected successfully!
[17:39:47][D][dallas.sensor:153]: 'Kitchen Light Controller Temperature': Got Temperature=35.5°C
[17:39:47][D][sensor:092]: 'Kitchen Light Controller Temperature': Sending state 35.50000 °C with 1 decimals of accuracy
^C%                                                                                                 ~/Applications/Koliště $ esphomedev kitchen_light.yml logs
INFO Reading configuration kitchen_light.yml...
INFO Starting log output from kitchen_light.local using esphome API
INFO Connecting to kitchen_light.local:6053 (192.168.49.154)
INFO Successfully connected to kitchen_light.local
[17:40:18][I][app:101]: ESPHome version 1.15.0-dev compiled on Mar 29 2020, 17:34:42
[17:40:18][C][wifi:415]: WiFi:
[17:40:18][C][wifi:283]:   SSID: 'xxx'
[17:40:18][C][wifi:284]:   IP Address: 192.168.49.154
[17:40:18][C][wifi:286]:   BSSID: 74:83:C2:xxx
[17:40:18][C][wifi:287]:   Hostname: 'kitchen_light'
[17:40:18][C][wifi:291]:   Signal strength: -86 dB ▂▄▆█
[17:40:18][C][wifi:295]:   Channel: 11
[17:40:18][C][wifi:296]:   Subnet: 255.255.255.0
[17:40:18][C][wifi:297]:   Gateway: 192.168.49.1
[17:40:18][C][wifi:298]:   DNS1: 192.168.49.1
[17:40:18][C][wifi:299]:   DNS2: (IP unset)
[17:40:18][C][esp8266_pwm:022]: ESP8266 PWM:
[17:40:18][C][esp8266_pwm:023]:   Pin: GPIO14 (Mode: OUTPUT)
[17:40:18][C][esp8266_pwm:024]:   Frequency: 1000.0 Hz
[17:40:18][C][esp8266_pwm:022]: ESP8266 PWM:
[17:40:18][C][esp8266_pwm:023]:   Pin: GPIO12 (Mode: OUTPUT)
[17:40:18][C][esp8266_pwm:024]:   Frequency: 1000.0 Hz
[17:40:18][C][esp8266_pwm:022]: ESP8266 PWM:
[17:40:18][C][esp8266_pwm:023]:   Pin: GPIO16 (Mode: OUTPUT)
[17:40:18][C][esp8266_pwm:024]:   Frequency: 1000.0 Hz
[17:40:18][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Button on board'
[17:40:18][C][gpio.binary_sensor:016]:   Pin: GPIO0 (Mode: INPUT_PULLUP, INVERTED)
[17:40:18][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Button on RX'
[17:40:18][C][gpio.binary_sensor:016]:   Pin: GPIO3 (Mode: INPUT_PULLUP, INVERTED)
[17:40:18][C][logger:175]: Logger:
[17:40:18][C][logger:176]:   Level: DEBUG
[17:40:18][C][logger:177]:   Log Baud Rate: 115200
[17:40:18][C][logger:178]:   Hardware UART: UART0
[17:40:18][C][light:177]: Light 'Kitchen Light'
[17:40:18][C][light:179]:   Default Transition Length: 0.1s
[17:40:18][C][light:180]:   Gamma Correct: 2.80
[17:40:18][C][light:183]:   Min Mireds: 111.1
[17:40:18][C][light:184]:   Max Mireds: 434.8
[17:40:18][C][dallas.sensor:072]: DallasComponent:
[17:40:18][C][dallas.sensor:073]:   Pin: GPIO5 (Mode: INPUT)
[17:40:18][C][dallas.sensor:074]:   Update Interval: 60.0s
[17:40:18][D][dallas.sensor:079]:   Found sensors:
[17:40:18][D][dallas.sensor:082]:     0x6201192669E4BB28
[17:40:18][C][dallas.sensor:087]:   Device 'Kitchen Light Controller Temperature'
[17:40:18][C][dallas.sensor:087]:     Unit of Measurement: '°C'
[17:40:18][C][dallas.sensor:087]:     Accuracy Decimals: 1
[17:40:18][C][dallas.sensor:087]:     Icon: 'mdi:thermometer'
[17:40:18][C][dallas.sensor:089]:     Index 0
[17:40:18][C][dallas.sensor:095]:     Address: 0x6201192669E4BB28
[17:40:18][C][dallas.sensor:096]:     Resolution: 12
[17:40:18][C][captive_portal:169]: Captive Portal:
[17:40:18][C][ota:029]: Over-The-Air Updates:
[17:40:18][C][ota:030]:   Address: kitchen_light.local:8266
[17:40:18][C][ota:032]:   Using Password.
[17:40:18][C][api:095]: API Server:
[17:40:18][C][api:096]:   Address: kitchen_light.local:6053
[17:40:18][D][debug:023]: ESPHome version 1.15.0-dev
[17:40:18][D][debug:025]: Free Heap Size: 32280 bytes
[17:40:18][D][debug:053]: Flash Chip: Size=4096kB Speed=40MHz Mode=DOUT
[17:40:18][D][debug:190]: Chip ID: 0x0064111C
[17:40:18][D][debug:191]: SDK Version: 2.2.1(cfd48f3)
[17:40:18][D][debug:192]: Core Version: 2_5_2
[17:40:18][D][debug:193]: Boot Version=31 Mode=1
[17:40:18][D][debug:194]: CPU Frequency: 80
[17:40:18][D][debug:195]: Flash Chip ID=0x00164020
[17:40:18][D][debug:196]: Reset Reason: External System
[17:40:18][D][debug:197]: Reset Info: Fatal exception:0 flag:6 (EXT_SYS_RST) epc1:0x00000000 epc2:0x00000000 epc3:0x00000000 excvaddr:0x00000000 depc:0x00000000
[17:40:47][D][dallas.sensor:153]: 'Kitchen Light Controller Temperature': Got Temperature=35.4°C
[17:40:47][D][sensor:092]: 'Kitchen Light Controller Temperature': Sending state 35.43750 °C with 1 decimals of accuracy
[17:40:59][I][ota:046]: Boot seems successful, resetting boot loop counter.
[17:41:47][D][dallas.sensor:153]: 'Kitchen Light Controller Temperature': Got Temperature=35.4°C
[17:41:47][D][sensor:092]: 'Kitchen Light Controller Temperature': Sending state 35.37500 °C with 1 decimals of accuracy

Additional information and things you've tried: I was using stable version but upgraded to todays dev to try if problem will not happen again.

I have 2 other devices with the same config (same base files) this issue happens on them sporadically, but not never.

stale[bot] commented 4 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.

iBobik commented 4 years ago

It could have been related to power stability or termal reasons because change of board (same place, same firmware) solved the issue for me.

    1. 2020 v 19:58, stale[bot] notifications@github.com:

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.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/esphome/issues/issues/1119#issuecomment-664548375, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEV6WFLISKPKURPNJJXMJLR5W53PANCNFSM4LWB4BUQ.