Vera Alexa Plugin 7.32
-
Also if anyone in the future has Cookie issues, you must turn of JavaScript in Firefox to get the correct cookie file, I didn't and it wasn't working.
@pabla said in Vera Alexa Plugin 7.32:
Also if anyone in the future has Cookie issues, you must turn of JavaScript in Firefox to get the correct cookie file, I didn't and it wasn't working.
Does this apply to Chrome as well? And if so, do you mean "Disable Javascript" for all sites, forever? Or just while VeraAlexa plug-in is configuring itself?
(Because I did none of that.
-
@pabla said in Vera Alexa Plugin 7.32:
Also if anyone in the future has Cookie issues, you must turn of JavaScript in Firefox to get the correct cookie file, I didn't and it wasn't working.
Does this apply to Chrome as well? And if so, do you mean "Disable Javascript" for all sites, forever? Or just while VeraAlexa plug-in is configuring itself?
(Because I did none of that.
@librasun I am not sure if it applies to chrome but I assume it would, because when you disable JavaScript and login you get the Captcha login screen (which is what you are trying to bypass).
Yes temporarily disable JavaScript until you have got the cookie file.
-
Also if anyone in the future has Cookie issues, you must turn of JavaScript in Firefox to get the correct cookie file, I didn't and it wasn't working.
@pabla I never turn off JS, I use Export Cookies Addon to export to a txt file. I will add i do it on Android Firefox I login to layala.amazon.co.uk. Once logged in i export amazon.co.uk to text file. I then copy the contents to .alexa.cookie
-
@pabla I never turn off JS, I use Export Cookies Addon to export to a txt file. I will add i do it on Android Firefox I login to layala.amazon.co.uk. Once logged in i export amazon.co.uk to text file. I then copy the contents to .alexa.cookie
-
@librasun I am not sure if it applies to chrome but I assume it would, because when you disable JavaScript and login you get the Captcha login screen (which is what you are trying to bypass).
Yes temporarily disable JavaScript until you have got the cookie file.
@pabla said in Vera Alexa Plugin 7.32:
Yes temporarily disable JavaScript until you have got the cookie file.
Perhaps wise advice, but I'm gonna sit on my hands for now if only because the .alexa.cookie file manifested without any fuss when I first installed the plug-in. I took that as a sign that all is well.
Unless advised otherwise and/or someone explains how to examine the cookie file to know I got the "wrong" one?
-
@pabla said in Vera Alexa Plugin 7.32:
Yes temporarily disable JavaScript until you have got the cookie file.
Perhaps wise advice, but I'm gonna sit on my hands for now if only because the .alexa.cookie file manifested without any fuss when I first installed the plug-in. I took that as a sign that all is well.
Unless advised otherwise and/or someone explains how to examine the cookie file to know I got the "wrong" one?
-
I thought it might interest you guys to know that Twilio would charge me between $0.0008 and $0.0032 per 100 characters to generate synthesized speech (TTS) using Amazon's SSML voice API. However, that interface is intended for phone calls (which I've used in the past for automated responses and such).
Guess we should be grateful that it's possible to get the same results for free via Vera/Alexa.
-
Thoughts on sound effects folks?
luup.call_action("urn:bochicchio-com:serviceId:VeraAlexa1","RunCommand",{Command="-e sound:amzn_sfx_trumpet_bugle_04",Volume=49, GroupZones="Living Room dot"}, 22)
Works fine but
sound:amzn_sfx_trumpet_bugle_04Bears no resemblance to the file library names listed here:
What do I need to do to make something like:
soundbank://soundlibrary/air/fire_extinguisher/fire_extinguisher_08
Work?
TIA
C
-
The filename I see listed at the link you shared is
amzn_sfx_trumpet_bugle_04
which appears to match.
Not sure what you're calling "different"?I notice that the other sound effect you hunted for appears to be
<audio src="soundbank://soundlibrary/air/fire_extinguisher/fire_extinguisher_08"/>
which I take to mean"fire_extinguisher_08"
gets substituted in place of the bugle reference in your Lua command. -
The filename I see listed at the link you shared is
amzn_sfx_trumpet_bugle_04
which appears to match.
Not sure what you're calling "different"?I notice that the other sound effect you hunted for appears to be
<audio src="soundbank://soundlibrary/air/fire_extinguisher/fire_extinguisher_08"/>
which I take to mean"fire_extinguisher_08"
gets substituted in place of the bugle reference in your Lua command.@librasun said in Vera Alexa Plugin 7.32:
The filename I see listed at the link you shared is
amzn_sfx_trumpet_bugle_04
which appears to match.
Not sure what you're calling "different"?Sorry. I can't give a direct link to one of the files in the sound library but they are listed like:
<audio src="soundbank://soundlibrary/aircrafts/helicopter/helicopter_13"/>
But replacing amzn_sfx_trumpet_bugle_04 with helicopter_13 doesn't do anything.
Is that making sense?
C
-
Brilliant minds think alike. I tried that along with several others... all silent.
I put back Trumpet #4, and it works great, lol. From past experience, IT'S ALWAYS LIKE THIS when I try to use published APIs!!!@librasun said in Vera Alexa Plugin 7.32:
Brilliant minds think alike. I tried that along with several others... all silent.
I put back Trumpet #4, and it works great, lol. From past experience, IT'S ALWAYS LIKE THIS when I try to use published APIs!!!Documentation sucks as well!
C
-
So, I've just tested it on a brand refactored Vera Edge. It installed correctly, setup all the things, downloaded the cookie and worked.
A couple of notes.
You could just this code:
luup.call_action("urn:bochicchio-com:serviceId:VeraAlexa1", "Say", {Text="Hello from Vera Alexa"}, 4)
and it will get the device from DefaultEcho and volume from DefaultVolume/AnnouncementVolume.
GroupZones is coming from the old Sonos service, but it's just Devices. I'll probably just rename it in a future update (while maintaining compatibility).Groups will work only if you enable announcements. But you need to enable them on your Echo device as well, not only by setting the device variable.
Sounds are not really supported, but you could try to make them via a routine, that's invokable via RunRoutine action.All that said, I just released a new minor version, where jq is installed automatically without bothering on 7.32. I've not packaged it yet, but you could just download L_VeraAlexa1.lua and replace it.
EDIT: and, rememberd, DebugMode set to 1 is your friend
You'll find the exact command sent to the script, and it will help a lot to troublshoot things.
-
So, I've just tested it on a brand refactored Vera Edge. It installed correctly, setup all the things, downloaded the cookie and worked.
A couple of notes.
You could just this code:
luup.call_action("urn:bochicchio-com:serviceId:VeraAlexa1", "Say", {Text="Hello from Vera Alexa"}, 4)
and it will get the device from DefaultEcho and volume from DefaultVolume/AnnouncementVolume.
GroupZones is coming from the old Sonos service, but it's just Devices. I'll probably just rename it in a future update (while maintaining compatibility).Groups will work only if you enable announcements. But you need to enable them on your Echo device as well, not only by setting the device variable.
Sounds are not really supported, but you could try to make them via a routine, that's invokable via RunRoutine action.All that said, I just released a new minor version, where jq is installed automatically without bothering on 7.32. I've not packaged it yet, but you could just download L_VeraAlexa1.lua and replace it.
EDIT: and, rememberd, DebugMode set to 1 is your friend
You'll find the exact command sent to the script, and it will help a lot to troublshoot things.
Plus, use the new neural voice, it's more natural. Just create a function like this one:
function say(text, r, volume, zone) luup.call_action("urn:bochicchio-com:serviceId:VeraAlexa1", "Say", { Text = '<amazon:domain name="conversational">' .. text .. '</amazon:domain>', Repeat= r or 1, Volume=volume or 50, GroupZones= zone }, 4) end say('I really didn’t know how this morning was going to start. And if I had known, I think I might have just stayed in bed.', 1, 50, 'My Echo device or group')
-
Plus, use the new neural voice, it's more natural. Just create a function like this one:
function say(text, r, volume, zone) luup.call_action("urn:bochicchio-com:serviceId:VeraAlexa1", "Say", { Text = '<amazon:domain name="conversational">' .. text .. '</amazon:domain>', Repeat= r or 1, Volume=volume or 50, GroupZones= zone }, 4) end say('I really didn’t know how this morning was going to start. And if I had known, I think I might have just stayed in bed.', 1, 50, 'My Echo device or group')
-
-
@therealdb said in Vera Alexa Plugin 7.32:
@catmanv2 yes!
Dunt work for me, but we know how rubbish my 'code' is
Lua Command execution on vera failed.(0||"[string "ALTUI - LuaRunHandler"]:1: <name> or '...' expected near 'repeat'"||)
C