mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-25 02:07:15 +00:00
Add additional weblink attributes (#16367)
This commit is contained in:
parent
ed4d219cf9
commit
882970eba8
@ -139,12 +139,12 @@ name:
|
|||||||
format:
|
format:
|
||||||
required: false
|
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`."
|
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 %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
### Button
|
### 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 %}
|
{% configuration %}
|
||||||
type:
|
type:
|
||||||
@ -356,6 +356,16 @@ icon:
|
|||||||
description: "Icon to display (e.g., `mdi:home`)."
|
description: "Icon to display (e.g., `mdi:home`)."
|
||||||
type: string
|
type: string
|
||||||
default: "`mdi:link`"
|
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 %}
|
{% endconfiguration %}
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
@ -433,7 +443,7 @@ entities:
|
|||||||
conditions:
|
conditions:
|
||||||
- entity: sun.sun
|
- entity: sun.sun
|
||||||
state: above_horizon
|
state: above_horizon
|
||||||
row:
|
row:
|
||||||
entity: sun.sun
|
entity: sun.sun
|
||||||
type: attribute
|
type: attribute
|
||||||
attribute: azimuth
|
attribute: azimuth
|
||||||
|
Loading…
x
Reference in New Issue
Block a user