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

Morning. TTS stopped working some time overnight.
Checking /storage/alexa my cookie had vanished. Tried the backup, no better so created a new one. That’s better all the files in there.
But still no TTS. Submitting:

luup.call_action("urn:dlna-org:serviceId:DLNAMediaController1", "Say", {Text="Testing", Volume=40,GroupZones="ALL"}, 167)

I get nothing from Alexa and in the logs:

50	03/24/20 7:59:02.193	luup_log:0: ALTUI: runLua(luup.call_action("urn:dlna-org:serviceId:DLNAMediaController1", "Say", {Text="Testing", Volume=40,GroupZones="ALL"}, 167)) <0x70d26520>
08	03/24/20 7:59:02.194	JobHandler_LuaUPnP::HandleActionRequest device: 167 service: urn:dlna-org:serviceId:DLNAMediaController1 action: Say <0x70d26520>
08	03/24/20 7:59:02.194	JobHandler_LuaUPnP::HandleActionRequest argument Text=Testing <0x70d26520>
08	03/24/20 7:59:02.194	JobHandler_LuaUPnP::HandleActionRequest argument GroupZones=ALL <0x70d26520>
08	03/24/20 7:59:02.194	JobHandler_LuaUPnP::HandleActionRequest argument Volume=40 <0x70d26520>
50	03/24/20 7:59:02.195	luup_log:167: VeraAlexa: addToQueue: added to queue for 167 <0x70d26520>
02	03/24/20 7:59:10.100	ZWaveJobHandler::AlarmCallback skipping check because of jobs <0x772e1520>
06	03/24/20 7:59:15.513	Device_Variable::m_szValue_set device: 167 service: urn:bochicchio-com:serviceId:VeraAlexa1 variable: LatestResponse was: 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 now: sending cmd:speak:Testing to dev:Everywhere type:A3C9PE6TNYLTCH serial:de3b4a21ca844817bc180e826e636425 customerid:A1CVTZEBJIUFJI Skipping unsupported command: speak:Testing on dev:Everywhere type:A3C9PE6TNYLTCH serial:de3b4a21ca844817bc180e826e636425 family:WHA sending cmd:speak:Testing to dev:Bedroom_dot type:A32DOYMUN6DTXA serial:G090U5099156024K customerid:A1CVTZEBJIUFJI sending cmd:speak:Testing to dev:Office type:A32DOYMUN6DTXA serial:G090U50991550NLS customerid:A1CVTZEBJIUFJI sending cmd:speak:Testing to dev:Living_Room_dot type:A32DOYMUN6DTXA serial:G090U50991720NTM customerid:A1CVTZEBJIUFJI sending cmd:speak:Testing to dev:Kitchen_dot type:A3S5BH2HU6VAYF serial:G090LF1181220107 customerid:A1CVTZEBJIUFJI #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x70d26520>
01	03/24/20 7:59:15.554	LuaInterface::CallFunction_Job device 167 function SVeraAlexaSay1_DLNAMediaController1_Say_run took 13 seconds <0x70d26520>
50	03/24/20 7:59:15.555	luup_log:0: ALTUI: Evaluation of lua code returned: nil <0x70d26520>
01	03/24/20 7:59:15.556	LuaInterface::CallFunction_Request device 0 ALTUI_LuaRunHandler/ALTUI_LuaRunHandler took 13 seconds <0x70d26520>

Luup has been restarted and the Vera rebooted (well why not)

Any thoughts?

Cheers

C

Can you try to use it with a device, instead of ALL? Also, try to reset the bash script (deleting the .sh script is enough, it will update on next request).

Single device doesn’t have the warning about the length of time, but no voice still
I renamed the .sh script, but it hasn’t been recreated?

Cheers

C

set configured param to 0 and try again.

Ta

That bought the script back, but still no voice

50	03/24/20 9:32:32.814	luup_log:0: ALTUI: runLua(luup.call_action("urn:dlna-org:serviceId:DLNAMediaController1", "Say", {Text="Testing", Volume=40,GroupZones="Office"}, 167)) <0x70b66520>
08	03/24/20 9:32:32.815	JobHandler_LuaUPnP::HandleActionRequest device: 167 service: urn:dlna-org:serviceId:DLNAMediaController1 action: Say <0x70b66520>
08	03/24/20 9:32:32.815	JobHandler_LuaUPnP::HandleActionRequest argument Text=Testing <0x70b66520>
08	03/24/20 9:32:32.815	JobHandler_LuaUPnP::HandleActionRequest argument GroupZones=Office <0x70b66520>
08	03/24/20 9:32:32.815	JobHandler_LuaUPnP::HandleActionRequest argument Volume=40 <0x70b66520>
50	03/24/20 9:32:32.816	luup_log:167: VeraAlexa: addToQueue: added to queue for 167 <0x70b66520>
06	03/24/20 9:32:35.330	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:Office type:A32DOYMUN6DTXA serial:G090U50991550NLS customerid:A1CVTZEBJIUFJI #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x70b66520>
50	03/24/20 9:32:35.333	luup_log:0: ALTUI: Evaluation of lua code returned: nil <0x70b66520>

Thanks for your help

C

Try to check the alexa logs from alexa.amazon.co.uk

Plus, open ssh and see what’s executed.

Thanks

So the list of executed commands shows virtually no voice executions. Only the one where I asked Alexa ‘How cold is the house’ which executes a scene and reads some sensor data back. Vera claims to have run that this morning (which would match my ‘test’) so it looks like Alexa > Vera is working (in fact all my voice commands work)

All of our timers and playing of radios seem to be there.

Not sure what you mean by open SSH and see what’s executed?

Cheers

C

I was referring to SSH into the Vera unit. Try to check for volume and other things as well.

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