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.
Screenshot of the entity filter card.
(list)(Required)List of entities to filter.
(list)(Required)List of strings representing states.
(object)(Optional)Extra options to pass down to the card rendering the result.
Default value: entities card
(boolean)(Optional)Allows hiding of card when no entities returned by filter.
Default value: true
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"
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 combined with glance card.