Hello. I would like to run lambda at boot priority 900 to turn on pins that power the sensor, then another lambda at boot priority 599 to read that sensor and put esphome to sleep even before wifi is initialized. Is it possible?
Or run lambda as soon as sensor is initialized and filer value is obtained, can I do it with automation? Thanks