Entities Table Card by @gwendo
Hey dude! Help me out for a couple of 🍻 or a ☕!
| Name | Type | Requirement | Description | Default |
|---|---|---|---|---|
| type | string | Required | `custom:entities-table-card | |
| name | string | Optional | Card name | Entity Table |
| entities | array | Optional | List of Home Assistant entity IDs | none |
| dataColumns | array | Optional | List of Column config | none |
| Name | Type | Requirement | Description | Default |
|---|---|---|---|---|
| header | string | Required | Column header text | more-info |
| source | string | Optional | state or attr | attr |
| attr | string | Required | Attribute name holding the data for the column | none |
| format | string | Optional | currency, percentage, number or null | none |
| showSummary | boolean | Optional | Whether to show a summary of currency type attributes | false |
type: 'custom:entities-table-card'
name: Portfolio
entities:
- entity: sensor.avanza_stock_513577
- entity: sensor.avanza_stock_26607
- entity: sensor.avanza_stock_5247
- entity: sensor.avanza_stock_56267
dataColumns:
- header: Name
attr: name
- header: State
source: state
format: number
- header: '%'
attr: profitLossPercentage
format: percentage
- header: Profit/Loss
attr: totalProfitLoss
format: currency
showSummary: true
- header: Value
attr: totalValue
format: currency
showSummary: truetype: 'custom:auto-entities'
filter:
include:
- entity_id: sensor.avanza_stock_*
sort:
method: attribute
attribute: name
card:
type: 'custom:entities-table-card'
name: Portfolio
showSummary: true
dataColumns:
- header: Name
attr: name
- header: Daily
attr: changePercent
format: percentage
- header: '%'
attr: profitLossPercentage
format: percentage
- header: Profit/Loss
attr: totalProfitLoss
format: currency
showSummary: true
- header: Value
attr: totalValue
format: currency
showSummary: true