In the Stream Deck app add a Keyboard Maestro action to a button. It has some IDs there. Leave them as is as you are starting out.
In Keyboard Maestro add a USB trigger to your macro. When you select the option to set the trigger, press the button on the Stream Deck hardware (or mobile app) you have just set up as a Keyboard Maestro action in the Stream Deck app.