mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-22 16:56:50 +00:00
Update entity-filter.markdown
This commit is contained in:
parent
f4e31fd156
commit
811895aa26
@ -10,8 +10,6 @@ sharing: true
|
|||||||
footer: true
|
footer: true
|
||||||
---
|
---
|
||||||
|
|
||||||
### 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 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](/lovelace/glance/) or [picture-glance](/lovelace/picture-glance/). By default it uses [entities](/lovelace/entities/) card model.
|
This type of card can also be used together with rest of cards that allow multiple entities, allowing you to use [glance](/lovelace/glance/) or [picture-glance](/lovelace/picture-glance/). By default it uses [entities](/lovelace/entities/) card model.
|
||||||
@ -21,17 +19,34 @@ This type of card can also be used together with rest of cards that allow multip
|
|||||||
Screenshot of the entity filter card.
|
Screenshot of the entity filter card.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
**Options**
|
{% linkable_title Options %}
|
||||||
|
|
||||||
| Name | Type | Default | Description
|
{% configuration %}
|
||||||
| ---- | ---- | ------- | -----------
|
type:
|
||||||
| type | string | **Required** | `entity-filter`
|
required: true
|
||||||
| entities | array | **Required** | Array of entity_ids
|
description: entity-filter
|
||||||
| state_filter | array | **Required** | Array of strings representing states
|
type: string
|
||||||
| card | object | `entities` type | Extra options to pass down to the card rendering the result.
|
entities:
|
||||||
| show_empty | boolean | true | Allows hiding of card when no entities returned by filter.
|
required: true
|
||||||
|
description: Array of entity_ids
|
||||||
|
type: array
|
||||||
|
state_filter:
|
||||||
|
required: true
|
||||||
|
description: Array of strings representing states
|
||||||
|
type: array
|
||||||
|
card:
|
||||||
|
required: false
|
||||||
|
description: Extra options to pass down to the card rendering the result.
|
||||||
|
type: object
|
||||||
|
default: entities type
|
||||||
|
show_empty:
|
||||||
|
required: false
|
||||||
|
description: Allows hiding of card when no entities returned by filter.
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
**Examples**
|
{% linkable_title Examples %}
|
||||||
|
|
||||||
Show only active switches or lights in the house
|
Show only active switches or lights in the house
|
||||||
```yaml
|
```yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user