I have an alexa.yaml file for a custom interaction model with Alexa, but am having trouble calling shell commands directly from it.
I am able to call shell commands if I have an intermediary script, but not directly. My working code is below, as well as the code I would like to use. I want to avoid having a script call the shell_command, is that possible?
The possible completions are:
on
off
cable
chromecast
etc…
These shell commands are all known in HASS as tv_something. Eg: tv_off, tv_cable, etc.
Alexa API is passing the correct command based on my voice input, and as mentioned, it works when calling the script that calls the shell_command, just not when calling the shell command directly.