my custom logic runs as something in home assistant usually, haven’t yet had a need to add stuff in the esphome config yet (although I could imagine many situations where it’s necessary)