How to configure a wifi Tuya switch as button

I’ve added to my home assistant dashboard a wifi switch. With mylife account I’ve configured as button as I need so. Which is the way to do the same in home assistant ? and then I need to expose that button to homekit

thanks a lot

According to the button documentation, they are provided by integrations and you can’t configure one manually. Why do you want it to be a button - is it a momentary switch? What is the device?

yes, i mean momentary switch. meanwhile I found that information. I’ve the momentary switch in HA now