Climate presets in esphome

I’m trying to figure out how esp-home interacts with home-assistant climate presets. I’ve found that the only preset available (in esphome) is “away”.

The idea is to modify that to allow the use of most common presets (turbo,sleep,eco,etc). Dealing with them as we already use fan and modes.

I’ve seen that “away” is related as a boolean variable and the properties (high-low temperature in the actual integration) are stored as “away_conf”. Can’t figure out how/where the “magic” happen, so I’m stuck.

I’ve seen reference about “away” in const, api_pb2, api.proto