I have problems with sleep configuration - in my case on a ESP-01 device flashed with ESP_Easy_mega-20200410_normal_ESP8266_1M.bin.
I have connected GPIO 16 to RST to get sleep functionality and I am sure that the device itselfe is working correct because I tested it with a dooropener application wich I use since about 2 years. This application was written an flashed with arduino.
Now I want to use the ESP-01 with ESPeasy connected with a temperature sensor DHT11 for monitoring my greenhouse. For this I use the DHT11 shield
The ESP device is connected with my FHEM instance on a RasPi and this is working fine - means that I get the values for temperature and humidity.
Now I want to set sleep state - for example 20 sec active time and 5 min sleeptime because I want to drive the ESP with battery. For this I confugured Sleep awake time to 20 and Sleep time to 300.
I expected that the device will sleep for the configured time, gets active for 20 sec for sending some samples (e.g. every 5 sec) and falls in sleep mode again.
Now the problem description:
After power up the ESP sends its samples to FHEM, where I can see the expeced samples every 5 sec. At FHEM the Sleep info shows me the 20 sec and the sleepState shows awaked for 20s (-1s) which changes to sleep awaited in 1s and then to sleeping. So far so good - but it won't wake up after the configured time! The web interface of the ESP is not reachable because it is really sleeping.
Only the manual reset will start the ESP device new but in some (alomst all!) cases only when hitting the reset button twice.
A test with a second ESP-01 with the same image and exactly the same configuration sends its samples continuously! This ESP shield is an oder one - maaby it is broken.
Here I can see also the state changes of the sleepState ( awaked for 20s (-1s) -> sleep awaited in 1s -> sleeping) but right after this it starts the next sequence without sleeping and the web IF will be reachable all time.
The next test with a third ESP-01 - now with a older version of ESPeasy (mega-20181125) and exacltly the same configuration shows the first behaviour.
Because I used sleep mode with a Wemos D1 before I tested this configuration on such a device! This works perfecly from the start!!
Now I am completley confused...!


