Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Notification to Everywhere not working #2484

Open
madner81 opened this issue Aug 24, 2024 · 22 comments
Open

Notification to Everywhere not working #2484

madner81 opened this issue Aug 24, 2024 · 22 comments

Comments

@madner81
Copy link

Describe the bug

Notification to Everywhere does not work

To Reproduce

  1. Go to Developer Settings/Actions
  2. Create an action of type Notification: send a notification via alexa_media_alexa_everywhere
  3. Fill the message field with any text
  4. Fill the data field with type: announce

Expected behavior

The text set in the message field is reproduced by all the devices belonging to the intergration

System details

  • Home Assistant version: Core 2024.8.2, Supervisor 2024.08.0, Operating System 13.1, Frontend 20240809.0
  • alexa_media version (from const.py): 4.12.11
  • alexapy version (from pip show alexapy in homeasssistant container or HA startup log): cannot find it
  • Is Amazon 2FA enabled (y/n): y
  • Amazon Domain: amazon.it

Additional context

The same actions works fine if it's invoked to a specific target device

@PJLLB
Copy link

PJLLB commented Aug 24, 2024

EDIT UPDATE: *** *** UPDATE 2024-08-25: AGAIN: It's broken again. Intermittent functionality.

And suddenly everything is working again. This must have been an issue on Amazon's side since I have not done anything except test (no Home Assistant configuration changes).

I'm seeing this too. I first noticed it in automations I have that are supposed to announce. It's not just to the Everywhere group, it's also to some individual Echo devices. I tested using the Developer Tool Actions function and there works sometimes, sometimes not. Reliable execution is very intermittent.

Some Echo devices are working reliably (the Echo and Echo Flex play the announcements reliably, and some Echo Show 8s and 5s play the announcement and show it on the screen), but others either do not show or play the announcement (both some Echo Show 5s and some Echo Show 8s). Yesterday 8/23/2024 everything was fine. I have updated to the latest Alexa Media Player integration, and Home Assistant is up to date.

@metalmarco
Copy link

I'm in Italy.
For me it stopped working 2 days ago.
After rebooting Home Assistant, it worked for 10 minutes and then asked for reconfiguration.
Yesterday it worked non-stop for 6 hours, but not it's broken again.

@danielbrunt57
Copy link
Collaborator

I'm in Italy. For me it stopped working 2 days ago. After rebooting Home Assistant, it worked for 10 minutes and then asked for reconfiguration. Yesterday it worked non-stop for 6 hours, but not it's broken again.

This certainly sounds like it might be a case of Amazon dynamically throttling requests based on server demand/workloads, in which case there's nothing I can think of doing to compensate.......

@metalmarco
Copy link

I'm in Italy. For me it stopped working 2 days ago. After rebooting Home Assistant, it worked for 10 minutes and then asked for reconfiguration. Yesterday it worked non-stop for 6 hours, but not it's broken again.

This certainly sounds like it might be a case of Amazon dynamically throttling requests based on server demand/workloads, in which case there's nothing I can think of doing to compensate.......

Just an update. It looks like it's working now. I've not being having issue in the last 10 hours... 🤞

@GAguado
Copy link

GAguado commented Aug 28, 2024

I'm in Italy. For me it stopped working 2 days ago. After rebooting Home Assistant, it worked for 10 minutes and then asked for reconfiguration. Yesterday it worked non-stop for 6 hours, but not it's broken again.

This certainly sounds like it might be a case of Amazon dynamically throttling requests based on server demand/workloads, in which case there's nothing I can think of doing to compensate.......

And what do you think could be the reason why with core 2024.7.xx does not happen?

@maxpoz1
Copy link

maxpoz1 commented Aug 28, 2024

Hi, I'm in Italy, until 10 days ago everything was working, it stopped working when I installed the latest HA updates (I hadn't updated for 2 months)

@federicotravaini
Copy link

Hi, I'm in Italy and I can't use notify.alexa_media at all anymore.

@danielbrunt57
Copy link
Collaborator

Hi, I'm in Italy, until 10 days ago everything was working, it stopped working when I installed the latest HA updates (I hadn't updated for 2 months)

The last time AMP and HA played well together was HA core 2024.6.2. Issue #2288 started with HA core 2024.6.3.

@PJLLB
Copy link

PJLLB commented Aug 28, 2024

I really think this is an Amazon issue, not Home Assistant. I had updated everything in Home Assistant several days before the issue started and all Alexa Media notifications for the Everywhere group worked fine, so I don't think it is the recent Home Assistant update. A few updates ago (to 2024.8) the Alexa Media Player did break (it didn't work at all), but the integration was quickly updated and that fixed the problem. So to maxpoz1 and federicotravaini, I would ensure that the Alexa Media Player is current. It's sometime easy to miss an update to a HACS custom integration like Alexa Media Player.

When this issue began, I noticed that with the Everywhere group the Echo devices (Dot, Full-sized Echo, and Flex) worked fine, but the Echo Shows and Fire TV devices did not consistently work. The Shows and Fire TV devices reliably displayed the text of the notification, but did not play the sound. That said, I'm now getting fairly reliable functionality (text and audio) with the Everywhere Alexa group on all of my thirteen devices. Since, when using the Alexa Media Player in Home Assistant, you select a specific Alexa device (or group, which it seems to me to be the same thing as sending to one device versus a group as each is just a device from a Home Assistant perspective) I think this is on the Amazon side of the interface. It's more how Amazon send things to the individual devices in the Alexa device group.

Amazon has on occasion changed how audio is sent to its Alexa devices for optimization and performance purposes (such as synchronization across multiple devices for Everywhere group playback), sometimes even breaking some functionality and then fixing it. With regard to dynamic throttling, I could be wrong but I don't think Amazon would do this to their own services running on the Amazon Web Services platform. I've even seen that during some period direct Alexa voice interactions are a bit slow, which to me indicates an issue that is not throttling-related but rather some system update that broke something that quickly gets fixed.

@danielbrunt57
Copy link
Collaborator

@PJLLB I do think the servers in the EU region are slightly different than NA and that other one (the xx code escapes me at the moment).

@alessandroarosio1977
Copy link

Seems to be a Integration issue because ALL type of notification by HA to Alexa devices not working. Before to update AMP to last release, issue was related to the authentication. Now the re authentication message doesn't appear more, but notification by HA automations doesn't work. I tried to notificate a message to a lot of kind devices (echo, echo show, fireTV and so on) but nothing.
Once HA restart, integration and notification go up but after 10 minutes all return to unworking.
I read on this GIT of people that tried to change integration files as workaround. I hope to have this problem fixed without changes of files manually due I'm a newbie and I prefer to wait official patch.

@maxpoz1
Copy link

maxpoz1 commented Aug 29, 2024

I really think this is an Amazon issue, not Home Assistant. I had updated everything in Home Assistant several days before the issue started and all Alexa Media notifications for the Everywhere group worked fine, so I don't think it is the recent Home Assistant update. A few updates ago (to 2024.8) the Alexa Media Player did break (it didn't work at all), but the integration was quickly updated and that fixed the problem. So to maxpoz1 and federicotravaini, I would ensure that the Alexa Media Player is current. It's sometime easy to miss an update to a HACS custom integration like Alexa Media Player.

When this issue began, I noticed that with the Everywhere group the Echo devices (Dot, Full-sized Echo, and Flex) worked fine, but the Echo Shows and Fire TV devices did not consistently work. The Shows and Fire TV devices reliably displayed the text of the notification, but did not play the sound. That said, I'm now getting fairly reliable functionality (text and audio) with the Everywhere Alexa group on all of my thirteen devices. Since, when using the Alexa Media Player in Home Assistant, you select a specific Alexa device (or group, which it seems to me to be the same thing as sending to one device versus a group as each is just a device from a Home Assistant perspective) I think this is on the Amazon side of the interface. It's more how Amazon send things to the individual devices in the Alexa device group.

Amazon has on occasion changed how audio is sent to its Alexa devices for optimization and performance purposes (such as synchronization across multiple devices for Everywhere group playback), sometimes even breaking some functionality and then fixing it. With regard to dynamic throttling, I could be wrong but I don't think Amazon would do this to their own services running on the Amazon Web Services platform. I've even seen that during some period direct Alexa voice interactions are a bit slow, which to me indicates an issue that is not throttling-related but rather some system update that broke something that quickly gets fixed.

I updated from some previous version, never had any problems before. On the first reboot I had problems. I updated Alexa but the problem persists

@elax46
Copy link

elax46 commented Sep 8, 2024

I am also joining the discussion as I am also having problems with the component not working. I would like to point out that I have updated it to the latest version and that I have HA at version 2024.09.01

@PJLLB
Copy link

PJLLB commented Sep 8, 2024

Audio announcement notifications are mostly working, although not always on devices that have a screen (Echo Show 5 and 8). On those the text of the announcement is usually correctly displayed but no audio announcement is made for these announcements. This seems to happen when there are other audio events going on, for example a nearly concurrent Ring alarm ding on sensor open or another Home Assistant that also sends and audio announcement. It's as if Alexa on the screen devices can no longer handle nearly-concurrent audio announcements even though they will usually display the test of an announcement. And when announcements/notifications get stacked up, the sequence of play that all will be played is not predictable or reliable. It's as if Alexa gets overwhelmed and confused, not uncommon. She's not very smart lately.

@monxas
Copy link

monxas commented Sep 9, 2024

I'm in the same boat, also in EU. it works sometimes. No errors, gives sucess flag when ran manually, just no message.

@elax46
Copy link

elax46 commented Sep 10, 2024

I'm in the same boat, also in EU. it works sometimes. No errors, gives sucess flag when ran manually, just no message.

same exact condition as you I tried just today to do some tests and it does the exact same thing

@martin3000
Copy link

type: announce does not work, whereas type: tts works.

@maxpoz1
Copy link

maxpoz1 commented Sep 20, 2024

I solved It with disable Polling function in Alexa integration. Now work

@PJLLB
Copy link

PJLLB commented Sep 20, 2024

type: announce does not work, whereas type: tts works.

Could you post your yaml code? I can't get TTS to work.

@martin3000
Copy link

action: notify.alexa_media_echo_dot
data:
  message: hello
  data:
    type: tts

@elax46
Copy link

elax46 commented Sep 21, 2024

I use tts in a script that I then call in an automation it has always worked now it doesn't work anymore. if I force the script to run manually it works in automation no

sequence:
  - entity_id: script.alexa_set_volume
    action: script.turn_on
  - delay: "00:00:01"
  - data_template:
      target:
        - media_player.xxxx
        - media_player.xxx
      message: |-
     message
      data:
        type: tts
    action: notify.alexa_media
mode: single

@lorenzo-randisi
Copy link

I solved It with disable Polling function in Alexa integration. Now work

Work for me !! Thank you so mouch!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests