ESP8266 deep sleep issue

Hi Guys…
I have issue with ESP8266 (d1_mini)+MQTT+DHT22
Im using deep sleep.
Deep sleep working correctly only when I have plugged MCU on USB with opened LOG window.
If I close the logger and MCU fall asleep, it stays in reset until I again open logger via USB.
Its strange… Any idead?

esphome:
  name: esp8266-weather-station
  platform: ESP8266
  board: d1_mini

# Enable logging
logger:

wifi:
  ssid: "Lucivjansky"
  password: "****"
  
mqtt:
  broker: 192.168.2.175
  username: mqtt
  password: ****
  birth_message:
    topic: temperature/state
    payload: online
  will_message:
    topic: temperature/state
    payload: online

sensor:
  - platform: dht
    pin: D2
    model: DHT22
    temperature:
      name: "Outside Temperature"
    humidity:
      name: "Outside Humidity"
    update_interval: 10s
  - platform: adc
    pin: A0
    name: "Outside Battery Level"
    update_interval: 10s 
    filters:
      - multiply: 5
    
deep_sleep:
  run_duration: 35s
  sleep_duration: 10min

Have you connected GPIO16 (D0) to the RST pin?

yes… because deep sleep is working when logger is opened…

Your setup is very similar to mine. I read there was a problem with birth and will. They need to be disabled. I just wrote disabled on to the end of topic and payload for both as a reminder I did this deliberately. Also I had setup static ip for D1 mini to cut down on time spent on dhcp.

1 Like