I am using this with an Ultra sonic sensor to track my salt bin. I have deep sleep set to 6 hours (really 12 would be better) but in the HA history it shows it waking every hour. Am I missing something in my sketch?
esphome:
name: salttracker
platform: ESP8266
board: d1_mini
wifi:
ssid: "Myssidhere"
password: "mypasshere"
fast_connect: true
logger:
api:
ota:
web_server:
port: 80
time:
- platform: homeassistant
id: homeassistant_time
text_sensor:
- platform: version
name: SaltTracker ESPHome Version
- platform: wifi_info
ip_address:
name: SaltTracker IP
ssid:
name: SaltTracker SSID
bssid:
name: SaltTracker BSSID
mqtt:
broker: 192.168.1.209
username: mqtuserhere
password: mqttpasshere
on_message:
topic: salttracker/ota_mode
payload: 'ON'
then:
- deep_sleep.prevent: deep_sleep_1
deep_sleep:
run_duration: 2min
sleep_duration: 6h
id: deep_sleep_1
sensor:
- platform: ultrasonic
trigger_pin: D1
echo_pin: D2
name: "Salt Sensor"
update_interval : 6h
filters:
- filter_out: NAN
- platform: adc
pin: VCC
name: "Battery"
update_interval: 6h
filters:
- filter_out: NAN
- platform: uptime
name: SaltTracker Uptime
- platform: wifi_signal
name: SaltTracker WiFi Signal
update_interval: 60s
switch:
- platform: restart
name: "Salt Tracker Restart"