Echo Devices (Alexa) as Media Player - Testers Needed

I deleted my account in the integrations page, and re-added my account and everything showed up including Alexa guard, so everything is great now. Thank you for your help

I tried this, but when I go to states and look at that echo, I no longer see the state as it is now unavailable, and I see no attributes after setting an alarm for that echo (see screenshot below). I wanted this to work for me because I’ve been unable to figure out how to extract the additional alarms times from that json string just as you described. Is that modification to sensor.py still working for you?

You shouldn’t actually need to make that change any more. A Jinja filter was added to Home Assistant, called from_json, so you can just use
{{ state_attr("sensor.kitchen_next_timer", "sorted_all") | from_json }}

See a more detailed example I added on the wiki here

1 Like

How did you get this to work? Tried the directions but I am getting an error. Any help would be appreciated.

Has anyone had any luck with an Echo Auto?

The media_player entity shows up but I’m unable to get it to respond to the notify.alexa_media service. Also the last_called attribute stays false after I give the echo a verbal command. The media_player has a hidden: true attribute, and I don’t know why. The state is “standby”. Here are the attributes:

is_volume_muted: false
media_content_type: standby
media_position_updated_at: 2020-03-25T00:03:37.094290+00:00
available: true
last_called: false
last_called_timestamp: null
friendly_name: xxxxxxxx's Echo Auto
hidden: true
supported_features: 56253

The device json:

{"accountName":"xxxxxxxx's Echo Auto","appDeviceList":[],"capabilities":["AUDIO_CONTROLS","DEREGISTER_DEVICE","CHANGE_NAME","ACTIVE_AFTER_FRO","SUPPORTS_LOCALE_SWITCH","FLASH_BRIEFING","FACTORY_RESET_DEVICE","LAMBDA_DOWNCHANNEL","AMAZON_MUSIC","SUPPORTS_SOFTWARE_VERSION","AUDIO_PLAYER","SUPPORTS_LOCALE","REMINDERS","TUNE_IN","FAR_FIELD_WAKE_WORD","I_HEART_RADIO","REQUIRES_OOBE_FOR_SETUP","SUPPORTS_CONNECTED_HOME","PAIR_BT_SINK","MICROPHONE","VOLUME_SETTING","EARCONS","AUDIBLE","KINDLE_BOOKS","PANDORA"],"charging":null,"clusterMembers":[],"deviceAccountId":"xxxxxxxxxxxx","deviceFamily":"ECHO","deviceOwnerCustomerId":"xxxxxxxxxxxxxx","deviceType":"A303PJF6ISQ7IC","deviceTypeFriendlyName":null,"essid":null,"language":null,"macAddress":null,"online":true,"parentClusters":[],"postalCode":null,"registrationId":null,"remainingBatteryLevel":null,"serialNumber":"G0Wxxxxxxxxxxxx","softwareVersion":"17105056"},

Edit:
I’m assuming since the Echo Auto doesn’t show up as a device to broadcast to from a routine in the Alexa app, its not possible. In order to get a routine to respond to a command given to the Echo Auto, I have to tell the routine to broadcast to “This mobile device”. I’m guessing that this component is unable to broadcast to “This mobile device” (which of course is my phone)?

Edit #2:
Maybe you can send a notification to the mobile phone as this closed issue talks about unless I’m mistaken:

Whenever I verbally give the Echo Auto a command, my last_alexa sensor goes blank. Perhaps I can always assume that when last_alexa is blank, any notification should be sent to the mobile phone. Now if I can figure out how to send a tts to my phone…

Edit 3:
So apparently I have a media_player.this_device_2 and it shows last_called:true and it shows it is in standby. However I’m unable to use the notify.alexa_media service to broadcast a message as it doesn’t respond. Any ideas? Here are its attributes:

is_volume_muted: false
media_content_type: standby
media_position_updated_at: 2020-03-25T01:33:03.007402+00:00
available: true
last_called: true
last_called_timestamp: 1585098636640
friendly_name: This Device
hidden: true
supported_features: 56253

Hello,

I keep getting this in my logs:

Logger: homeassistant.components.media_player
Source: components/media_player/__init__.py:904
Integration: Media player (documentation, issues)
First occurred: March 25, 2020, 12:25:31 PM (13 occurrences)
Last logged: 8:09:16 AM

The websocket command media_player_thumbnail is deprecated. Use /api/media_player_proxy instead.

Is this Alexa Media player related or do you think it is Mini Media Player related?

Seamus

I have tried this automation and it is working.
But is it possible to get a announcement if I have 1 minute left on the timer?


can someone help? Home-assistant says the following integrations and platforms could not be set up:
alexa_media

i am on the latest version of home-assistant

since yesterday alexa needs a huge time to execute scripts. First I thought that alexa didn’t understood the command and repeated it. And then, after 30 seconds suddenly the scrips were executed - both.

Are there any known issues, maybe at amazons servers?
Same scripts executed from ha gui either PC or mobile reacting accurate and fast.
I’m still on 106.6

@alandtse can you please help me?
Echo Devices (Alexa) as Media Player - Testers Needed

not sure if anyone ese has posted about this or not, but I cleared my devices on the Amazon website .except my echo’s and re-logged in to my app on my phones. After doing this I was not asked for the authentication via sms or email, just the captcha as normal.

No can’t help you, but yes it’s possible. You’ll need someone else to help you with automations in HA. I focus my time on the underlying code.

1 Like

HOW TO SHOW TEXT ON ECHO SHOW

team what is the trick to show text and speache on ECHO SHOW?

this is my failed trial. HELP

    - service: notify.alexa_media
      data:
        data:
          type: tts
          method: all
        target: 
          - media_player.echo_show
        message: '

Hi Vendo232. When you change the type to announcement, the message will be displayed on the echo show in addition to the speech.

Seems to be no issue:

Logger: homeassistant.config_entries
Source: helpers/entity_component.py:156
First occurred: 12:35:33 (8 occurrences)
Last logged: 12:35:39

Error setting up entry [email protected] - amazon.de for media_player
Error setting up entry [email protected] - amazon.de for alarm_control_panel
Error setting up entry [email protected] - amazon.de for switch
Error setting up entry [email protected] - amazon.de for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 216, in async_setup
    hass, self
  File "/usr/src/homeassistant/homeassistant/components/media_player/__init__.py", line 329, in async_setup_entry
    return await hass.data[DOMAIN].async_setup_entry(entry)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 156, in async_setup_entry
    raise ValueError("Config entry has already been setup!")
ValueError: Config entry has already been setup!

But what does it mean?

I did the same and it worked now. thank you for sharing

You are very welcome, hope it helps others too :slight_smile:

Hi All,

Question about this component, Guard and Ring Alarm. When I arm Guard through the Alexa app, it also arms the Ring Alarm; however, when I arm Guard through this component, the Ring Alarm is not “automagically” armed, but I’d like for it to be. Is this by design, limitation, etc., or am I missing a configuration parameter somewhere?

Thanks

Does this behavior also happen when you arm it through a routine you build in an app? I’m not referring to manually clicking the button. If it works during the routine, then we’d need more info to implement it.

Ring Alarm gets armed when I use an Alexa Routine. Hopefully the info below is helpful. I’m guessing I might have to unmask some of it:

{
    "@type": "com.amazon.alexa.behaviors.model.Automation",
    "automationId": "amzn1.alexa.automation.**********",
    "name": "Turn Guard On - lensherm",
    "triggers": [{
        "payload": {
            "payload.state": "AWAY",
            "payload.systemId": "**********",
            "filterExpressionParams": "payload.state,payload.systemId",
            "stage": "live",
            "customerId": "**********"
        },
        "id": "amzn1.alexa.trigger.**********",
        "type": "Alexa.Trigger.ProactiveEvents.RedRock.GuardStateChange",
        "timeLapse": null,
        "skillId": "amzn1.ask.skill.**********"
    }],
    "sequence": {
        "@type": "com.amazon.alexa.behaviors.model.Sequence",
        "sequenceId": "amzn1.alexa.sequence.**********",
        "startNode": {
            "@type": "com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode",
            "type": "controlGuardState",
            "skillId": "amzn1.ask.skill.**********",
            "operationPayload": {
                "locale": "en",
                "customerId": "**********",
                "target": "**********",
                "operationId": "controlGuardState",
                "state": "AWAY"
            },
            "tag": null,
            "name": null
        }
    },
    "owner": null,
    "clientAlias": null,
    "condition": null,
    "status": "ENABLED",
    "creationTimeEpochMillis": 1585589432111,
    "lastUpdatedTimeEpochMillis": 1585590868964
}