Please have a look at the connection diagrams: Click! The link leads to an application with single push buttons - you may use this with 1 to infinite buttons.
Don’t know exactly if you have a Shelly Dimmer or a Shelly Dimmer 2. The link to the diagram above is for Shelly Dimmer. For Shelly Dimmer 2 (pretty the same): Click!