Thermostat on webserver

Sometimes happens that my esphome device is not in the reach of my home network and I need the possibility to at least change the mode (off, heat) on my esphome thermostat via its webserver.

Since thermostat is not present on webserver page, the idea is to create template switch, but I haven’t found anywhere what to call to start heating or to turn off.

Does this cover it? https://esphome.io/components/climate/index.html

Unfortunaltely no answer yet.

I have found that I can have climate automation https://esphome.io/components/climate/index.html#config-climate
So for example:

- climate.control:
    id: my_climate
    mode: AUTO
    target_temperature: 25°C

But then the question is how to define template switch to run this automation

Yes because I pointed you to it.

Good lord.