Best approach to assign actions to Shelly Button

Hi folks

I bought a Shelly Blu RC Button (The remote with the 4 buttons) and now I want to assign each button its action. Basically the two top button need to toggle a switch, the bottom button each needs to select a value in a dropdown helper.

I’ve asked myself what the most efficient and clean approach is for this. Do I really have to create an automation for each button (Also the remote supports long clicks, double clicks and triple clicks and hold, so 20 different triggers which would lead to 20 automations) or if there is an easier approach, for example is it possible to create a switch case inside an automation?

I’ve spent about 1.5 yeas implementing HA here and there and now I think I have a good basic knowledge and want to improve on the efficiency and cleanliness of my setup, it’s not just “getting it to work somehow” anymore, which would be 20 Automations in my case :wink:

Thanks in advance for any input and tip.