Ok.,âŠletâs take one macro firstâŠwhat itâs primary name, and what are its aliases?
Actually, if you are savvy with the code, modify line 1288 to this:
if (it."macAlias${i}" && it."macAlias${i}".toLowerCase().replaceAll("[^a-zA-Z0-9 ]", "")==mac) {
I should have checked for a name present before checking its valueâŠsilly Groovy Code
I think that did it. Thanks for all your hard work!
Which oneâŠthe code? I will push out 2.2.2b if that is the case! Thanks for bringing this to my attention.
Yea. Switching out that one line of code seemed to do it.
Well, Iâve got another one that looks similar:
groovy.lang.MissingMethodException: No signature of method: script14890271186312086074392.toLowerCase() is applicable for argument types: () values: [] @ line 1297
The last fix got my âmacro of macrosâ error free, but now this one pops up when I try to fire the underlying macros individually. They also donât seem to fire when I do my âmacro of macrosâ.
So, looking at my code that would only come up if you have no primary name for your macro and ONLY an alias nameâŠcan you confirm? I probably need to put in a check that you CANâT add aliases without a primary name already entered.
I havenât used this app before, so I canât be sure Iâm doing it right but:
I have a name under the âVoice Macro Nameâ. I assume thatâs the primary macro name.
Iâve tried them with both no aliases listed, and duplicating the Voice Macro name. Iâm not sure if aliases are required or not.
Can you send a screen shot of your main screen where you are configuring the macrosâŠI canât really reproduce what you are seeing. I canât control your house with that information, so no worries there
OkâŠI was able to reproduce thisâŠyou arenât doing anything wrongâŠI created myself a little logic loop hereâŠstand by.
OkâŠironically, I put TOO much logic in thisâŠsimply delete 1297âŠit is not needed
Nice work! Itâs all working as expected now. Thank you so much.
Would you like me to delete all my comments to clean up your thread a bit?
NahâŠquite honestly this is good for others to view and learn fromâŠI will be closing this thread when the next version is released (it will have these fixes in them).
Pubished 2.2.2.c https://raw.githubusercontent.com/MichaelStruck/SmartThingsPublic/master/smartapps/michaelstruck/ask-alexa.src/ask-alexa.groovy
@MichaelS (Feature Request)
Could you make it possible to do the following in a future release (idea from the current message queue function):
âAlexa, tell SmartThings to leave a note for Anna, Brian will be at a meeting until 3pmâ
âAlexa, ask SmartThings Are there messages for Anna?â ⊠âThere are 3 messages for Anna, 1. Brian will be at a meeting until 3pm. 2âŠâ
âAlexa, tell SmartThings to remind me to do taxesâ
âAlexa, ask SmartThings for my remindersâ ⊠âYou have 3 reminders. 1. Do taxes 2. âŠâ
Ironically, I am expanding the message queue in the next release which will build the framework for things like thisâŠnext release on Friday wonât have this but will give an indication of where I am going with this.
Iâm totally comfortable with the copy/paste of the slots. Given you were asking me to go to the app to execute the âsetup variablesâ link, I was wondering if that link actually performed any function beyond providing the variables. Clear that there is not.
Thanks for your hard work on this.
I wishâŠI am speaking to some folks about some âautomationâ to perform the slot population, but nothing from Amazon, unfortunately.
This version is gone. long live version 2.2.3