From c5c2e6ce7e5c2aada9fc5bb29ad78259d3694295 Mon Sep 17 00:00:00 2001 From: c727 Date: Sun, 15 Jul 2018 21:52:47 +0200 Subject: [PATCH 1/2] Lovelace: new features for glance --- source/_lovelace/glance.markdown | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/source/_lovelace/glance.markdown b/source/_lovelace/glance.markdown index 60cf0c469e57..02048d421933 100644 --- a/source/_lovelace/glance.markdown +++ b/source/_lovelace/glance.markdown @@ -37,14 +37,28 @@ title: If you define entities as objects instead of strings, you can add more customization and configuration: {% configuration %} -entity: +type: required: true - description: Home Assistant entity ID. + description: glance type: string -name: +entities: + required: true + description: "A list of entity IDs or `entity` objects, see below." + type: list +title: required: false - description: Overwrites friendly name. + description: Card title type: string +show_title: + required: false + description: Show entity titles. + type: boolean + default: "true" +show_state: + required: false + description: Show entity state-text. + type: boolean + default: "true" {% endconfiguration %} ## {% linkable_title Examples %} From 070e1a575247dd898a21514841341d37044fd7e4 Mon Sep 17 00:00:00 2001 From: c727 Date: Sun, 15 Jul 2018 22:02:06 +0200 Subject: [PATCH 2/2] Fix cp --- source/_lovelace/glance.markdown | 35 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/source/_lovelace/glance.markdown b/source/_lovelace/glance.markdown index 02048d421933..9dc6c021bc7c 100644 --- a/source/_lovelace/glance.markdown +++ b/source/_lovelace/glance.markdown @@ -30,6 +30,16 @@ title: required: false description: Card title type: string +show_title: + required: false + description: Show entity titles. + type: boolean + default: "true" +show_state: + required: false + description: Show entity state-text. + type: boolean + default: "true" {% endconfiguration %} ## {% linkable_title Options For Entities %} @@ -37,28 +47,19 @@ title: If you define entities as objects instead of strings, you can add more customization and configuration: {% configuration %} -type: +entity: required: true - description: glance + description: Home Assistant entity ID. type: string -entities: - required: true - description: "A list of entity IDs or `entity` objects, see below." - type: list -title: +name: required: false - description: Card title + description: Overwrites friendly name. type: string -show_title: - required: false - description: Show entity titles. - type: boolean - default: "true" -show_state: +tap_action: required: false - description: Show entity state-text. - type: boolean - default: "true" + description: "Set to `toggle` or `turn-on` for direct actions." + type: string + default: more-info {% endconfiguration %} ## {% linkable_title Examples %}