mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 17:27:19 +00:00
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>
This commit is contained in:
parent
2151eb9b74
commit
09328e6215
@ -25,11 +25,11 @@ entity:
|
|||||||
type: string
|
type: string
|
||||||
name:
|
name:
|
||||||
required: false
|
required: false
|
||||||
description: Overwrites the name of entity.
|
description: Overwrites the entity name.
|
||||||
type: string
|
type: string
|
||||||
icon:
|
icon:
|
||||||
required: false
|
required: false
|
||||||
description: Overwrites the icon of entity.
|
description: Overwrites the entity icon.
|
||||||
type: string
|
type: string
|
||||||
color:
|
color:
|
||||||
required: false
|
required: false
|
||||||
@ -46,6 +46,16 @@ vertical:
|
|||||||
description: Displays the icon above the name and state.
|
description: Displays the icon above the name and state.
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
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:
|
tap_action:
|
||||||
required: false
|
required: false
|
||||||
description: Action taken on card tap. See [action documentation](/dashboards/actions/#tap-action). By default, it will show the "more-info" dialog.
|
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
|
type: tile
|
||||||
entity: person.anne_therese
|
entity: person.anne_therese
|
||||||
vertical: true
|
vertical: true
|
||||||
|
hide_state: true
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
type: tile
|
||||||
|
entity: light.living_room
|
||||||
|
state_content:
|
||||||
|
- state
|
||||||
|
- brightness
|
||||||
|
- last-changed
|
||||||
```
|
```
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user