Switch Mode

Good evening ! Tell me how to solve such a problem. I have a normal switch for Tasmota firmware, when the switch is in the on position, I can turn it off from the HOME ASSISTANT, and then turn on again using the physical button one of its settings on SWITCH MODE 4, how can I implement this on ESPHome ?

This tells us nothing. What is a normal switch? What make and model?

All I can do is point you to:

https://esphome.io/devices/sonoff.html