I’ve been doing some experiments with a node deep sleeping and am using an ADC sensor to let me know when it’s time to change the battery. My problem is that there seems to be a voltage sag on wake such that I get an inaccurate voltage report.
I have tried to deal with it by using update_interval
, but the sensor automatically updates on boot and then again at the defined interval. The result as a rather displeasing bouncing output:
Is there a way to suppress the value of the sensor on wake so that I can delay a reading after the sag?
A simple config example of what I’m doing:
esphome:
name: test-batt
esp32:
board: tinypico
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
password: <removed>
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Test-Batt Fallback Hotspot"
password: <removed>
sensor:
- platform: adc
pin: 35
name: "test batt voltage"
update_interval: 20s
attenuation: 11db
filters:
- multiply: 3.82
deep_sleep:
run_duration: 30s
sleep_duration: 60s