From 09328e6215022e0ad4d428d02a2c3b2387c1d039 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Tue, 24 Oct 2023 12:29:15 +0200 Subject: [PATCH] Add state options for tile card (#29425) * Add state options for tile card * tiny tweak --------- Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com> --- source/_dashboards/tile.markdown | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/source/_dashboards/tile.markdown b/source/_dashboards/tile.markdown index 64f33f24642..e8791423cf4 100644 --- a/source/_dashboards/tile.markdown +++ b/source/_dashboards/tile.markdown @@ -25,11 +25,11 @@ entity: type: string name: required: false - description: Overwrites the name of entity. + description: Overwrites the entity name. type: string icon: required: false - description: Overwrites the icon of entity. + description: Overwrites the entity icon. type: string color: required: false @@ -46,6 +46,16 @@ vertical: description: Displays the icon above the name and state. type: boolean default: false +hide_state: + required: false + description: Hide the entity state. + type: boolean + default: false +state_content: + required: false + description: > + Content to display for the state. Can be `state`, `last-changed`, or any attribute of the entity. Can be either a string with a single item, or a list of string items. Default depends on the entity domain. + type: [string, list] tap_action: required: false description: Action taken on card tap. See [action documentation](/dashboards/actions/#tap-action). By default, it will show the "more-info" dialog. @@ -86,6 +96,16 @@ show_entity_picture: true type: tile entity: person.anne_therese vertical: true +hide_state: true +``` + +```yaml +type: tile +entity: light.living_room +state_content: + - state + - brightness + - last-changed ``` ```yaml