keatontaylor / alexa-actions

A README and associated code to get actionable notifications setup for Alexa devices.
GNU General Public License v3.0
399 stars 187 forks source link

[Bug]: Randomly won't listen for answers #187

Closed PaulBiod closed 1 year ago

PaulBiod commented 1 year ago

Did you check our FAQ and Issue/PR for similar issues?

Contact Details

scriptsgratuits@gmail.com

What happened?

Randomly, when I use the actionable notification for more than one question (exemple : do you want to switch on the fan ? -> yes -> which fan speed do you want ? -> One)

At the second question, or the third, even when I add delays between questions, the echo show won't listen to my answer, I mean, the blue line on the bottom of the echo that shows you alexa is listening won't appear.

Version

the last

What Alexa device are you using?

Echo Show

What other Alexa device are you using?

No response

Relevant log output

I have nothing related to the issue on the HA logs
PaulBiod commented 1 year ago

I realised I am using the 0.8.2 version. How is the update process ? I have to replace the lambda files in the amazon dev console ? thanks

DEADSEC-SECURITY commented 1 year ago

I would suggest recreating the skill @PaulBiod with version 0.9 or the master branch.

master branch has untested features so proceed but expect bugs or issues.

PaulBiod commented 1 year ago

Hi, I installed the skin on April, 20th So I guess it was the last version, right ? If not, I didn't see any differences on the lambda_function.py since 0.8.2. You said to recreate the skill, but if I recreate it, it will be the same files (except locals but it doesn't make any difference I guess, I am using fr_FR) As you can see in the video, the second question is not expecting an answer (blue line not present). I tried adding a 40 seconds delay between the 2 questions, no results..

Capture

Capture d’écran 2023-06-29 024350

https://github.com/keatontaylor/alexa-actions/assets/28720176/a147a1aa-68a6-4a6f-8cd2-38c80e3249f4

DEADSEC-SECURITY commented 1 year ago

Did you recreate the skill with 0.9.1? Like actually reset everything and start again?

PaulBiod commented 1 year ago

The thing is, what's the difference between the version I installed in April, and the latest one ? cause the only difference I see is the local files, the lambda_funcion.py is the same that I have (0.8.2) So maybe instead of recreating something that I actually have, isn't it possible to just update the files that need update ? Thanks

DEADSEC-SECURITY commented 1 year ago

The fresh install will do much more then update the code, it will clear caches, configurations etc which is intended cuz if it works the second time it couldve been because you miss configured something from the start.

PaulBiod commented 1 year ago

I forgot to mention that I have automations that work perfectly (with 10 seconds between the questions), and next day, they won't. It's really random, but one of them (2 questions, the one you see in the video) never worked for the second question. If it was a problem of configuration, it would never work I suppose. Have to mention also, that I had to change the file with the intents cause strings and numbers were not working correctly (fr_FR) and now they work, that 's why I m not very pleased with the idea of install from scratch. With a google search, I saw that some people had the same problem, and solved it with a delay between question, that s what I did, but it randomly fail I m not sure what to do..

DEADSEC-SECURITY commented 1 year ago

Dude can you just do what I asked and give me feedback?

PaulBiod commented 1 year ago

So, I found the problem. Let me explain :

Test 1 : first question = > response Yes => delay 10 seconds => question 2 : it works

Test 2 : first question= > response Yes => send a notification via alexa show => delay 10 seconds => question 2 : it fails

test 3 : first question= > response Yes => delay 10 seconds => send a notification via alexa show => delay 10 seconds => question 2 : it works