Skip to content

Latest commit

 

History

History
54 lines (44 loc) · 2.1 KB

card-entity-filter.md

File metadata and controls

54 lines (44 loc) · 2.1 KB

Entity filter

This card allows you to define a list of entities that you want to track only when in a certain state. Very useful for showing lights that you forgot to turn off or show a list of people only when they're at home.

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

Options

Name Type Default Description
type string Required entity-filter
entities array Required Array of entity_ids
state_filter array Required Array of strings representing states
card object entities type Extra options to pass down to the card rendering the result.
show_empty boolean true Allows hiding of card when no entities returned by filter.

Examples

Show only active switches or lights in the house

- type: entity-filter
  entities:
    - entity: light.bed_light
      name: Bed
    - light.kitchen_lights
    - light.ceiling_lights
  state_filter:
    - 'on'
  card:
    title: Eating power

Show only people that are at home using glance:

- type: entity-filter
  entities:
    - device_tracker.demo_paulus
    - device_tracker.demo_anne_therese
    - device_tracker.demo_home_boy
  state_filter:
    - 'home'
  card: 
    type: glance
    title: People at home

entity-filter

Feedback

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