Exposing RadioRA2 Keypad in Homeassistant for detection and button press

Hi I am trying to expose Lutron RadioRA2 buttons in Homeassistant and press the buttons on the keypad and detect they’ve been pressed with Homeassistant for different automations. I have tried exposing them as a binary sensor using a template sensor. Doing that exposing all my switches and when I press a switch it will activate the scene for that one switch. I’m very new to HA and programming, yaml and all that stuff. Does anyone have any pointers or can tell me what I’m doing wrong.