Home Assistant Community

Alexa addon

#1

Hi all,

I have Alexa connected via the home assistant cloud and I can control my lights, switches etc
but I can not get Alexa connected as a media player.

I have installed the files as per Keaton Taylor’s GitHub page and inserted

alexa_media:
  accounts:
    - email: !secret amazon_user
      password: !secret amazon_password
      url: amazon.com

into my config.yaml but all I get is a config error

Configuration invalidCHECK CONFIG

Integration not found: alexa_media

Is there some thing I am missing?

Thanks in advance.

#2

Lots of things missing.

What version of Home Assistant, type of install, & install platform?
What version of the Media Player files? How exactly did you install them? The instructions have varied over time.

I have it working with Hassio & version 0.92.2 with media player version 1.2.5.

#3

I am using Hassio 0.92.2 on a PI.

I created a file call custom_components then in that file, a file called Alexa_media.
I then put files callled

 _init_.py
 const.py
 media_player.py
 notify.py

and copied the raw data from the corresponding GitHub files.

I don’t know where to find the media player version, could you please advise.

Thanks

#4

Those files need to be in a folder names alexa_media. Notice the lowercase a.

#5

I have the files named as follows

Does that look correct?

#6

No
Grab the new version. There were some changes made for 0.92
I have manfest.json & services.yaml files too.

#7

Do these two other files go in the alexa_media file with the others?

Thanks

#8

Yes but to be safe, download the latest version from here.

#9

Ok thanks. I have copied the files from the link

It now looks like this

alexa

Does that look better

#10

My __init__.py file is only 1KB not 25 KB.

After successfully starting there will be a folder named __pycache__ created too.

#11

dunno if it’s just formatting here but the __init__.py file should have TWO underscores before and after the init part.

#12

I don’t know why it is a different size, I have not changed it in any way.

it looks like this now

Which is good news, but I still get a config error.

What did you put in the config.yaml file?

Thanks

#13
alexa_media:
  accounts:
    - email: !secret amazon_email
      password: !secret amazon_password
      url: amazon.com

nothing more needed if you are U.S.

#14

I’ll give it a try, but I am in the UK so could it require something different?

#15

try amazon.uk

#16

well all looked good no config errors, so I restarted HA and then got this notification

alexa

The link doesn’t work

#17

Yer talking to a damn Yank. You will need advice from your side of the pond now.

#18

Thanks for the help so far. It must be close to working surely.

#19

You could try `amazon.co.uk’. Here is the “official” support thread.

#20

I think you have cracked it.

I now have the captcha coming up but as I’m a fool I have entered the wrong email in the config file.

Corrected it now just waiting for a restart.

1 Like