|
1 |
| -# Entity attributes |
2 |
| - |
3 |
| -Entity attributes allows you to show basic attributes from multiple entities. |
4 |
| - |
5 |
| - |
6 |
| - |
7 |
| -**Options** |
8 |
| - |
9 |
| -| Name | Type | Default | Description |
10 |
| -| ---- | ---- | ------- | ----------- |
11 |
| -| type | string | **Required** | `custom:entity-attributes-card` |
12 |
| -| title | string | optional | A title for the card |
13 |
| -| heading_name | string | 'Attributes' | Heading of the attribute column |
14 |
| -| heading_state | string | 'States' | Heading of the states column |
15 |
| -| filter | object | **Required** | A filter object that can contain `include` and `exclude` sections |
16 |
| - |
17 |
| -⚠️ `include` and `exclude` can be simple lists (format `[domain]`.`[entity]`.`[attribute]`) or objects of type below. `[attribute]` can also be a pattern. |
18 |
| - |
19 |
| -| Name | Type | Default | Description |
20 |
| -| ---- | ---- | ------- | ----------- |
21 |
| -| key | string | **Required** | A pattern for the attribute. Example: `media_player.bedroom.media_title` |
22 |
| -| name | string | optional | A string to replace the actual attribute name with |
23 |
| -| unit | string | optional | A string to append an arbitrary unit to the value |
24 |
| - |
25 |
| -**Example** |
26 |
| - |
27 |
| -```yaml |
28 |
| -- type: custom:entity-attributes-card |
29 |
| - title: Attributes Card |
30 |
| - heading_name: List |
31 |
| - heading_state: States |
32 |
| - filter: |
33 |
| - include: |
34 |
| - - key: climate.hvac.* |
35 |
| - - key: media_player.bedroom.app_name |
36 |
| - name: Application |
37 |
| - - key: media_player.bedroom.media_title |
38 |
| - name: Media center |
39 |
| - - climate.heatpump.current_temperature |
40 |
| - - vacuum.xiaomi_mi_robot.battery_level |
41 |
| - unit: % |
42 |
| -``` |
43 |
| -
|
44 |
| -How to embed this inside `entities` card: |
45 |
| - |
46 |
| - |
47 |
| - |
48 |
| -```yaml |
49 |
| -- type: entities |
50 |
| - title: Entities card |
51 |
| - entities: |
52 |
| - - media_player.bedroom |
53 |
| - - type: custom:entity-attributes-card |
54 |
| - entity: media_player.bedroom |
55 |
| - filter: |
56 |
| - include: |
57 |
| - - media_player.bedroom.app_name |
58 |
| - - media_player.bedroom.media_title |
59 |
| - - sensor.short_name |
60 |
| - - sensor.battery_sensor |
61 |
| -``` |
| 1 | +# Entity attributes has moved to https://github.com/custom-cards/entity-attributes-card |
0 commit comments