Skip to content

Files

Latest commit

591e865 · Apr 27, 2020

History

History
39 lines (35 loc) · 1.23 KB

example-cfg-autoentities.md

File metadata and controls

39 lines (35 loc) · 1.23 KB

Examples - Auto Entities

Example configuration to use flex-table-card in conjunction with auto-entities:

# Auto Entities configuration
type: 'custom:auto-entities'
filter:
  include:
    - name: "/^Luci .*$/"
    - entity_id: "/light.luce_*/"
card:
  # Flex Table configuration
  # Filtering is obviously missing because auto-entities will take care of that
  type: 'custom:flex-table-card'
  title: Auto Entities Example
  clickable: true
  columns:
    - data: friendly_name              
      name: Friendly Name
    - data: state           
      name: State 
  css:
    table+: 'padding-top: 5px;'
    'tbody tr:nth-child(even)': 'background-color: #a2542f6;'
    td.left: 'padding: 10px 10px 10px 10px'
    th.left: 'padding: 0px 0px 10px 3px'
    'th.left:nth-child(1)': 'width: 33%;'
    'th.left:nth-child(2)': 'width: 33%;'
    'th.left:nth-child(3)': 'width: 33%;'

Result

Return to main README.md