How does ESPHome communicate with ESP32 boards

Hi all,

I have created a simple ESPHome config that works.

esphome:
name: conservatory_esp
platform: ESP32
board: esp32doit-devkit-v1

wifi:
ssid: “XX”
password: “XX”

ap:
ssid: “Conservatory Esp”
password:

captive_portal:
logger:
api:
password:

ota:
password:

sensor:
platform: dht
pin: 4
model: DHT11
temperature:
name: “Conservatory Temperature”
humidity:
name: “Conservatory Humidity”
update_interval: 300s

I would like this to run on batteries so need to reduce power consumption as much as possible. How does ESPHome work? Does the ESP ‘send’ data to Home Assistant, or does Home Assistant poll the device?

Does anyone have any suggestions of the best way to reduce power consumption and increase battery life? I have tried deep sleep, but it seemed a little erratic with when it was sending data.

Thank you,

Matt

Deep sleep.

Are you sure that is really the case?
If a state is not changed then Home Assistant is not updating it.
So you could have had multiple transmissions between the ESP board and Home Assistant but none got recorded.
There is a setting if I recall correctly to update the values even when no change has been done.
Can’t remember what it’s called though