Wonder if anyone can help me here. Using Wemos D1 Mini’s (one is a Pro) and have a working configuration to measure voltage of battery and temperature and all works fine. Now I am happy with configuration I want to change the Deep Sleep to every 4 or 6 hours to try and preserve battery life.
So I simply changed the duration time as below :
deep_sleep:
run_duration: 3min
sleep_duration: 6h
and used OTA (when the devices woke) to update the code. Despite these changes looking in HA the updates are still happening hourly (Previous duration time), no matter how many times I update it (OTA) or reset (Battery out) the wake up time does not reflect what I have in the OTA section. I have tried using min / h but no difference.
Any thoughts?
Full YAML below
esphome:
name: wemos31
friendly_name: Wemos3.1
on_shutdown:
- lambda: delay(500);
esp8266:
board: d1_mini
# Enable logging
logger:
deep_sleep:
run_duration: 3min
sleep_duration: 6h
# Enable Home Assistant API
api:
encryption:
key: "xxxx"
ota:
- platform: esphome
password: "xxxx"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Wemos31 Fallback Hotspot"
password: "xxxx"
i2c:
id: bus_a
sda: D2
scl: D1
scan: true
# Example configuration entry
sensor:
- platform: sht3xd
address: 0x45
temperature:
name: "SHT30 Temperature"
humidity:
name: "SHT30 Humidity"
update_interval: 60s
- platform: adc
name: "Battery Voltage"
id: batvolt
pin: A0
accuracy_decimals: 2
update_interval: 60s
#force_update: True
unit_of_measurement: "V"
icon: mdi:battery-medium
filters:
- multiply: 5.25 # 2 x 18650 in Dusty Tree Lights
- platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
name: "WiFi Signal dB"
id: wifi_signal_db
update_interval: 60s
entity_category: "diagnostic"
- platform: copy # Reports the WiFi signal strength in %
source_id: wifi_signal_db
name: "WiFi Signal Percent"
filters:
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
unit_of_measurement: "Signal %"
entity_category: "diagnostic"
device_class: ""
captive_portal: