mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 07:17:14 +00:00
Lovelace: Overwrite name in history card (#5797)
This commit is contained in:
parent
415db306e7
commit
b28f6a3469
@ -24,7 +24,7 @@ type:
|
|||||||
type: string
|
type: string
|
||||||
entities:
|
entities:
|
||||||
required: true
|
required: true
|
||||||
description: List of entities to graph.
|
description: "A list of entity IDs or `entity` objects, see below."
|
||||||
type: list
|
type: list
|
||||||
hours_to_show:
|
hours_to_show:
|
||||||
required: false
|
required: false
|
||||||
@ -42,6 +42,21 @@ title:
|
|||||||
type: string
|
type: string
|
||||||
{% 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
|
||||||
|
name:
|
||||||
|
required: false
|
||||||
|
description: Overwrites friendly name.
|
||||||
|
type: string
|
||||||
|
{% endconfiguration %}
|
||||||
|
|
||||||
## {% linkable_title Example %}
|
## {% linkable_title Example %}
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
@ -49,5 +64,6 @@ title:
|
|||||||
title: 'My Graph'
|
title: 'My Graph'
|
||||||
entities:
|
entities:
|
||||||
- sensor.outside_temperature
|
- sensor.outside_temperature
|
||||||
- media_player.lounge_room
|
- entity: media_player.lounge_room
|
||||||
|
name: Main player
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user