8000 GitHub - gwendo/entities-table-card
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

gwendo/entities-table-card

Repository files navigation

Entities Table Card by @gwendo

GitHub Release License hacs_badge

Project Maintenance GitHub Activity

Support

Hey dude! Help me out for a couple of 🍻 or a ☕!

coffee

Options

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

Column Config

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

Examples

With each entity specified

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: true

Together with auto-entities

type: '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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published
0