Announcing version 2.2.6 of Ask Alexa
I am pleased to announce the 2.2.6 version of Ask Alexa. In this version I continue (along with help from the community) to evolve the application to allow more conversational syntax, along with adding more functionality for existing and new devices. This is JUST an IDE update with all extensions getting an update along with a new extension. While the Lamda was upgraded (now to version 1.2.6), it is NOT necessary to update if you don’t want to (but if you plan to get a Show it will be nice to have). Either way, you WILL need to go through Settings>>Setup Variables for the new functionality to operate. This is very important and about 50% of the problems I see are people not updating their slots after an upgrade.
I am slowing down updates as I move forward. However, I will push bug fixes out if you report them to me! And I will always be on the forum to harass
PLEASE NOTE: Now that this app is rather stable (It is now almost 1 ½ years old!) now I will be updating it less frequently except for bugs and new features. I am waiting for Amazon to release their ‘push’ notifications (which this new version has various references to internally) where some amazing stuff will happen with this app. Until then, if you do have a great feature idea for this app, just let me know.
Other additions to this new version include:
- Bug Fixes - The normal things…silly misspellings, logic errors, bug reports. Thanks to @flexyneat for pointing out an issue with additional attributes and contact sensors (the fact they weren’t listed).
- Code Optimization - Always finding better ways to do things in a shorter about of code.
- Ask Alexa Extensions - To allow for even more options in the future, the architecture of Ask Alexa is evolving to allow what I am calling ‘extensions’ to be accessible via the main app. Just like child apps in other applications, these can be added to Ask Alexa to give even more functionality to the main program.
- Documentation Optimizations - The main document (http://thingsthataresmart.wiki/index.php?title=Ask_Alexa) was getting too big so I split out the extensions into their own area. This helped streamline the installation instructions and get you up and running faster.
- Scheduler Extension - This is the extension some of you have been waiting for! Surprisingly, Amazon just came out with similar functionality (http://www.businessinsider.com/amazon-echo-update-features-reminders-named-timers-2017-6 A LOT of folks e-mailed me that knew about the schedules app when they heard this news thinking I would be upset. However, I am thrilled! Ask Alexa is not just duplicating functionality of Alexa, but enhancing it. After playing with this native feature a little bit, I still feel Ask Alexa has the upper-hand for flexibility. Now you can schedule actions (and reminders BEFORE the action, something that is quite important!) within Ask Alexa. While most will use the “action” to be just a verbal reminder, Ask Alexa can actually schedule REAL actions (run CoRE Macros, play a voice report, turn on lights, etc.) Of course, the classics uses are still here… For example, let’s say you have an annual event (i.e. birthday and anniversary) of someone in your family. Simple use your app to set a reminder and a new message will appear in the message queue you designate to remind you of this. In addition, for those of you in volatile weather areas, you can also utilize the advisory weather report to play (on ST connected speakers or put a message in your message queue) when adverse weather is forecasted. While Amazon allows you to set reminders via voice, I actually feel setting up complex schedules with the app (i.e. VISUALLY) is the way to go. There are SO many things you can do with this extension, and a plethora of ways you can set a schedule (one time, recurring, even real CRON expressions). Be sure to read the section here:http://thingsthataresmart.wiki/index.php?title=Ask_Alexa_-_Schedules as I am not doing justice to what this feature can do here.
Your move, Amazon…
- Message Queue Extension - Added new parameters for Ask Alexa’s partner apps (like Device Manager…thank you @erocm1231 and @storageanarchy for the suggestions) that allow for message to have expiration dates, remove dates from playback, or just notify without adding to the message queue (for future extensions). In addition, you can now have a predesignated sound alert you to messages (or prepend them to your verbal announcement). If you have sounds clips that are ‘family friendly’ and you feel they would benefit others, please send me suggestions and I may include them in future releases.
- Random Replies - As most people know, you can use variables in the text fields within most of the areas of the extensions (voice reports, Acknowledgement text in Extension groups, etc.) Added a %random{1-3}% flag variable. When set up in the Settings>>Text Field Variables, you can have Alexa reply with one of 3 responses you program in. Let me know if you need more than 3 responses. I currently use this for my good night routine so it says random things each time.
- Weather/Voice Report Restrictions - When I removed the voice and weather reports from the main macros in the last revision, I couldn’t think of a use case where I needed to keep the restrictions for those reports. Thanks to @Xtropy for a couple really good use cases. The restrictions have been added back in.
- Utterances - Thanks again to @m3rocket for adding new utterances that allow for even more compound (i.e. multiple actions) per command. There are also some new natural speech things (i.e. “How cold is it outside” where “outside” could be an alias). He also spent considerable time organizing the utterances into logical order and building up variation (he almost doubled the number of utterances!). If you find something doesn’t work the way you expect it, it may not be the code but the lack of an utterance. Let me know and I can add that into future releases without having to re-code the app.
Installation
For those with IDE integration with GitHub, simply update the repository and you will have the latest code for the SmartApp itself. However, for ALL aspects of the application follow the original instructions for installation to ensure you get everything updated properly:
The wiki for this app is here: http://thingsthataresmart.wiki/index.php?title=Ask_Alexa
Support
All of you have been great in asking very relevant questions and making suggestions that I end up using. Here are some helpful tips on usage and support:
- Sometimes it works best if I can work real time with you. To facilitate this, I have created a Slack channel: https://askalexa.slack.com. Using this tool is easy and will allow for real-time collaboration to solve the problems faster. To use this feature, I must invite you to the Slack channel. This will not be for normal questions; please use this forum for that function.
- The Echo, as it is designed currently, cannot react to switches opening or other actions within SmartThings. She will do things for you, but only at your direction and at the time of the request. The delay timer mentioned in the control macro happens at the SmartThings hub, not within the Amazon Alexa control. See the new Message Queue functions for similar functionality with Big Talker!
- When evaluating new features I will typically ask for a valid use case. If it can be used by others to bring them value I will put it on my list of future revisions. Not all suggestions will be used and many times I add aspects of the request.
- There are no dumb questions, but many of the questions you may have were probably answered in the year since the initial release. Please take some time to go through the forum and the wiki if you have issues. And don’t be offended if I give you the specific area of the manual that answers your question. I have spent almost as much time on the documentation as I have on the app. Finally, there are some big fans of Ask Alexa that know almost as much as I do. They can also help.
- Feel free to send me forks of utterances or even code revisions. As mentioned above, if it adds value to the overall program I will try to include it. This also goes for the wiki documentation…while I have spent over a year creating this document, I am open to it being improved; I know there are probably still grammatical errors or syntax issues…If you find them, fix them…I will include your name (if I can) in any fixes submitted.
- If you find a bug or a consistent crash please help me track it down by giving me repeatable steps to reproduce it. A non-reproducible bug, many times, indicates other areas that may be at fault besides the app. If you watch the live logging and see a red error with a line number, that is very helpful to me! However, I will need a full screenshot and not a copy/paste of the text. But be careful about revealing your OAuth and AppToken in your public posts. People can control you house with that information. You may want to blur that out.
As mentioned above, revisions will be less and less now. And with the code base now unified, I expect less and less additions…especially as I partner with other application developers to ensure their strengths can be brought into the notification model of Ask Alexa . Any and all suggestions are still on the table for addition.
To prep for the next version, be sure to take some good notes about any weather voice reports you have set up…I will be moving the weather piece to it own extension app. However, it will still be able to work in any voice report you have set up. Then, the fun begins with addition another extension after the next one!
As always, I appreciate any public accolades or even donations to my PayPal account: https://www.paypal.me/mstruck . And, if you are so inclined, I also will accept bitcoins (or fractions thereof) if you have any laying around. My wallet ID is: 1CMgaiKgBfojTBCLpHLfa9KvcrW3cNxVpm
Enjoy.