Alexa.py custom_component cannot exclude devices

Hi,
I’m using the alexa.py custom_component.
It’s working a little too well and currently lists over 15 alexa enabled devices and apps from amazon (my sister, my father and I are all on the same account).
I tried excluding the devices that aren’t mine with:

- platform: alexa
  email: !secret amazon_user
  password: !secret amazon_pass
  url: !secret amazon_urls
  exclude_devices:
    - media_player.aram_s_alexa_apps

Among many other media_player entities. But they still show up.
I decided to reverse it and just include_devices that I want and remove the exclude but then no entities are being created.

Thanks.

Here is what I did.
Goto https://alexa.amazon.com/api/devices-v2/device
(and Login to your Alexa account)
You should get returned a long JSON string that looks something like:

{“devices”:[{“accountName”:“ALEXA DEVICE NAME”,“appDeviceList”:,“capabilities”:["VOLUME_SETTING, blah blah…

(where ALEXA DEVICE NAME is your devices’ real name).

If you have multiple Alexa devices you should see multiple accountName entries.
Each “accountName” has the device of interest ALEXA DEVICE NAME, so find the names you want to exclude and then configure it as:

exclude_devices:  
  - "ALEXA DEVICE NAME" #include the quotation marks

hope that works for you.

1 Like

That was it. Thank you very much.