I created a button application that makes a single button to control arbitrary number of devices and trigger routines. A button can either pushed or held that is used as morse code (./-). A morse code is assigned to a device and the button used to generate the morse code to toggle the device state or trigger a routine.
This app can be used to toggle a switch/lock/alarm or trigger a routine. I am putting it here in case anyone looking for something like this.
The application can be found here “rainbowbridge/smartapps/magic_wand.src”