Controlling Shelly 2PM with Custom Button Card

Hey,
I am trying to generate a Button Card that controls my Shelly 2PM.
I thought that this might be the solution for my problem but this code doesnt work:

- type: template
          icon: mdi:arrow-up
          tap_action:
            action: cover.open_cover
          entity: cover.shellyplus2pm_ecc9ffc0752c_cover_0

I am fairly new to coding so I dont know what I am doing wrong here. Can someone guide me so I can have two buttons, one opens the cover, the other should close it.

Looks like a PART of some custom mushroom card.
Google “Mushroom cards” github repository for Docs.

If you are a beginner - use standard cards.
Here is a possible standard Button card:

type: button
entity: cover.xxx
tap_action:
  action: cover.open_cover

Also, a standard Tile card may be more preferable for you.
Experiment.