New cover with 2 different buttons

Greetings,
I’m new to the home assistant system.
I need help.

I would like to create a roller shutter using 2 channels of the Sonoff 4CH R3 as a switch

I read that it can be done with configuration.yaml and with cover.yaml

can you help me

A thousand thanks