From 9b9df718448ea8b75cf027482782ca96db7887eb Mon Sep 17 00:00:00 2001 From: c727 Date: Thu, 12 Jul 2018 00:40:39 +0200 Subject: [PATCH] Lovelace: Add entity object options for entities card --- source/_lovelace/entities.markdown | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/source/_lovelace/entities.markdown b/source/_lovelace/entities.markdown index 8e89a333c17..a727e42badb 100644 --- a/source/_lovelace/entities.markdown +++ b/source/_lovelace/entities.markdown @@ -19,7 +19,7 @@ type: type: string entities: 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 title: required: false @@ -32,6 +32,25 @@ show_header_toggle: default: true {% 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 %} ```yaml