mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-21 08:16:53 +00:00
Merge pull request #5770 from home-assistant/c727-ll-ent-obj
Lovelace: Add entity object options for entities card
This commit is contained in:
commit
993b9f9909
@ -19,7 +19,7 @@ type:
|
|||||||
type: string
|
type: string
|
||||||
entities:
|
entities:
|
||||||
required: true
|
required: true
|
||||||
description: "A list of entity IDs or an `entity` object."
|
description: "A list of entity IDs or `entity` objects, see below."
|
||||||
type: list
|
type: list
|
||||||
title:
|
title:
|
||||||
required: false
|
required: false
|
||||||
@ -32,6 +32,25 @@ show_header_toggle:
|
|||||||
default: true
|
default: true
|
||||||
{% endconfiguration %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
|
## {% linkable_title Options For Entities %}
|
||||||
|
|
||||||
|
If you define entities as objects instead of strings, you can add more customization and configuration:
|
||||||
|
|
||||||
|
{% configuration %}
|
||||||
|
entity:
|
||||||
|
required: true
|
||||||
|
description: Home Assistant entity ID.
|
||||||
|
type: string
|
||||||
|
type:
|
||||||
|
required: false
|
||||||
|
description: "Sets a custom card type: `custom:my-custom-card`"
|
||||||
|
type: string
|
||||||
|
name:
|
||||||
|
required: false
|
||||||
|
description: Overwrites friendly name.
|
||||||
|
type: string
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
## {% linkable_title Example %}
|
## {% linkable_title Example %}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user