Skip to content

Commit

Permalink
Add state options for tile card (#29425)
Browse files Browse the repository at this point in the history
* Add state options for tile card

* tiny tweak

---------

Co-authored-by: c0ffeeca7 <[email protected]>
  • Loading branch information
piitaya and c0ffeeca7 authored Oct 24, 2023
1 parent 2151eb9 commit 09328e6
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions source/_dashboards/tile.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 09328e6

Please sign in to comment.