For my first try I chose to implement a simple “missing” Alexa command: Restart Fire TV Stick. Amazon Fire TV Stick, like every Android program, is prone to losing its internet connection while still connected to WiFi. The only way to restore the internet connection is to restart the program. Restart has two steps: turn off power; turn on power.
An Alexa routine consists of a trigger phrase, a list of action phrases and an Alexa device name. It is stored with all other Alexa information at http://alexa.amazon.com. To define and/or edit a routine you must use the Amazon Alexa app on an Android phone or iPhone. You can choose your own trigger phrase, but you have to test whether Alexa can distinguish it from other valid phrases. Each action phrase is chosen from a fixed list of alternatives.
This is my intended restart routine:
WHEN
Alexa, Restart Fire TV Stick
ALEXA WILL
Turn Off rhmFireTV
Turn On rhmFireTV
FROM
The device you speak to
When I execute the Amazon Alexa app on my Android phone, it enables Routines and checks the validity of my mobile phone number. I then select the Routines menu and enter my new routine. But I find that rhmFireTV is not an allowed object for an action — it is not a Smart Home device. Fortunately, I have a TP-Link mini smart plug. I change its name to “Fire TV power”, and use that name instead of rhmFireTV. I check my routine and discover that the editor has changed the order of my actions. I press the six dots and slide my second action to the bottom of the list. I click CREATE to record my new routine at http://alexa.amazon.com, wait a minute, and test my new routine:
Alexa, Restart Fire TV Stick
and Alexa responds
Sorry, I am unable to restart the book right now.
I make a good guess: I change the trigger phrase to “Restart” and Alexa executes my routine. But my second action does not work; I need a delay before turning the power back on. I insert an Alexa Says action: “Au revoir!”. I test again, and it works as intended!
Alexa Routines are still in an early stage of development. I expect that future changes will make Routines into a powerful, useful tool.