Skip to content
This repository has been archived by the owner on Sep 18, 2020. It is now read-only.

Latest commit

 

History

History
49 lines (39 loc) · 1.62 KB

card-entity-filter.md

File metadata and controls

49 lines (39 loc) · 1.62 KB

Entity filter is a magical type of card. Because it's dynamic if you're smart about it, you can have one card that adapts and that you don't need to touch when adding new entities & sensors to your setup.

This type of card can also be used together with rest of cards that allow multiple entities, allowing you to use 'glance' or 'picture-glance'. By default it uses 'entities' card model.

entity-filter-entity

Examples:

Show only active switches or lights in the house

- type: entity-filter
  filter:
    - domain: light
      state: 'on'
    - domain: switch
      state: 'on'
  card_config:
    title: Eating power

Automatically group all kitchen entities:

- type: entity-filter
  filter:
    - entity_id: '*kitchen*'
  card_config:
    title: Kitchen

Show only people that are at home using 'glance':

- type: entity-filter
  filter:
    - domain: device_tracker
      state: 'home'
  card: glance
  card_config:
    title: People at home

entity-filter

Feedback

  • Support exceptions (blacklist not just whitelist). Example: show this pattern but except this pattern #41
  • Support ordering #47
  • Option to hide when empty #48