WiFi independent automations on multisensor ESP32

I am attempting to create a thermostat that will work even in a power outage & no connection to wifi/HA. However, keeping the wifi up and running requires a lot of juice compared to the esp device. So naturally I’d like to have the ESP32 be self contained, but I’m having trouble finding documentation about local execution of automations that rely on sensor values from the same chip, but can’t talk to a HA instance.

This single chip will have a thermostat, end stops for the baffle, and will drive a DC motor using the Feedback Cover component in ESPhome. If the power goes out the chip will not be able to communicate with ESPhome. In this case, will the chip still be able to reference sensors that are set up on the same board? how might I code that?

Any help is greatly appreciated!

If it’s all local sensors to the ESP, it should just work. The one thing that may be an issue is that you may need to set the API reboot timeout to 0s to keep it from rebooting when HA is down (otherwise it will reboot every 15 minutes).

Amazing, thanks.