I have a script that reads a binary sensor, which works fine.
But if I send the device into deep sleep it only wakes up if the binary sensor is “low”. If the sensor is triggered (high) while the device is in sleep, it will not wake up.
If it is not triggered, it wakes up and continues as intendend, wifi and mqtt connect, all is fine.
The sensor is a E18-D80NK connected to 5v on the board, GND and GPIO2.
RST and WAKE (GPIO16) is connected by a wire.
You’re very limited for GPIO choices with the ESP8266-01 board. For only a couple of bucks more the Wemos D1 mini or one of the NodeMCU boards have more i/o.
This is on the D1 Mini (pro)… The one with external antenna. Maybe I need to update the header of the code as well… I thought this was auto-populated on first setup in esphome.
Changed board and pin to d1_mini and GPIO4. All works perfectly… Could have saved quite a few hours there… Putting that on my learnings-account. Thanks!