I’m looking for suggestions on which ‘Action’ to use when updating sensor information from a BME280. When I integrate deep sleep into my code I’m unsure how to get the sensor data to update to HA.
Backstory: I’m using a ESP8266 and a BME280 with HA running on battery power. Everything works in a simple configuration and now I’m attempting to integrate deep sleep. Most information I’m finding is using MQTT, Lambda and the example code is for an LED or binary event. I found an article that did not use MQTT or Lambda, but unfortunately, the example config uses an LED and does not read from a sensor.
From my research, I believe I need to use an ‘Action’ as discussed under the Automation documentation at ESPHome. I can get the ESP8266 to sleep and wake correctly, but since I’m unsure what function/action to use, the sensor readings are not being shared with Home Assistant. When I monitor the ESP8266, the BME280 is still taking sensor readings during the wake-cycle.
For the moment, I’m trying not to use MQTT or Lamda. The reason is shorter config file and less confusion.
on_boot:
then:
– ??? # need some action or actions to read bme280
– script.execute: consider_deep_sleep # this part works
Article I’m following for a non-MQTT config: