Echo Devices (Alexa) as Media Player - Testers Needed

Try it the same way with the echos.
Ok, I checked it.
I don’t have sonos but I thing it’s not exactly the same way.
I would create scripts for each media_player in order to control the volume.
These scripts can be added to a entities card as well as the group media player.

Well I’ll be…

Its’ not quite as good as sonos I guess, because you have to initialize stream on everywhere group to play there, but still very helpful. Thanks!

It won’t hurt if you delete and readd as all entity_ids will be the same. However, make sure you’ve deleted the configuration.yaml entries because they will always update the integration’s config entries if any settings are found in configuration.yaml. You could check your config/.storage/core.entity_registry to see if it’s disabled in there.

Thanks. I won’t add that patch then so it doesn’t break your automation.

I have been exploring all that this can do, however I have not found a way to call a specific action associated with a skill. For example I am trying to get my ring doorbell to show on my echo when the doorbell is pressed. I need to say “show me the front door” for this to work, but I have not found a media_content_type that will work (using play_media).

Is there a workaround I am missing, a way to send any command?

Unfortunately there is not, that’s something that I also want. I would love to send a command to start my car but because I need to say a PIN number it won’t work.

You could however look into Home Assistant Cast, if your ring or motion sensor is connected to HA you could cast the camera image onto the tv. You do need a chrome cast for this but they are reasonably priced.

here is my problem … how come one is seen as a speaker and the other is not?

Well this thread is a bit long but questions.

When I was using OpenHAB and was doing an announcement with TTS I it had a separate volume for notifications that I could control for each Echo device. So if it was playing music it had a separate volume level than a notification. Can we do this?

Also is there a way to access the current volume level of the device or preferably the notification volume, store that, make the announcement, and then set it back to whatever it was at?

1 Like

Guard alarm not working in latest Beta 0.103.0b0, let me know if you need logs
Looks to be realated to https://github.com/home-assistant/home-assistant/pull/29065

Does this still work for you? Besides not seeing a volume_level attribute with Alexa devices, when I try what you posted I just get 0.0 which is the same if I put anything in for the variable. Like if I put vollllume_level it shows 0.0 still.

I have three echo devices and only the plus is seen as a speaker, the other two (show and spot) have the same behaviour as yours…

1 Like

Hi All,

I recently installed the newest version of the component and now my “last called” function isn’t updating. I have automations that respond with a text output from the echo where the question was asked, and it’s not working now. The “last called = true” is stuck on one particular echo in the house.

Any ideas?

Found a way to automate my fire tv to show the front door when the ring doorbell (or any sensor in hassio) is pressed! I created a virtual echo via bespoke.io (an amazon partner) and grouped it with my fire tv stick in smart home devices. Now I can tell it via a message to “show me the front door” and it will come up on the fire tv! I can also send the message “show me the front door on echo show” and it will show it on the show!

It wont talk back as it is a virtual echo, but you could likely send it two messages (the second with a pin) to start a car.

Info found here:
Send Commands to Alexa

1 Like

I am getting always when restarting HA these errors:

2019-12-06 19:15:58 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry mauriziofxxxxxxx@xxxxxxx - amazon.it for media_player
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 192, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 340, in async_setup_entry
    return await hass.data[DOMAIN].async_setup_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 151, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2019-12-06 19:15:58 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry mauriziofxxxxxxx@xxxxxxx - amazon.it for alarm_control_panel
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 192, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/alarm_control_panel/__init__.py", line 74, in async_setup_entry
    return await hass.data[DOMAIN].async_setup_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 151, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2019-12-06 19:15:58 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry mauriziofxxxxxxx@xxxxxxx - amazon.it for switch
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 192, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/switch/__init__.py", line 79, in async_setup_entry
    return await hass.data[DOMAIN].async_setup_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 151, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!
2019-12-06 19:15:58 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry mauriziofxxxxxxx@xxxxxxxx - amazon.it for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 192, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/sensor/__init__.py", line 60, in async_setup_entry
    return await hass.data[DOMAIN].async_setup_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 151, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!

How to get rid of them?

And more, one doubt. Is still needed the entry regarding alexa media_player inside configuration.yaml or not?

Hello all…I am newer than baby yoda here, so bear with me (I DID do extensive searching before I posted)…all that out of the way, here we go…

I have the Alexa integration working, and the alexa.notify script is working on my Echo dot, but NOT on my Ecobee thermostats. As far as I can tell, the Ecobee’s work for everything else (I can see/play the media playing on them, etc)

Is there something that has to be done differently when pushing the (below) script to an ecobee, as opposed to an Echo Dot?

zack_home_announcment:
  alias: Announce Zack is home
  sequence:
  - data:
      data:
        method: speak
        type: announce
      message: Front door is open
      target: media_player.main_floor
    service: notify.alexa_media

Thanks for your input!

~Z

Edit: I did just notice that there is a difference between the Echo Dot and the EcoBee…the Echo dot has “Local Speaker” selected as the source, whereas the EcoBee’s are blank and unselectable.
Could that be an issue?

EDIT 2 - Changed type: ANNOUNCE to type: TTS, and they all magically worked!

1 Like

I’m getting an error when adding the component:

Platform error notify.alexa_media - cannot import name 'CONF_EMAIL' from 'custom_components.alexa_media' (unknown location)

I’ve added the integration and logged in with the captcha. Do I need to do something else?

Hi, I don’t know if it’s the right section. I tried to insert the media player alexa into the custom component gmusic, but it doesn’t work. Can anyone help me or can’t it be done?

Posted this separately as this thread is just insane to find things in, but didn’t get a reply yet so thought I’d try. I setup this component thru HACS. During setup I filled in the included devices field by name. I assume I need to add this new one in there but no idea where to put it. Please tell me I don’t have to reinstall the component. :slight_smile:

I originally had the alexa_media component configured via configuration.yaml, but have now switched over to using the config flow to make configuration easier (less restarts) but I’ve had a couple of issues:

  1. I can’t find a way to change the included/excluded devices after the initial configuration without deleting and re-adding the integration. Is this the only way this can be done.
  2. If I disable the unwanted entities in Home Assistant instead (from the Integrations or Entities pages) this still leaves the notify services for these. Do you know if these can be disabled in any other way?

That may be a bug and we’d need logs to diagnose why. Is that the only broken functionality?

Thanks. We have an issue tracking.

Is everything working? Has the .pickle file expired requiring a deletion and relogin?

It’s a cosmetic error and not high priority to fix.
No you don’t need configuration.yaml anymore.

I saw you figured it out but it’s a known issue where non Amazon devices lost Announce. You can only use TTS at this point.

Would need logs to diagnose but something didn’t load properly.

You have to delete and readd. It won’t impact any scripts/automations though as everything will be readded with existing entity_ids.

  1. See answer to jriker above.
  2. Notify is weird in HA like device_tracker so I don’t believe it has the disable functionality yet.
    Probably should open a issue with HA to have them figure out how they want to handle it. While we could probably add some functionality to try to remove them if the media player entity is disabled, it seems a bit hackish to rely on components to figure it out.

Thank you for confirming!