Help!
I’m building a sensor to report when postman has been at the mailbox, however, I’m unable to wake up my ESP32 from deep sleep using a tilt sensor (or button). My passive tilt sensor (just the one with a bearing inside) is soldered between GPIO33 and ground. Also tried it with different pins, both with/without 10kohm pulldown resistor.
Could someone kindly tell what I’m doing wrong, I’m losing hope. My configutation is the following:
esphome:
name: esp32-mailbox
friendly_name: esp32-mailbox
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: xx
ota:
password: xx
wifi:
# fast_connect: true
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: xx
gateway: xx
subnet: xx
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: xx
password: xx
captive_portal:
deep_sleep:
run_duration: 20s
sleep_duration: 20s # will increase this to days/weeks as it seems some value is to be given
wakeup_pin: GPIO33
# wakeup_pin_mode: INVERT_WAKEUP # tried with and without this, no difference
# inverted: True # tried with and without this, no difference