Aqara H1 to replace two push (momentary) buttons

Hello guys, I am fairly new to ha and i have a lot of doubts.

I have two push buttons (momentary), one for a light and one for a door opener mechanism.

I would like to replace them with a double rocker smart aqara h1 switch.

Aside from the wiring aspect which I think could be done, how do I program ha to make the switch to act as a momentary push button? That is, one press set state on and then immediately set it to off??

Is this even possible?
Thanks to anyone so kind to reply