From 7867c63985e8e212038b9c078ffa54e0bc6ba4e9 Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Mon, 2 Jul 2018 09:06:10 -0400 Subject: [PATCH] Fix name instead of title --- docs/lovelace_card_types.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/docs/lovelace_card_types.md b/docs/lovelace_card_types.md index 0eb62f75..e7659dfa 100644 --- a/docs/lovelace_card_types.md +++ b/docs/lovelace_card_types.md @@ -17,17 +17,24 @@ These cards are WIP and things may change. | Name | Type | Default | Description | ---- | ---- | ------- | ----------- | type | string | **Required** | `entities` -| entities | list | **Required** | Entity id's +| entities | list | **Required** | Entity id's or entity objects (see description below) | title | string | Optional | Card title | show_header_toggle | boolean | true | Button to turn on/off all entities +Entity object: + +| Name | Type | Default | Description +| ---- | ---- | ------- | ----------- +| entity | Entity ID | **Required** | The Entity ID to show +| name | string | **Optional** | Override the name of the entity in the card. + ## Entity filter | Name | Type | Default | Description | ---- | ---- | ------- | ----------- | type | string | **Required** | `entity-filter` -| filter | list | **Required** | See filter description -| card | object | `{'type': 'entities'}` | Extra options to pass down to the card rendering the result. +| filter | list | **Required** | See filter description below. +| card | object | **Optional** | A card configuration to use to render the results. See any other card on this page. Filter options: @@ -42,9 +49,16 @@ Filter options: | Name | Type | Default | Description | ---- | ---- | ------- | ----------- | type | string | **Required** | `glance` -| entities | list | **Required** | Entity id's or `{'entity': ''entity_id', 'title': 'title'}` +| entities | list | **Required** | Entity id's or entity objects (see description below) | title | string | Optional | Card title +Entity object: + +| Name | Type | Default | Description +| ---- | ---- | ------- | ----------- +| entity | Entity ID | **Required** | The Entity ID to show +| name | string | **Optional** | Override the name of the entity in the card. + ## History graph | Name | Type | Default | Description