From 882970eba815114f92a386b50d9e5bf0f0efa8ed Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Wed, 24 Feb 2021 17:34:59 +0100 Subject: [PATCH] Add additional weblink attributes (#16367) --- source/_lovelace/entities.markdown | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/source/_lovelace/entities.markdown b/source/_lovelace/entities.markdown index c71d7246bf1..964a6c24bcd 100644 --- a/source/_lovelace/entities.markdown +++ b/source/_lovelace/entities.markdown @@ -139,12 +139,12 @@ name: format: required: false description: "How the attribute value should be formatted. Currently only supported for timestamp attributes. Valid values are: `relative`, `total`, `date`, `time` and `datetime`." - type: string + type: string {% endconfiguration %} ### Button -Row with an (optional) icon, label and a single text button at the end of the row that can trigger a defined action. +Row with an (optional) icon, label and a single text button at the end of the row that can trigger a defined action. {% configuration %} type: @@ -356,6 +356,16 @@ icon: description: "Icon to display (e.g., `mdi:home`)." type: string default: "`mdi:link`" +new_tab: + required: false + description: Open link in new tab. If link is external URL or a download link, this will automatically be true. Use if internal URL should be opened in new tab. + type: boolean + default: false +download: + required: false + description: Is link a download? + type: boolean + default: false {% endconfiguration %} ## Examples @@ -433,7 +443,7 @@ entities: conditions: - entity: sun.sun state: above_horizon - row: + row: entity: sun.sun type: attribute attribute: azimuth