thomasloven / lovelace-auto-entities

🔹Automatically populate the entities-list of lovelace cards
MIT License
1.24k stars 113 forks source link

exclude functions now working on switch domain #283

Closed sevagjb closed 2 years ago

sevagjb commented 2 years ago

I create to deferent cart one for the lights and one for the switches, i have some lights i need to exclude it from the card and it works perfectly but in the switches dos not work i don't understand the reason at all, i put the to cards below to see if there a problem to fix i hope you can help!!.


type: custom:auto-entities
card:
  type: entities
  state_color: true
filter:
  frendly_name: plug
  include:
    - domain: switch
      state: 'on'
  exclude:
    - switch.wled_chimney_lights_down_sync_receive
    - switch.wled_christmas_lights_2_sync_receive
    - switch.wled_christmas_lights_sync_receive
    - switch.wled_christmas_lights_sync_send
    - switch.wled_christmas_window_3_sync_receive
    - switch.wled_kids_room_sync_receive
    - switch.wled_standlamp_sync_receive
    - switch.indoor_camera_time_watermark
    - switch.zengge_00_0fc476_f4cfa20fc476_remote_access
    - switch.wyze_notifications
    - switch.nodered_a4f1b02ab7afc2cd
    - switch.indoor_camera_video_recording
sort:
  method: domain
  numeric: false
  reverse: true

type: custom:auto-entities
card:
  type: entities
  state_color: true
filter:
  include:
    - domain: light
      state: 'on'
  exclude:
    - entity_id: light.wled_bar_lights
    - entity_id: light.wled_bar_lights_segment_1
    - entity_id: light.wled_christmas_lights
    - entity_id: light.wled_christmas_lights_2
    - entity_id: light.wled_christmas_lights_2_segment_1
    - entity_id: light.wled_christmas_lights_segment_1
    - entity_id: light.the_stand_lapms
    - entity_id: light.living_room_lights
    - entity_id: light.deca_kitchen_01_ww
    - entity_id: light.deca_kitchen_02_cw
    - entity_id: light.deca_kitchen_03
    - entity_id: light.deca_kitchen_04
    - entity_id: light.deca_kitchen_05
    - entity_id: light.deca_kitchen_06_green
    - entity_id: light.deca_kitchen_07_red
    - entity_id: light.deca_kitchen_08_blue
    - entity_id: light.deca_kitchen_09_ww
    - entity_id: light.deca_kitchen_10_cw
sort:
  method: domain
  numeric: false
  rev  erse: true
open: true

thanks
ildar170975 commented 2 years ago
  1. The code MUST BE posted with formatting.
  2. The code IS BETTER to provide as a short MWE which anyone may copy / paste and use for testing to help you.
sevagjb commented 2 years ago
  1. The code MUST BE posted with formatting.
  2. The code IS BETTER to provide as a short MWE which anyone may copy / paste and use for testing to help you.

i hope is ridable now