mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
Add additional weblink attributes (#16367)
This commit is contained in:
parent
ed4d219cf9
commit
882970eba8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user