From b28f6a3469c55cd2ab1c7c5c4da4e855076c6539 Mon Sep 17 00:00:00 2001 From: c727 Date: Mon, 16 Jul 2018 15:29:53 +0200 Subject: [PATCH] Lovelace: Overwrite name in history card (#5797) --- source/_lovelace/history-graph.markdown | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/source/_lovelace/history-graph.markdown b/source/_lovelace/history-graph.markdown index 282b59912f5..a27641069a1 100644 --- a/source/_lovelace/history-graph.markdown +++ b/source/_lovelace/history-graph.markdown @@ -24,7 +24,7 @@ type: type: string entities: required: true - description: List of entities to graph. + description: "A list of entity IDs or `entity` objects, see below." type: list hours_to_show: required: false @@ -42,6 +42,21 @@ title: type: string {% 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 %} ```yaml @@ -49,5 +64,6 @@ title: title: 'My Graph' entities: - sensor.outside_temperature - - media_player.lounge_room + - entity: media_player.lounge_room + name: Main player ```