Switch without gpio

Hello,
i am very new at esphome and i want to create a switch that i can toggle via webserver but without a gpio.

Usecase: a masterswitch that activated the automation on the esp board

How can i do this.

thanks