Has anyone had luck with creating custom commands in a handler and consistently have Echo execute those commands?
I have a smartapp and handler where I am trying to control all of my home audio/video devices. I’m using IR control to control most devices, so I have to create several virtual devices and manage all of the commands in a handler for each on, off, mode, scenario, etc.
The basics all seem to work well if I have a device named for the function that I want to do. This then fires the ON command, which I then catch the name of the calling device and do the action based on that. (“Theater Movie” “On” runs a set of commands to turn everything on) I’d prefer to just have a “Theater” device and then build a custom “Movie” command in the handler…
I’m having very little luck with device names and use of custom commands that Alexa will recognize and fire the command. In most cases, the ON fires, not the custom command/method. Or, Alexa says
"I could not find device Theater Movie". She tries to combine the device + command in her search for the device.
Does anyone have any good examples of usage here or other things I should try?