Alexa TTS (Text-To-Speech) [and more] plug-in for Vera

Is that not what’s in the log?

The other giveaway is that the light never comes on to show that there’s ‘incoming’ speech

Is there another log I can look at?

Cheers

C

if you look at the logs, there’s a chance you can find the command executed. Look at the files into /storage/alexa, and see if all files are correct.

All the files in /storage/alexa appear to be correct.

I just upgraded to the latest version from git hub in case one of my plugin files had become corrupted (although I also restored a backup from Saturday)

ls -la
drwxr-xr-x    2 root     root             0 Mar 24 19:41 .
drwxr-xr-x    6 root     root             0 Jan  1  1970 ..
-rwx------    1 root     root          2505 Mar 24 07:47 .alexa.cookie
-rw-r--r--    1 root     root            58 Mar 24 07:48 .alexa.devicelist.all
-rw-r--r--    1 root     root          8174 Mar 24 07:48 .alexa.devicelist.json
-rw-r--r--    1 root     root          7249 Mar 24 07:48 .alexa.devicelist.txt
-rw-r--r--    1 root     root         71316 Mar 24 07:17 .alexa.login
-rw-r--r--    1 root     root          1757 Dec 17 12:15 alexa.cookie.backup
-rwxrwxrwx    1 root     root         33826 Mar 24 19:41 alexa_remote_control_plain.sh
-rwxrwxrwx    1 root     root         33826 Mar  6 17:33 alexa_remote_control_plain.sh.old
-rwx------    1 root     root          2505 Mar 24 07:47 cookies.txt

These all look OK (although I’ve no real idea what some of them are meant to contain.

This was from before the upgrade (I assume this was what you meant by command) No speech

06	03/24/20 19:38:45.070	Device_Variable::m_szValue_set device: 167 service: urn:bochicchio-com:serviceId:VeraAlexa1 variable: LatestResponse was: sending cmd:speak:Testing to dev:Kitchen1_dot type:A2825NDLA7WDZV serial:E1AE3A32AD9043CDAFAFBD3A7FE8F038 customerid:A1CVTZEBJIUFJI now: sending cmd:speak:Testing to dev:Living_Room_dot type:A32DOYMUN6DTXA serial:G090U50991720NTM customerid:A1CVTZEBJIUFJI #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x706b8520>

This was after the upgrade. No speech

06	03/24/20 19:41:51.969	Device_Variable::m_szValue_set device: 167 service: urn:bochicchio-com:serviceId:VeraAlexa1 variable: LatestResponse was: no alexa command received now: sending cmd:speak:Testing to dev:Living_Room_dot type:A32DOYMUN6DTXA serial:G090U50991720NTM customerid:A1CVTZEBJIUFJI #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x70650520>

Apologies they are to different devices!

Cheers

C

Hmmm

So does this indicate I’m getting CAPTCHA even though I don’t when I log in through a browser?

Enter the characters as they are shown in the image.
</div></div></div>
M
M

    </div>

Cheers

C

Yes indeed. I took noticed they’re more aggressive lately.

Arse!

Will look, if I have time, tomorrow

Thanks

C

OK no idea how I get past this.

I’ve created the cookie manually (as I’ve done before) but still nothing. It seems my queue is building as well. The command I submitted was:

luup.call_action("urn:dlna-org:serviceId:DLNAMediaController1", "Say", {Text="Rachel has left the building", Volume=40,GroupZones="ALL"}, 167)
|08|03/27/20 8:08:14.647|JobHandler_LuaUPnP::HandleActionRequest device: 167 service: urn:dlna-org:serviceId:DLNAMediaController1 action: Say <0x6ff02520>|
|---|---|---|
|08|03/27/20 8:08:14.647|JobHandler_LuaUPnP::HandleActionRequest argument Text=Rachel has left the building <0x6ff02520>|
|08|03/27/20 8:08:14.648|JobHandler_LuaUPnP::HandleActionRequest argument GroupZones=ALL <0x6ff02520>|
|08|03/27/20 8:08:14.648|JobHandler_LuaUPnP::HandleActionRequest argument Volume=40 <0x6ff02520>|
|50|03/27/20 8:08:14.648|luup_log:167: VeraAlexa: addToQueue: added to queue for 167 <0x6ff02520>|
|06|03/27/20 8:08:28.599|Device_Variable::m_szValue_set device: 167 service: urn:bochicchio-com:serviceId:VeraAlexa1 variable: LatestResponse was: sending cmd:speak:Security system Disarmed to dev:Everywhere type:A3C9PE6TNYLTCH serial:de3b4a21ca844817bc180e826e636425 customerid:A1CVTZEBJIUFJI Skipping unsupported command: speak:Security system Disarmed on dev:Everywhere type:A3C9PE6TNYLTCH serial:de3b4a21ca844817bc180e826e636425 family:WHA sending cmd:speak:Security system Disarmed to dev:Bedroom_dot type:A32DOYMUN6DTXA serial:G090U5099156024K customerid:A1CVTZEBJIUFJI sending cmd:speak:Security system Disarmed to dev:Office type:A32DOYMUN6DTXA serial:G090U50991550NLS customerid:A1CVTZEBJIUFJI sending cmd:speak:Security system Disarmed to dev:Living_Room_dot type:A32DOYMUN6DTXA serial:G090U50991720NTM customerid:A1CVTZEBJIUFJI sending cmd:speak:Security system Disarmed to dev:Kitchen_dot type:A3S5BH2HU6VAYF serial:G090LF1181220107 customerid:A1CVTZEBJIUFJI now: sending cmd:speak:Rachel has left the building to dev:Everywhere type:A3C9PE6TNYLTCH serial:de3b4a21ca844817bc180e826e636425 customerid:A1CVTZEBJIUFJI Skipping unsupported command: speak:Rachel has left the building on dev:Everywhere type:A3C9PE6TNYLTCH serial:de3b4a21ca844817bc180e826e636425 family:WHA sending cmd:speak:Rachel has left the building to dev:Bedroom_dot type:A32DOYMUN6DTXA serial:G090U5099156024K customerid:A1CVTZEBJIUFJI sending cmd:speak:Rachel has left the building to dev:Office type:A32DOYMUN6DTXA serial:G090U50991550NLS customerid:A1CVTZEBJIUFJI sending cmd:speak:Rachel has left the building to dev:Living_Room_dot type:A32DOYMUN6DTXA serial:G090U50991720NTM customerid:A1CVTZEBJIUFJI sending cmd:speak:Rachel has left the building to dev:Kitchen_dot type:A3S5BH2HU6VAYF serial:G090LF1181220107 customerid:A1CVTZEBJIUFJI #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x6ff02520>|
|01|03/27/20 8:08:28.604|LuaInterface::CallFunction_Job device 167 function SVeraAlexaSay1_DLNAMediaController1_Say_run took 14 seconds <0x6ff02520>|
|50|03/27/20 8:08:28.605|luup_log:0: ALTUI: Evaluation of lua code returned: nil <0x6ff02520>|

All files are in place, but the login file has not been updated since the 24th (not sure if it should?)

 ls -ltra
drwxr-xr-x    6 root     root             0 Jan  1  1970 ..
-rw-r--r--    1 root     root          1757 Dec 17 12:15 alexa.cookie.backup
-rwxrwxrwx    1 root     root         33826 Mar  6 17:33 alexa_remote_control_plain.sh.old
-rw-r--r--    1 root     root         71316 Mar 24 07:17 .alexa.login
-rwx------    1 root     root          2505 Mar 24 07:47 cookies.txt
-rwx------    1 root     root          2505 Mar 24 07:47 .alexa.cookie
-rw-r--r--    1 root     root          7249 Mar 24 07:48 .alexa.devicelist.txt
-rw-r--r--    1 root     root          8174 Mar 24 07:48 .alexa.devicelist.json
-rw-r--r--    1 root     root            58 Mar 24 07:48 .alexa.devicelist.all
-rwxrwxrwx    1 root     root         33826 Mar 24 19:41 alexa_remote_control_plain.sh
drwxr-xr-x    2 root     root             0 Mar 27 08:08 .

Cheers

C

catman have you tried to reset the TTS

luup.call_action("urn:bochicchio-com:serviceId:VeraAlexa1", "Reset", {}, 666)

Just tried that, but does it need to be 666 or the device number of the TTS?

I used the device number and it does not seem to have done anything other than reload the script.

 ls -altr
drwxr-xr-x    6 root     root             0 Jan  1  1970 ..
-rw-r--r--    1 root     root         71316 Mar 24 07:17 .alexa.login
-rwx------    1 root     root          2505 Mar 24 07:47 .alexa.cookie
-rw-r--r--    1 root     root          7249 Mar 24 07:48 .alexa.devicelist.txt
-rw-r--r--    1 root     root          8174 Mar 24 07:48 .alexa.devicelist.json
-rw-r--r--    1 root     root            58 Mar 24 07:48 .alexa.devicelist.all
-rwxrwxrwx    1 root     root         33826 Mar 27 08:53 alexa_remote_control_plain.sh
drwxr-xr-x    2 root     root             0 Mar 27 08:53 .

Cheers

C

try login in to amazon.co.uk and go to security and try reseting the security method.

Ta. I’ve gone in the settings and under the Login & Security I have:
Name
Email
Mobile
Password
Two-Step Verification (2SV) Settings:
Manage your Two Step Verification (2SV) Authenticators

If I go into the last one it’s to start setting up MFA which I don’t really want to do. Nothing there about resetting?

Thanks for your help here :slight_smile:
C

set 2 stage then try running TTS, see if you are sent a OTP. You can remove the 2 stage after if you don’t want it. Just think it may get you going again

just get your cookie manually. instructions are on GitHub or a couple of posts before.

I have the cookie, unless we’re thinking that it’s failed somehow?

 ls -altr
drwxr-xr-x    6 root     root             0 Jan  1  1970 ..
-rw-r--r--    1 root     root         71316 Mar 24 07:17 .alexa.login
-rwx------    1 root     root          2505 Mar 24 07:47 .alexa.cookie
-rw-r--r--    1 root     root          7249 Mar 24 07:48 .alexa.devicelist.txt
-rw-r--r--    1 root     root          8174 Mar 24 07:48 .alexa.devicelist.json
-rw-r--r--    1 root     root            58 Mar 24 07:48 .alexa.devicelist.all
-rwxrwxrwx    1 root     root         33826 Mar 27 08:53 alexa_remote_control_plain.sh
drwxr-xr-x    2 root     root             0 Mar 27 08:53 .

C

drwxr-xr-x    8 root     root             0 Jan  1  1970 ..
-rwxrwxrwx    1 root     root         33826 Mar 20 15:33 alexa_remote_control_plain.sh
-rw-r--r--    1 root     root         71311 Mar 24 18:10 .alexa.login
-rw-r-----    1 root     root          2988 Mar 24 18:14 .alexa.cookie
-rw-r--r--    1 root     root         14481 Mar 24 18:14 .alexa.devicelist.txt
-rw-r--r--    1 root     root         16354 Mar 24 18:14 .alexa.devicelist.json
-rw-r--r--    1 root     root            47 Mar 24 18:14 .alexa.devicelist.all
drwxr-xr-x    2 root     root             0 Mar 27 08:53 .

why does mine show 8 and your 6?

I had problems too, the same day you posted your first one. I resolved by:

  • opening Chrome (I use Edge Chromium as my daily browser by now)
  • logging in again, after clearing all the cookies
  • altering the script and using the same user agent as my browser

I suspect Amazon has changed something on their end, so they’re more aggressive with captcha, unless they find you’re logging with a similar browser. I can provide you a patch to specify the same user agent as your Chrome browser, it should be doable quite easily.

1 Like

No idea!

C

I had to replace my cookie on the same day, i used firefox mobile app with cookie text addon. I did not delete cookies(as annoying) i just cut the section that refered to layla anD amazon. all worked as soon as cookie was replaced.

Thanks. Just for reference should the .alexa.login file get updated each time a TTS is run, or is it persistent as it were?

My cookie is from Firefox (as that’s where I originally found the simplest export method.

Thanks again, both

C

it should stay, unless it’s not valid and the script tries to refresh it - that’s your case, I suspect. I will just delete everything (all the file starting with .) and start again with a fresh cookie.

1 Like

Best Home Automation shopping experience. Shop at getvera!

© 2020 Vera Control Ltd., All Rights Reserved. Terms of Use | Privacy Policy