thorsten-gehrig/alexa-remote-control

Seems answer from "-lastalexa" is changed by Amazon

Closed this issue · 2 comments

Dear all,

since a few hours my scripts fail to work and I found the root cause.
This is the new answer from -lastalexa:

old: Name1
new: Name1=XXXXXXXXXXXXXXX=YYYYYYYYYYYYYYYY=ECHO

Herein, the XX and YY are codes of capital letters and digits.
"Name1" is the name of the last alexa used.

I am now changing my script to split the string by = and use first element.
I assume all who use -lastalexa need to do that sooner or later.

Regards,
Horst

adn77 commented

Sorry, my bad. I introduced that breaking change some time ago as there might be devices named the same (Name1).
This happens especially if you use Alexa on your mobile or some other non-Amazon device.

2021-11-16: v0.20c fixed AlexaApp device selection: since they're all called "This Device" use corresponding
line in /tmp/.alexa.devicelist.txt, e.g.: -d "This Device=A2TF17PFR55MTB=ce0123456789abcdef01=VOX"
-lastalexa now returns this string. Make sure to put the device in double quotes!

The field names are:
<accountName>=<deviceType>=<serialNumber>=<deviceFamily>

Alex

perfect, thanks. Strange that it just occured here even though I did not update your script. Be it what it may ... item is easy to solve once one is aware of the item. Solved and Closed with thanks.