How do I get all triggers for a switch in Home Assistant?

Based on this thread you can also try just tapping through all of the button presses from the switch and they should end up showing up there in a little bit (2x down as the next example, etc). I believe if you’re only changing the subtype name (in the code example provided) that it’s going to be the same button press just with a new name in the UI which isn’t going to work the way you intend. You’d need to perform the appropriate button combo on the switch, see what the event looks like, and then replace that in the discovery_id portion as well.