Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

please add option to reference entity in include and exclude keys #8

Open
Mariusthvdb opened this issue Dec 2, 2019 · 0 comments
Open
Labels
help wanted Extra attention is needed

Comments

@Mariusthvdb
Copy link

Mariusthvdb commented Dec 2, 2019

as title.
we now have to use eg:

  - type: custom:entity-attributes-card
    title: Attributes Card
    heading_name: List
    heading_state: States
    filter:
      include:
        - key: sensor.essen_brussel_noord.*
      exclude:
        - key: sensor.essen_brussel_noord.unit_of_measurement
        - key: sensor.essen_brussel_noord.icon
        - key: sensor.essen_brussel_noord.custom_ui_state_card
        - key: sensor.essen_brussel_noord.attribution

while an entity: option would allow for:

  - type: custom:entity-attributes-card
    title: Attributes Card
    heading_name: List
    heading_state: States
    entity: ensor.essen_brussel_noord
    filter:
      include:
        - key: *.*
      exclude:
        - key: unit_of_measurement
        - key: icon
        - key: custom_ui_state_card
        - key: attribution

if the key could be allowed to be a list or comma separated list that would be even better:

  - type: custom:entity-attributes-card
    title: Attributes Card
    heading_name: List
    heading_state: States
    entity: ensor.essen_brussel_noord
    filter:
      include:
        - key: *.*
      exclude:
        - key: 
            - unit_of_measurement
            - icon
            - custom_ui_state_card
            - attribution

example using only specific includes:

  - type: custom:entity-attributes-card
    title: Attributes Card
    heading_name: List
    heading_state: States
    entity: ensor.essen_brussel_noord
    filter:
      include:
        - key: 
            - departure
            - platform_arriving
            - destination

or maybe even:

  - type: custom:entity-attributes-card
    title: Essen - Brussel-Noord
    heading_name: List
    heading_state: States
    entity: sensor.essen_brussel_noord
    filter:
      include:
        - key: entity.*
      exclude:
        - key: entity.friendly_name, entity.unit_of_measurement, entity.icon, entity.custom_ui_state_card
        - key: entity.attribution

instead of having to repeat the sensor (entity) over and over in either include or exclude.

thanks for considering

@Mariusthvdb Mariusthvdb changed the title please add entity, and option to reference that in include and exclude keys please add option to reference reference in include and exclude keys Dec 2, 2019
@Mariusthvdb Mariusthvdb changed the title please add option to reference reference in include and exclude keys please add option to reference entity in include and exclude keys Dec 2, 2019
@iantrich iantrich added the help wanted Extra attention is needed label Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants