#Auto Card displaying light.area and other entities even after excluding

1 messages · Page 1 of 1 (latest)

clever tulip
#

Hi,

I tried this in my dashboard:

type: custom:auto-entities
card:
  type: entities
filter:
  include:
    - options: {}
      domain: light
  exclude:
    - options: {}
      label: no_dboard

I found a solution, but this way to advanced for me:

type: custom:auto-entities
card:
  type: entities
filter:
  template: |
    {% set excludes = label_entities('no-dboard') %}
    {{ states.light 
      | selectattr('state', 'eq', 'on')
      | rejectattr('entity_id', 'in', excludes)
      | map(attribute='entity_id') | list }}

Is there any possibility to make the method 1 work? Would be easier as this can be configured using GUI.