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

Option to recursively filter through nested groups #112

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Chropez
Copy link

@Chropez Chropez commented May 17, 2020

For the use case when you have group containing other groups and want a filter to include the entities inside the nested groups

@Chropez Chropez changed the title Option to recursively search through nested groups Option to recursively filter through nested groups May 17, 2020
@Mariusthvdb
Copy link

Mariusthvdb commented Oct 28, 2020

yes to this! exactly what I was looking for, And erroneously doing...

was happing to use this:

      - type: custom:auto-entities
        card:
          type: entities
          show_header_toggle: false
        filter:
          include:
            - group: group.all_lights_only # containing groups, yet again containing the groups listed below
              options:
                secondary_info: last-changed
        sort: name

now forced to do this:

      - type: custom:auto-entities
        card:
          type: entities
           show_header_toggle: false
        filter:
          include:
            - group: group.main_inside_lights
              options:
                secondary_info: last-changed
            - group: group.outside_flood_lights
              options:
                secondary_info: last-changed
            - group: group.terrace_outdoors_spots
              options:
                secondary_info: last-changed
            - group: group.guest_inside_lights
              options:
                secondary_info: last-changed
            - group: group.living_ceiling_spots
              options:
                secondary_info: last-changed
        sort: name

+1 to adding groups to be flattened in the auto-entities include/exclude filters for group

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants