Echo Devices (Alexa) as Media Player - Testers Needed

yes the routine started

Hm, I just made a new routine with a different Radio Station, see above (Ibiza Beats), and it works as well.

Try setting the routine to “the device you talk to” and check logs as well.

1 Like

Yes, i’ll try your mod, it’s ok.
I deleted everything, redid everything and now it’s ok. I don’t know what happened…
thanks

1 Like

Preface: I tried searching this thread/google and didn’t see anything quite like what I’m dealing with… If I missed it please point me that way!

I’m having a weird issue relating to announcements getting prevented by Amazon Kids Free Time. I have had this integration (which is amazing by the way) setup and running on the echos all over my house. I have used it for playing music/alarms/announcements (all triggered from node red) without any real issue for the better part of a year.

My daughter let me know today that they don’t hear the announcements on their echo dot (same thing on my son’s dot). In their rooms and the bathroom, I have it set to turn up the volume, announce, and turn back down. It looks like it’s doing the volume adjustments, but refusing to do the actual announcement on either of the kids dots, but works find on the bathroom flex. The announcement is going through the entire house except there, so they’ve just been silently living with this for who knows how long. I did some testing, bypassed the volume adjustments to see if that was the issue (nope). I double checked in the settings in the alexa app that those devices could accept announcements (yep). I checked that the kids individual free time profiles will accept announcements (yep). So I was really scratching my head. I even turned off my Adguard thinking maybe some weird kids thing was being blocked (no change). Finally, I disabled free time entirely for one of the dots, and it came through perfectly even with the volume changes. Turned free time back on, and nada.

Is there a flag/something somewhere anyone can think of that’s preventing this from working with free time engaged? I don’t want to turn off free time entirely, as it gives them kid specific skills they like and it enforces the explicit music filter which I like. Any help is greatly appreciated!

i think you need to contact amazon for that.
tell them that you created routines that dont work on devices where you activated free time.

Hi guys … I need help. The integration won’t let me uninstall it. I was getting an error at startup…

Setup failed for alexa_media: Integration not found.
11:24:21 PM – (ERROR) setup.py

The integration under ‘integrations’ simply states “! not loaded” but has no option to delete. I have commented out the login parameters from configuration.yaml and no change after restart.

You deleted the integration from HACS before you removed from HA. Reinstall in HACS.

1 Like

Hi All,

my both echo’s are stopping to announce al the things. I really don’t know where to search…

I created this test automation. When turn on or off the switch it must say something.
Isn’t working anymore. use HA 2021.6.1

Alexa Intergration 3.10.5

- id: "test_automation"
  alias: "TEST - TEST"
  trigger:
    - platform: state
      entity_id: switch.newkaku_014e5906_a

  action:
    - service: notify.alexa_media
      data:
        target: media_player.echo_lvingroom
        message: "This is a weekly test of the announcing system."
        data:
          type: announce
          method: all

In past you can click on the mediaplayer device in locelance and get a popup. There was a option to enter text and when it the button Alexa always say a standard text something with: you need to use the Alexa app… That option to enter the line is gone.

Both echo show: standbye also… don’t know If this is ok.

When change the volume on the mediaplayer device in Lovelace I hear a sound on the echo and hear the volume change. SO there is a interaction with the integration and the both echo’s

Then I get error message:

2021-06-05 09:51:18 ERROR (MainThread) [homeassistant.helpers.script.websocket_api_script] websocket_api script: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 368, in _async_step
    await getattr(self, handler)()
  File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 568, in _async_call_service_step
    await service_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1491, in async_call
    task.result()
  File "/usr/src/homeassistant/homeassistant/core.py", line 1526, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/components/notify/__init__.py", line 159, in _async_notify_message_service
    await self.async_send_message(**kwargs)
  File "/config/custom_components/alexa_media/notify.py", line 216, in async_send_message
    if data["type"] == "tts":
TypeError: 'NoneType' object is not subscriptable

Hi,
did you turn on Alexa Guard in the App?

I’m in Netherlands. I don’t have Alexa Guard in my app.

Ok.
I would completly remove the integration (if the folder in custom_components was not removed, remove it too) and reinstall it.

I removed the integration and the HASC part. Reinstalled all… didn’t work.
I didn’t try to remove the folder if it was there. Let me do it again.

EDIT: After remove the integration and HASC the folder is already deleted. So that is not the problem.
Now reinstall HASC and intergration. And im back with same issue

Dont know what happen… Did last HA core update was available since yesterday… now it work again…

I renamed the entities and since then seems to be a problem with the notify service.
Now didn’t change it and it work.

You renamed them in HA?
I’m not sure this should be done. AFAIK it’s adviced to use the names as they are in Alexa.

in HA you can rename the entities. Maybe this is not working for Alexa.
Ill keep it as it is for now

Hey guys,

Trying to run a routine from a call service node (Node Red) and getting this error.

Call-service error. extra keys not allowed @ data['media_content_id']

Im coping the JSON format from the github doco, no idea why it dosent like it?

{"entity_id": "media_player.bathroom", "media_content_id": "good morning", "media_content_type": "routine"}

Any ideas?

Thanks guys

EDIT! Got it, I had media_play and notplay_media

Family has loved the Alexa integration into HA especially for things like the lights. Recently one of my Alexa devices started acting weird. Like It’s in the family room and have lights in the ceiling in the family room. Both are hooked up with HA, the lights are Z-Wave controlled. I can say things like:

Alexa, turn the lights on
Alexa set the lights to 100%
Alexa set the family room lights to 100%
Alexa set the lights to 30%

All this worked. Now in the family room it only responds to referencing “Family Room” in the request when you want the lights at 100%. For 30% you don’t need to mention Family Room right now though. If I ask her to set the lights to 90% she starts playing music. Any idea why this may be happening? In the logs of Alexa I get things like, when starting a foot away from it:

Audio was not intended for this device
Audio could not be understood

Listening to the voice recordings the audio is very clear of what is being asked. Guessing this is an Amazon issue but thought I’d try here rather than trying to reach that behemoth and listen to their horrible support.

I have a problem re-authenticating with Amazon. 2FA is enabled on Amazon and used to work using an authenticator app on my phone (requiring re-authentication every month or so). I recently switched from manual installation to HACS, and now the first authentication renewal came up; and I’m stumped what I’m doing wrong.

  • I’m getting the notification “Re-authentication required”.

  • I click on “Configure” for Alexa Media Player on the Integrations page.

  • I get the following form:

  • Now I attempt to enter the 2FA code from my phone app in the “2FA Code” field and click “Send”, which gives me the following error message:
    grafik

The linked webpage does not actually help me a lot, since I did enter a valid 2FA code.

Next attempt:

Clicking “Send” gives me an unknown error:
grafik

Entering the Amazon 2FA app key and clicking “Send” opens this window:
grafik

Checking the checkbox and entering the 6-digit code on Amazon’s authenticator app adding page, then clicking “Send” gives another unknown error:
grafik

I’m at my wits’ end - I have no idea what else I could try or where I’m going wrong.
Does anyone have advice on what to do?