Closed KHouse75 closed 2 years ago
While troubleshooting this issue by going through the previous releases of the alexa components by placing in custom_components, all worked as expected. After removing alexa from custom_components, the integrated copy no longer duplicates messages.
Closing this issue as everything is working as expected now.
Reopening because this is still occuring. The duplicate events started again shortly after closing this issue. Others on the Community site have also reported the same problem.
Update:
alexa documentation alexa source (message by IssueLinks)
Hey there @home-assistant/cloud, @ochlocracy, mind taking a look at this issue as it has been labeled with an integration (alexa
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
There was never a resolution and nobody bothered looking into it that I can tell.
I switched from notification to having alexa "Say" the message and it no longer duplicates.
This problem still exists, however. I just used a workaround.
I'm also a bit tired, because nobody seems to care about the problem. Maybe we're the only ones having the issue or using alexa's doorbell announcement ;-). As I already saied, after restarting homeassistant the announcements where played only once. The problem occours after the alexa skill starts a discovery event. After that there must be shomething happen on the homeassistant eventbus. Because as we can see in the logfile homeassistant sends two events with different ids to the alexa proactive event api. @balloob What information can we deliver to fix the issue? Thanks a lot!
I'm also a bit tired, because nobody seems to care about the problem. Maybe we're the only ones having the issue or using alexa's doorbell announcement ;-). As I already saied, after restarting homeassistant the announcements where played only once. The problem occours after the alexa skill starts a discovery event. After that there must be shomething happen on the homeassistant eventbus. Because as we can see in the logfile homeassistant sends two events with different ids to the alexa proactive event api. @balloob What information can we deliver to fix the issue? Thanks a lot!
Same here...When I restart home assistant, I only get 1 announcement. Once alexa does a discovery or I tell her to discover new devices, she duplicates announcements and I see duplicate ids when an event is triggered in home assistant.
I had this issue too but when I realized no fix was imminent I just switched to using the Alexa Media Player custom component through HACS. I haven't had any problem since then.
I tried a custom Alexa integration and it would stop working and kept prompting with a captcha to re-authenticate. Eventually, it locked out my amazon account and I had to reset my password. Some mentioned that after switching the 2fa the problem stopped but I moved to an alternative which was to create ESP8266 based devices that receive an audio stream and play it through a speaker. That was a pain to manage so I switched to the alexa integration with home assistant.
I could reproduce the issue locally and have added a fix (see #74930). Feel free to test the code there.
The problem
A couple days ago, I upgraded to core-2022.3.1. Ever since, it appears that duplicate events with different messageIDs are being sent to the Alexa cloud when devices change state. For example I have a binary sensor for my washing machine configured and exposed to the Alexa Smart Home Skill Integration to get announcements when my washing machine cycle is complete. Because of the duplicate events, I get two Alexa announcements instead of just one. My previous HA version was core-2021.9.0
From looking through the logs, the Alexa component is duplicating everything. I've provided some of the log showing the duplicate entries.
What version of Home Assistant Core has the issue?
core-2022.3.1
What was the last working version of Home Assistant Core?
core-2021.9.0
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
Alexa Smart Home Skill Integration
Link to integration documentation on our website
https://www.home-assistant.io/integrations/alexa.smart_home/
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?