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

Can you explain it step by step in details?

Shall I install an add-on in firefox? if yes, what it must be?

DebugMode is a variable under the device. After setting to 1, just execute the lua code and look at logs. Be sure your variables are set to right values.

What must be the format of the file?

What file? Logs are important, not the files.

the alexa.cookie file

I have done it as you said. my problem should be authentication/ captcha as checking log I see login fails

Ok, if you got a captcha, the only solution is to use the otp code. See Readme for a link in this thread with the solution.

Hi. you will need to turn on 2 stage verification in the amazon securrity settings, you should also log out of pitangui.amazon.com(or your region site).Then run a VeraAlexa action, amazon should then send you a otp. Enter the otp in the otp variable and run another action.

Can You check my logs and see what is wrong?

Command is sent and your device is detected. Try another thing, maybe weather is not configured, or volume is too low. Plus, commands should be logged on your alexa app as well.

How should commands be logged on alexa app?

This is the log for another command

If you issue the weather command, then in alexa app activity you should see the weather tile, with weather info.

Your logs look fine and vera is issuing command and alexa is responding with serial number etc.

What kind of Echo are you using? 3rd party devices are not always supported.

It is Echo Dot

This Code is executed correctly:

luup.call_action(“urn:bochicchio-com:serviceId:VeraAlexa1”,
“Say”,
{Text=“Hello from Vera Alexa”, Repeat = 3}, 37)

How can I find different codes for example Alexa says time and date?

local text = os.date("today is %A, in %B")
luup.call_action("urn:bochicchio-com:serviceId:VeraAlexa1", 
  "Say",
  {Text=text, Volume=50, GroupZones="Office", Repeat = 1}, 37)

https://www.lua.org/pil/22.1.html

1 Like

Thanks a million.

I was wondering if you would mind sending me the code to say weather of specific location.

That is more involved and would require a wearther api. You would need to send a http request, then parse the required info from the returned json string. Not a one line pice of code.

May be possible using sitesnsor plugin and reactor plugin.

1 Like

I made a video how to run the plug-in:

Subscribe my channel to see more videos if you liked it.

3 Likes

@Alireza44907 Good job more videos like this is needed about different plugins etc.

Well done @Alireza44907 blush:

1 Like