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

Feature Request: Filter by floor #434

Open
SLaks opened this issue Apr 3, 2024 · 4 comments
Open

Feature Request: Filter by floor #434

SLaks opened this issue Apr 3, 2024 · 4 comments

Comments

@SLaks
Copy link

SLaks commented Apr 3, 2024

I'd love to have an auto-entities card that shows all entities in all areas belonging to a specific floor in HA 2024.4+

@pos-ei-don
Copy link

yes pleeeeaaasssee!!!

@mal2856
Copy link

mal2856 commented Jul 1, 2024

Did anyone figure out a way to do this using the Jinja template filter workaround?

@NickChristensen
Copy link

You could use floors() and areas() to get entites by that heirarchy:

{% for floor in floors() %}
  Floor: {{floor}}
  {% for area in floor_areas(floor) %}
    Area: {{area}}
    {% for entity in area_entities(area) %}
      {{entity}}
    {% endfor %}
  {% endfor %}
{% endfor %}

You could adapt this to the filter/template structure, and you would have to output JSON for your card configuration similar to #382 (comment)

@Bsector
Copy link

Bsector commented Sep 13, 2024

Yes, I also need this function!!!

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

No branches or pull requests

5 participants