esphome / issues

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

Device won't enter deep sleep after update #3946

Open matthew73210 opened 1 year ago

matthew73210 commented 1 year ago

The problem

Hello, After updating to the latest version of esphome on the 17/12/2022. The epaper has stopped updating, through the logs I can see the info being picked up from HA. Normally after 20s a script is called which updates the battery voltage, screen then goes to sleep. Then wake up after an hour and repeat. While running a blue LED is lit. The latter two things don't happen, it just loops then disconnects without running the update / sleep part of the script. The blue LED stays on the whole time while never going off till the battery dies. I don't get the "entering sleep for xx" in the logs anymore.

Before the update it had worked for the past year.

Which version of ESPHome has the issue?

2022.12.XX

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2022.12.7

What platform are you using?

ESP32

Board

Lilygo T5-4.7 inch e-paper

Component causing the issue

scipt

Example YAML snippet

substitutions:
  esp_name: ESP Display #Device Name
  esp_hostname: esp-display 
  run_time: 2min #can be as long as needed to get data 
  sleep_time: 1h # normal sleep time
  #night_sleep_time: 3h # 1st sleep time after midnight

esphome:
  name: e-ink-screen

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

web_server:
  port: 80

# Enable Home Assistant API
api:

ota:

wifi:
  ssid: xxxxxxxxxxxx
  password: xxxxxxxxxxx

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "E-Ink-Screen Fallback Hotspot"
    password: "lechanton"

deep_sleep:
  run_duration: ${run_time} 
  sleep_duration: ${sleep_time}
  id: deep_sleep_1
  esp32_ext1_wakeup:
    pins: GPIO39
    mode: ALL_LOW

captive_portal:

spi:
  clk_pin: 18
  mosi_pin: 23

external_components:
  - source: github://ashald/esphome@lilygo-t5-47
    components:
      - lilygo_t5_47

time:
  - platform: homeassistant
    id: sntp_time
    on_time_sync:
      then:
        - logger.log: "Synchronized sntp clock"
    on_time:
      # Every 15s set to go back to sleep
      - seconds: 20
        then:
          - logger.log: "20s has passed"
          - script.execute: all_data_received

font:
  - id: large
    file: "fonts/digital-7 (mono).ttf"
    size: 100
  - file: "fonts/GoogleSans-Bold.ttf"
    id: font_name
    size: 38
  - file: "fonts/GoogleSans-Bold.ttf"
    id: font_name_small
    size: 30
  - file: "fonts/GoogleSans-Medium.ttf"
    id: font_value
    size: 56    
  - file: "fonts/GoogleSans-Medium.ttf"
    id: font_footer
    size: 28
  - file: 'fonts/materialdesignicons-webfont.ttf'
    id: font_icons
    size: 160
    glyphs:
      - "\U000F0594" # clear-night
      - "\U000F0590" # cloudy
      - "\U000F0595" # partlycloudy
      - "\U000F0591" # fog      
      - "\U000F0592" # hail
      - "\U000F0593" # lightning
      - "\U000F067E" # lightning-rainy
      - "\U000F0596" # pouring
      - "\U000F0597" # rainy
      - "\U000F0F36" # snowy
      - "\U000F067F" # snowy-rainy
      - "\U000F0599" # sunny
      - "\U000F059D" # windy
      - "\U000F059E" # windy-variant
      - "\U000F0F38" # exceptional
  - file: 'fonts/materialdesignicons-webfont.ttf'
    id: font_icons_small
    size: 56
    glyphs:
      - "\U000F10C2" # Temperature High
      - "\U000F10C3" # Temperature Low
      - "\U000F07E4" # CO2
      - "\U000F054B" # umbrella      
      - "\U000F0592" # hail
      - "\U000F0593" # lightning
      - "\U000F067E" # lightning-rainy
      - "\U000F0597" # rainy
      - "\U000F0F36" # snowy
      - "\U000F0594" # clear-night
      - "\U000F0599" # sunny
      - "\U000F07CA" # fuel
      - "\U000F024A" # flower
      - "\U000F051F" # time-remaining
      - "\U000F140B" # Energy

binary_sensor:
  - platform: gpio
    pin: 
      number: GPIO39
      inverted: true
    name: "${esp_name} Button 1"
    on_press:
      then:
       - component.update: t5_display

  - platform: gpio
    pin: 
      number: GPIO34
      inverted: true
    name: "${esp_name} Button 2"
    on_press:
      then:
        - script.execute: all_data_received

  - platform: gpio
    pin: 
      number: GPIO35
      inverted: true
    name: "${esp_name} Button 3"

sensor:
  - platform: homeassistant
    entity_id: sensor.bme680_temperature_2
    id: ext_temp
    internal: true

  - platform: homeassistant
    entity_id: sensor.bme680_humidity_2
    id: ext_hum
    internal: true

  - platform: homeassistant
    entity_id: sensor.bme680_iaq_2
    id: ext_IAQ
    internal: true

  - platform: homeassistant
    entity_id: sensor.bme680_pressure_2
    id: ext_hpa
    internal: true

  - platform: homeassistant
    entity_id: sensor.outside_pm_1um_weight_concentration
    id: ext_1um
    internal: true

  - platform: homeassistant
    entity_id: sensor.outside_pm_2_5um_weight_concentration
    id: ext_25um
    internal: true

  - platform: homeassistant
    entity_id: sensor.outside_pm_4um_weight_concentration
    id: ext_4um
    internal: true

  - platform: homeassistant
    entity_id: sensor.outside_pm_10um_weight_concentration
    id: ext_10um
    internal: true

  - platform: homeassistant
    entity_id: sensor.garage_temperature
    id: gar_temp
    internal: true

  - platform: homeassistant
    entity_id: sensor.garage_humidity
    id: gar_hum
    internal: true

  - platform: homeassistant
    entity_id: sensor.garage_iaq
    id: gar_IAQ
    internal: true

  - platform: homeassistant
    entity_id: sensor.garage_co2_equivalent
    id: gar_voc
    internal: true

  - platform: homeassistant
    entity_id: sensor.bme680_temperature
    id: lr_temp
    internal: true

  - platform: homeassistant
    entity_id: sensor.bme680_humidity
    id: lr_hum
    internal: true

  - platform: homeassistant
    entity_id: sensor.bme680_iaq
    id: lr_IAQ
    internal: true

  - platform: homeassistant
    entity_id: sensor.peak
    id: hchp
    internal: true

  - platform: homeassistant
    entity_id: sensor.off_peak
    id: hchc
    internal: true  

  - platform: adc
    pin: GPIO36
    name: "${esp_name} Battery Voltage"
    id: batt_volt
    attenuation: 11db
    update_interval: never
    filters:
      - multiply: 2

  - platform: template
    name: "${esp_name} Battery"
    id: batt
    unit_of_measurement: "%"
    accuracy_decimals: 0
    device_class: battery
    lambda: |-
      int y = (1-(4.1-id(batt_volt).state)/(4.1-3.3))*100;
      if (y < 100) {return y;} else {return 100;};
    update_interval: never

  - platform: wifi_signal
    name: "outdoor climate WiFi Signal Sensor"
    update_interval: 60s

script:
  - id: all_data_received
    then:
      - component.update: batt_volt
      - component.update: batt
      - component.update: t5_display
      - script.execute: enter_sleep     

  - id: enter_sleep
    then:
      - logger.log: "Entering sleep for ${sleep_time}"
      - deep_sleep.enter: 
          id: deep_sleep_1 
          sleep_duration: ${sleep_time}

text_sensor:

  - platform: wifi_info
    ip_address:
      name: ESP IP Address
    ssid:
      name: ESP Connected SSID
    bssid:
      name: ESP Connected BSSID
    mac_address:
      name: ESP Mac Wifi Address
    scan_results:
      name: ESP Latest Scan Results

globals:
   - id: peakhistory
     type: float[10]
     restore_value: no
     initial_value: "{'0','1','2','3','4','5','6','7','8','9'}"

graph:
  # Show bare-minimum auto-ranged graph
  - id: peakenergyusage
    sensor: hchp
    duration: 24h
    width: 450
    height: 100
  - id: offpeakenergyusage
    sensor: hchc
    duration: 24h
    width: 450
    height: 100
  - id: lrtempgraph
    sensor: lr_temp
    duration: 24h
    width: 440
    height: 80
  - id: gartempgraph
    sensor: gar_temp
    duration: 24h
    width: 440
    height: 80
  - id: exttempgraph
    sensor: ext_temp
    duration: 24h
    width: 320
    height: 70

display:
  - platform: lilygo_t5_47
    id: t5_display
    update_interval: never
    lambda: |-
      #define xres 960
      #define yres 540
      #define x_pad 10 // border padding
      #define y_pad 10 // border padding      
      #define cat_pad 85 // padding before category
      #define val_pad 70 // padding before value
      #define icon_pad 35 //padding after icons      
      #define x1n 20 //x position 1st column name
      #define x1v 25 //x position 1st column value
      #define x1i 50 //x position 1st column icon
      #define x2n xres/2 //x position 2nd column name
      #define x2v xres/2 //x position 2nd column value
      #define x2i xres/2 //x position 1st column icon

      int y = 0;

      // Date
      it.strftime(x_pad, yres-y_pad/2, id(font_footer), TextAlign::BASELINE_LEFT, "Updated on %A %d/%b/%Y %H : %M",id(sntp_time).now());

      // Outside Climate
      it.print(x1n, 50, id(font_name), TextAlign::BASELINE_LEFT, "Outside conditions:");
      it.printf(x1n, 80, id(font_name_small), TextAlign::BASELINE_LEFT, "%.1f °C / %.1f hum / %.1f IAQ / %.1f hPa", id(ext_temp).state, id(ext_hum).state, id(ext_IAQ).state, id(ext_hpa).state);
      it.printf(x1n, 110, id(font_name_small), TextAlign::BASELINE_LEFT, "%.2f 1ug/m3 / %.2f 2.5ug/m3 / %.2f 4ug/m3 / %.2f 10ug/m3", id(ext_1um).state, id(ext_25um).state, id(ext_4um).state, id(ext_10um).state);

      // Garage
      it.print(x1n, 180, id(font_name), TextAlign::BASELINE_LEFT, "Garage conditions:");
      it.printf(x1n, 210, id(font_name_small), TextAlign::BASELINE_LEFT, "%.1f °C / %.1f hum / %.1f IAQ / %.1f ppb", id(gar_temp).state, id(gar_hum).state, id(gar_IAQ).state, id(gar_voc).state);

      // Living room
      it.print(x1n, 250, id(font_name), TextAlign::BASELINE_LEFT, "Living room conditions:");
      it.printf(x1n, 280, id(font_name_small), TextAlign::BASELINE_LEFT, "%.1f °C / %.1f hum / %.1f IAQ", id(lr_temp).state, id(lr_hum).state, id(lr_IAQ).state);

      // Energy use
      it.print(x1n, 320, id(font_name), TextAlign::BASELINE_LEFT, "Energy use today thus far:");
      it.print(x1n, 350, id(font_name_small), TextAlign::BASELINE_LEFT, "Peak");
      it.printf(100, 350, id(font_name_small), TextAlign::BASELINE_LEFT, "%.0f Wh", id(hchp).state);      
      it.print(320, 350, id(font_name_small), TextAlign::BASELINE_LEFT, "Off Peak");
      it.printf(470, 350, id(font_name_small), TextAlign::BASELINE_LEFT, "%.0f Wh", id(hchc).state);

      // Graph
      //it.graph(x1n, 380, id(peakenergyusage));
      //it.graph(470, 380, id(offpeakenergyusage));
      //it.graph(630, 10, id(exttempgraph));
      //it.graph(480, 140, id(gartempgraph));
      //it.graph(480, 210, id(lrtempgraph));

      // Footer
      it.printf(xres-x_pad, yres-y_pad/2, id(font_footer), TextAlign::BASELINE_RIGHT, "%.2fV/%.0f%%", id(batt_volt).state, id(batt).state);

Anything in the logs that might be useful for us?

INFO Reading configuration /config/esphome/e-ink-screen.yaml...
INFO Detected timezone 'Europe/Paris'
INFO Starting log output from e-ink-screen.local using esphome API
WARNING Can't connect to ESPHome API for e-ink-screen.local: Error connecting to ('192.168.1.61', 6053): [Errno 113] Connect call failed ('192.168.1.61', 6053)
INFO Trying to reconnect to e-ink-screen.local in the background
INFO Successfully connected to e-ink-screen.local
[14:37:49][I][app:102]: ESPHome version 2022.12.3 compiled on Dec 20 2022, 14:18:55
[14:37:49][C][wifi:504]: WiFi:
[14:37:49][C][wifi:362]:   Local MAC: C4:DD:57:92:9E:58
[14:37:49][C][wifi:363]:   SSID: 'Chalet Le Chanton'[redacted]
[14:37:49][C][wifi:364]:   IP Address: 192.168.1.61
[14:37:49][C][wifi:366]:   BSSID: 74:AC:B9:21:2A:BC[redacted]
[14:37:49][C][wifi:367]:   Hostname: 'e-ink-screen'
[14:37:49][C][wifi:369]:   Signal strength: -59 dB ▂▄▆█
[14:37:49][C][wifi:373]:   Channel: 6
[14:37:49][C][wifi:374]:   Subnet: 255.255.255.0
[14:37:49][C][wifi:375]:   Gateway: 192.168.1.1
[14:37:49][C][wifi:376]:   DNS1: 192.168.1.1
[14:37:49][C][wifi:377]:   DNS2: 0.0.0.0
[14:37:49][C][logger:293]: Logger:
[14:37:49][C][logger:294]:   Level: DEBUG
[14:37:49][C][logger:295]:   Log Baud Rate: 115200
[14:37:49][C][logger:296]:   Hardware UART: UART0
[14:37:49][C][spi:101]: SPI bus:
[14:37:49][C][spi:102]:   CLK Pin: GPIO18
[14:37:49][C][spi:104]:   MOSI Pin: GPIO23
[14:37:49][C][spi:106]:   Using HW SPI: YES
[14:37:49][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'ESP Display Button 3'
[14:37:49][C][gpio.binary_sensor:016]:   Pin: GPIO35
[14:37:49][C][template.sensor:023]: Template Sensor 'ESP Display Battery'
[14:37:49][C][template.sensor:023]:   Device Class: 'battery'
[14:37:49][C][template.sensor:023]:   State Class: ''
[14:37:49][C][template.sensor:023]:   Unit of Measurement: '%'
[14:37:49][C][template.sensor:023]:   Accuracy Decimals: 0
[14:37:49][C][template.sensor:024]:   Update Interval: never
[14:37:49][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'ESP Display Button 1'
[14:37:49][C][gpio.binary_sensor:016]:   Pin: GPIO39
[14:37:49][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'ESP Display Button 2'
[14:37:49][C][gpio.binary_sensor:016]:   Pin: GPIO34
[14:37:50][C][adc:087]: ADC Sensor 'ESP Display Battery Voltage'
[14:37:50][C][adc:087]:   Device Class: 'voltage'
[14:37:50][C][adc:087]:   State Class: 'measurement'
[14:37:50][C][adc:087]:   Unit of Measurement: 'V'
[14:37:50][C][adc:087]:   Accuracy Decimals: 2
[14:37:50][C][adc:097]:   Pin: GPIO36
[14:37:50][C][adc:112]:  Attenuation: 11db
[14:37:50][C][adc:126]:   Update Interval: never
[14:37:50][D][homeassistant.sensor:024]: 'sensor.bme680_temperature_2': Got state 9.30
[14:37:50][D][sensor:127]: 'ext_temp': Sending state 9.30000  with 1 decimals of accuracy
[14:37:50][C][wifi_info:013]: WifiInfo Mac Address 'ESP Mac Wifi Address'
[14:37:50][D][homeassistant.sensor:024]: 'sensor.bme680_humidity_2': Got state 54.30
[14:37:50][D][sensor:127]: 'ext_hum': Sending state 54.30000  with 1 decimals of accuracy
[14:37:50][D][homeassistant.sensor:024]: 'sensor.bme680_iaq_2': Got state 854.00
[14:37:50][D][sensor:127]: 'ext_IAQ': Sending state 854.00000  with 1 decimals of accuracy
[14:37:50][C][homeassistant.time:010]: Home Assistant Time:
[14:37:50][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[14:37:50][D][homeassistant.sensor:024]: 'sensor.bme680_pressure_2': Got state 873.50
[14:37:50][D][sensor:127]: 'ext_hpa': Sending state 873.50000  with 1 decimals of accuracy
[14:37:50][D][homeassistant.sensor:024]: 'sensor.outside_pm_1um_weight_concentration': Got state 1.63
[14:37:50][D][sensor:127]: 'ext_1um': Sending state 1.63000  with 1 decimals of accuracy
[14:37:50][C][graph:357]: Graph for sensor hchp
[14:37:50][D][homeassistant.sensor:024]: 'sensor.outside_pm_2_5um_weight_concentration': Got state 1.73
[14:37:50][D][sensor:127]: 'ext_25um': Sending state 1.73000  with 1 decimals of accuracy
[14:37:50][C][graph:357]: Graph for sensor hchc
[14:37:50][D][homeassistant.sensor:024]: 'sensor.outside_pm_4um_weight_concentration': Got state 1.74
[14:37:50][D][sensor:127]: 'ext_4um': Sending state 1.74000  with 1 decimals of accuracy
[14:37:50][C][graph:357]: Graph for sensor lr_temp
[14:37:50][D][homeassistant.sensor:024]: 'sensor.outside_pm_10um_weight_concentration': Got state 1.74
[14:37:50][D][sensor:127]: 'ext_10um': Sending state 1.74000  with 1 decimals of accuracy
[14:37:50][C][graph:357]: Graph for sensor gar_temp
[14:37:50][D][homeassistant.sensor:024]: 'sensor.garage_temperature': Got state 9.70
[14:37:50][D][sensor:127]: 'gar_temp': Sending state 9.70000  with 1 decimals of accuracy
[14:37:50][C][graph:357]: Graph for sensor ext_temp
[14:37:50][D][homeassistant.sensor:024]: 'sensor.garage_humidity': Got state 59.80
[14:37:50][D][sensor:127]: 'gar_hum': Sending state 59.80000  with 1 decimals of accuracy
[14:37:50][D][homeassistant.sensor:024]: 'sensor.garage_iaq': Got state 153.00
[14:37:50][D][sensor:127]: 'gar_IAQ': Sending state 153.00000  with 1 decimals of accuracy
[14:37:50][C][captive_portal:088]: Captive Portal:
[14:37:50][D][homeassistant.sensor:024]: 'sensor.garage_co2_equivalent': Got state 1528.10
[14:37:50][D][sensor:127]: 'gar_voc': Sending state 1528.09998  with 1 decimals of accuracy
[14:37:50][C][web_server:125]: Web Server:
[14:37:50][C][web_server:126]:   Address: e-ink-screen.local:80
[14:37:50][D][homeassistant.sensor:024]: 'sensor.bme680_temperature': Got state 19.30
[14:37:50][D][sensor:127]: 'lr_temp': Sending state 19.30000  with 1 decimals of accuracy
[14:37:50][C][mdns:103]: mDNS:
[14:37:50][C][mdns:104]:   Hostname: e-ink-screen
[14:37:50][D][homeassistant.sensor:024]: 'sensor.bme680_humidity': Got state 47.70
[14:37:50][D][sensor:127]: 'lr_hum': Sending state 47.70000  with 1 decimals of accuracy
[14:37:50][C][ota:093]: Over-The-Air Updates:
[14:37:50][C][ota:094]:   Address: e-ink-screen.local:3232
[14:37:50][W][ota:103]: Last Boot was an unhandled reset, will proceed to safe mode in 2 restarts
[14:37:50][D][homeassistant.sensor:024]: 'sensor.bme680_iaq': Got state 87.00
[14:37:50][D][sensor:127]: 'lr_IAQ': Sending state 87.00000  with 1 decimals of accuracy
[14:37:50][C][api:138]: API Server:
[14:37:50][C][api:139]:   Address: e-ink-screen.local:6053
[14:37:50][C][api:143]:   Using noise encryption: NO
[14:37:50][D][homeassistant.sensor:024]: 'sensor.peak': Got state 20000.00
[14:37:50][D][sensor:127]: 'hchp': Sending state 20000.00000  with 1 decimals of accuracy
[14:37:50][C][wifi_signal.sensor:009]: WiFi Signal 'outdoor climate WiFi Signal Sensor'
[14:37:50][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[14:37:50][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[14:37:50][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dBm'
[14:37:50][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[14:37:50][D][homeassistant.sensor:024]: 'sensor.off_peak': Got state 28504.00
[14:37:50][D][sensor:127]: 'hchc': Sending state 28504.00000  with 1 decimals of accuracy
[14:37:50][C][wifi_info:009]: WifiInfo IPAddress 'ESP IP Address'
[14:37:50][C][wifi_info:011]: WifiInfo SSID 'ESP Connected SSID'
[14:37:50][C][wifi_info:012]: WifiInfo BSSID 'ESP Connected BSSID'
[14:37:51][C][wifi_info:010]: WifiInfo Scan Results 'ESP Latest Scan Results'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'ext_temp'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.bme680_temperature_2'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'ext_hum'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.bme680_humidity_2'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'ext_IAQ'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.bme680_iaq_2'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'ext_hpa'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.bme680_pressure_2'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'ext_1um'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.outside_pm_1um_weight_concentration'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'ext_25um'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.outside_pm_2_5um_weight_concentration'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'ext_4um'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.outside_pm_4um_weight_concentration'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'ext_10um'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.outside_pm_10um_weight_concentration'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'gar_temp'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.garage_temperature'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'gar_hum'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.garage_humidity'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'gar_IAQ'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.garage_iaq'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'gar_voc'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.garage_co2_equivalent'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'lr_temp'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.bme680_temperature'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'lr_hum'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.bme680_humidity'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'lr_IAQ'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.bme680_iaq'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'hchp'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:51][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:51][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:51][C][homeassistant.sensor:031]:   Entity ID: 'sensor.peak'
[14:37:51][C][homeassistant.sensor:030]: Homeassistant Sensor 'hchc'
[14:37:51][C][homeassistant.sensor:030]:   State Class: ''
[14:37:52][C][homeassistant.sensor:030]:   Unit of Measurement: ''
[14:37:52][C][homeassistant.sensor:030]:   Accuracy Decimals: 1
[14:37:52][C][homeassistant.sensor:031]:   Entity ID: 'sensor.off_peak'
[14:37:52][C][deep_sleep:049]: Setting up Deep Sleep...
[14:37:52][C][deep_sleep:052]:   Sleep Duration: 3600000 ms
[14:37:52][C][deep_sleep:055]:   Run Duration: 120000 ms
[14:37:52][C][lilygo_t5_47.display:080]: Lilygo T5 47 Display
[14:37:52][C][lilygo_t5_47.display:080]:   Rotations: 0 °
[14:37:52][C][lilygo_t5_47.display:080]:   Dimensions: 960px x 540px
[14:37:52][C][lilygo_t5_47.display:081]:   Full Update Every: 1
[14:37:52][C][lilygo_t5_47.display:082]:   Update Interval: never
[14:37:53][D][homeassistant.sensor:024]: 'sensor.garage_co2_equivalent': Got state 1526.70
[14:37:53][D][sensor:127]: 'gar_voc': Sending state 1526.69995  with 1 decimals of accuracy
[14:37:56][D][homeassistant.sensor:024]: 'sensor.garage_co2_equivalent': Got state 1529.60
[14:37:56][D][sensor:127]: 'gar_voc': Sending state 1529.59998  with 1 decimals of accuracy
[14:37:59][D][homeassistant.sensor:024]: 'sensor.garage_iaq': Got state 154.00
[14:37:59][D][sensor:127]: 'gar_IAQ': Sending state 154.00000  with 1 decimals of accuracy
[14:37:59][D][homeassistant.sensor:024]: 'sensor.garage_co2_equivalent': Got state 1537.00
[14:37:59][D][sensor:127]: 'gar_voc': Sending state 1537.00000  with 1 decimals of accuracy
[14:38:02][D][homeassistant.sensor:024]: 'sensor.garage_iaq': Got state 153.00
[14:38:02][D][sensor:127]: 'gar_IAQ': Sending state 153.00000  with 1 decimals of accuracy
[14:38:02][D][homeassistant.sensor:024]: 'sensor.garage_co2_equivalent': Got state 1534.10
[14:38:02][D][sensor:127]: 'gar_voc': Sending state 1534.09998  with 1 decimals of accuracy
[14:38:05][D][homeassistant.sensor:024]: 'sensor.garage_iaq': Got state 152.00
[14:38:05][D][sensor:127]: 'gar_IAQ': Sending state 152.00000  with 1 decimals of accuracy
[14:38:05][D][homeassistant.sensor:024]: 'sensor.garage_co2_equivalent': Got state 1523.90
[14:38:05][D][sensor:127]: 'gar_voc': Sending state 1523.90002  with 1 decimals of accuracy
[14:38:08][D][homeassistant.sensor:024]: 'sensor.garage_co2_equivalent': Got state 1523.60
[14:38:08][D][sensor:127]: 'gar_voc': Sending state 1523.59998  with 1 decimals of accuracy
[14:38:11][D][homeassistant.sensor:024]: 'sensor.garage_iaq': Got state 153.00
[14:38:11][D][sensor:127]: 'gar_IAQ': Sending state 153.00000  with 1 decimals of accuracy
[14:38:11][D][homeassistant.sensor:024]: 'sensor.garage_co2_equivalent': Got state 1531.30
[14:38:11][D][sensor:127]: 'gar_voc': Sending state 1531.30005  with 1 decimals of accuracy
[14:38:14][D][homeassistant.sensor:024]: 'sensor.garage_co2_equivalent': Got state 1528.70
[14:38:14][D][sensor:127]: 'gar_voc': Sending state 1528.69995  with 1 decimals of accuracy
[14:38:17][D][homeassistant.sensor:024]: 'sensor.garage_co2_equivalent': Got state 1528.10
[14:38:17][D][sensor:127]: 'gar_voc': Sending state 1528.09998  with 1 decimals of accuracy
[14:38:19][D][homeassistant.sensor:024]: 'sensor.outside_pm_1um_weight_concentration': Got state 2.11
[14:38:19][D][sensor:127]: 'ext_1um': Sending state 2.11000  with 1 decimals of accuracy
[14:38:19][D][homeassistant.sensor:024]: 'sensor.outside_pm_2_5um_weight_concentration': Got state 2.24
[14:38:19][D][sensor:127]: 'ext_25um': Sending state 2.24000  with 1 decimals of accuracy
[14:38:19][D][homeassistant.sensor:024]: 'sensor.outside_pm_4um_weight_concentration': Got state 2.25
[14:38:19][D][sensor:127]: 'ext_4um': Sending state 2.25000  with 1 decimals of accuracy
[14:38:19][D][homeassistant.sensor:024]: 'sensor.outside_pm_10um_weight_concentration': Got state 2.25
[14:38:19][D][sensor:127]: 'ext_10um': Sending state 2.25000  with 1 decimals of accuracy
[14:38:20][D][homeassistant.sensor:024]: 'sensor.garage_co2_equivalent': Got state 1526.50
[14:38:20][D][sensor:127]: 'gar_voc': Sending state 1526.50000  with 1 decimals of accuracy
[14:38:20][D][main:375]: 20s has passed
[14:38:20][D][sensor:127]: 'ESP Display Battery Voltage': Sending state 3.47000 V with 2 decimals of accuracy
[14:38:20][D][sensor:127]: 'ESP Display Battery': Sending state 21.00000 % with 0 decimals of accuracy
INFO e-ink-screen.local: Ping timed out!
INFO Disconnected from ESPHome API for e-ink-screen.local
WARNING Disconnected from API

Additional information

Usually, after this part, I'd get, "Entering sleep for xx"

[14:38:20][D][main:375]: 20s has passed [14:38:20][D][sensor:127]: 'ESP Display Battery Voltage': Sending state 3.47000 V with 2 decimals of accuracy [14:38:20][D][sensor:127]: 'ESP Display Battery': Sending state 21.00000 % with 0 decimals of accuracy

matthew73210 commented 1 year ago

Managed to pick up this, doesn't appear over wifi log

[D][main:375]: 20s has passed [D][sensor:127]: 'ESP Display Battery Voltage': Sending state 4.70000 V with 2 decimals of accuracy [D][sensor:127]: 'ESP Display Battery': Sending state 100.00000 % with 0 decimals of accuracy Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

Core 1 register dump: PC : 0x400da98f PS : 0x00060d30 A0 : 0x800daaf6 A1 : 0x3ffb24d0
A2 : 0xbffb8a88 A3 : 0x3f40208f A4 : 0x00000001 A5 : 0x3ffb2540
A6 : 0x00000021 A7 : 0x00000020 A8 : 0x80088e6e A9 : 0x3ffb24e0
A10 : 0x00000000 A11 : 0x00000001 A12 : 0x0ffd114c A13 : 0x00000000
A14 : 0x00000003 A15 : 0x00060023 SAR : 0x0000000e EXCCAUSE: 0x0000001c
EXCVADDR: 0xbffb8ab4 LBEG : 0x4008a470 LEND : 0x4008a486 LCOUNT : 0x00000000

Backtrace:0x400da98c:0x3ffb24d00x400daaf3:0x3ffb24f0 0x400e3b8d:0x3ffb2510 0x400e3bba:0x3ffb2540 0x400da81c:0x3ffb25a0 0x400da864:0x3ffb25c0 0x400e43a1:0x3ffb25e0 0x401959af:0x3ffb2600 0x401959c3:0x3ffb2620 0x401959c3:0x3ffb2640 0x401959e3:0x3ffb2660 0x400e473d:0x3ffb2680 0x40195a15:0x3ffb26a0 0x401959af:0x3ffb26c0 0x401959c3:0x3ffb26e0 0x40195295:0x3ffb2700 0x400dcfa1:0x3ffb2720 0x401956e5:0x3ffb2790 0x401957a5:0x3ffb27b0 0x400e2318:0x3ffb27d0 0x400e4a66:0x3ffb2800 0x400f1b49:0x3ffb2820

ELF file SHA256: 0000000000000000

Rebooting... ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:10124 load:0x40080400,len:5828 entry 0x400806a8 [I][logger:258]: Log initialized [C][ota:469]: There have been 2 suspected unsuccessful boot attempts. [D][esp32.preferences:113]: Saving 1 preferences to flash... [D][esp32.preferences:142]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed [I][app:029]: Running through setup()... [C][spi:023]: Setting up SPI bus... [D][binary_sensor:034]: 'ESP Display Button 3': Sending initial state OFF [D][binary_sensor:034]: 'ESP Display Button 1': Sending initial state OFF [D][binary_sensor:034]: 'ESP Display Button 2': Sending initial state OFF [C][adc:044]: Setting up ADC 'ESP Display Battery Voltage'... [C][adc:083]: ADC 'ESP Display Battery Voltage' setup finished! [D][text_sensor:067]: 'ESP Mac Wifi Address': Sending state 'C4:DD:57:92:9E:58'

github-actions[bot] commented 1 year 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.

ssieb commented 1 year ago

Your on_time: doesn't do what you think it does. That will occur at the 20th second of the minute, not in 20 secs. It's hard to say what's crashing, but does it work without the deep sleep?