Alexa - Excluding entities

Hi there

I am trying to exclude certain entities and domains from being discovered by Alexa. Everytime I discover new devices on Alexa its still finding everything from my HA. Below is whats in my config.yaml file. Can anyone help?

Thanks

 alexa:
  filter:
   include_entities:
    - media_player.living_room_tv
    - media_player.denon_avrx2000
   include_domains:
    - media_player
   exclude_entities:
    - group.all_lights
    - group.all_switches
    - group.main_bedroom_view
    - group.main_kitchen_view
    - group.main_livingroom_lights
    - group.main_livingroom_view
    - light.light_1
    - light.light_2
    - media_player.bedroom
    - media_player.kitchen
    - media_player.kodi
    - switch.lamp
   exclude_domains:
     - light
     - group
     - switch     
  entity_config:
      media_player.living_room_tv:
        name: TV
        description: The TV in the living room```

Did you set up the Alexa cloud before applying the filters? That’s what I did and found once it’s pulled something through it’s not subsequently removed by the filter.

I had to go onto the Alexa website to properly delete everything I didn’t want. Once that was done the filter stops it being pulled through again

1 Like

I assume you are using Hue emulation? I run HA on Raspbian and did the following
I ended up doing this. (Sample of my customize.yaml)

sensor.everspring_st812_flood_detector_flood_22_5:
   friendly_name: Downstairs Bath Leak Detector
   emulated_hue_hidden: true

sensor.everspring_st812_flood_detector_flood_28_5:
   friendly_name: Middle Bath Leak Detector
   emulated_hue_hidden: true

script.house_thermostat:
   emulated_hue_name: "House Thermostat"
   emulated_hue_hidden: false

group.foyer:
   emulated_hue_hidden: true

switch.offon:
   emulated_hue_hidden: true

script.timed_lamp:
   emulated_hue_hidden: true

switch.garage_pir:
   emulated_hue_hidden: true

group.steam:
   emulated_hue_hidden: true

group.all_remotes:
   emulated_hue_hidden: true

Correct I did do this, many thanks for this tip. I will head to alexa website and try this now.

This worked. Thanks so much

This has been bugging me for the last two nights, Thought there was an error in my config.yaml file.

Thanks again for your help.

Josh

I’m having the same issue (and yes, I’ve had Alexa forget and re-discover my devices several times). No matter what I do, it includes EVERYTHING. I don’t want it to see my automations, for example, yet they always are found. Here’s my config. I’ve tried having exclusions first, then inclusions, but it doesn’t make a difference. It still finds everything.

cloud:
  alexa:
    filter:
      include_domains:
        - light
        - switch
      include_entities:
        - script.night
        - group.basement_lights
        - group.kitchen_lights
        - group.bar_lights
      exclude_domains:
        - automation
        - group
        - script
        - sensor
        - media_player
      exclude_entities:
        - switch.basementmaster_switch
    entity_config:
      script.night:
        description: A script to enable night mode

image

Have you found any solution? I am facing the same issue.

Hey

You need to log into Alexa via the web and manually remove all the devices you dont want. Once you done this and as long as you have excluded the groups/components you no longer wont, it shouldn’t re-discover them next time you try search.

This one was annoying the hell out of me.

1 Like

Is not working for me… also forgetting devices form Web UI… someone found a solution? It’s so annoying

I too face the same problem. I have a VeraPlus, I used HA-Bridge to publish vera devices and scenes as HUE-lights and was hoping to be able to discard that system and only use HASS as the common denominator for my smarthome.
I am trying to exclude (as a test) this Vera device:
# Cloud
cloud:
_ alexa:_
_ filter:_
_ exclude_entities:_
_ - switch.fgs222_bad_307_
I deleted all devices in Alexa (in a webbrowser), disabled the Alexa integration, restarted HASS, ran discovery again. No matter what I do, all devices found in HASS are discovered in Alexa.
Grateful for any suggestions,
/Mike

This drove me crazy, but I just didn’t read… there are 2 occurrences of alexa: in the config:

# Cloud
cloud:
  alexa:
    filter:
      include_domains:
        - cover
      exclude_domains:
        - automation
# WOL
wake_on_lan:

# Alexa
alexa:

Just stick it under the cloud component