Flex-table-card

Sorry about that. You can put:

.type-custom-flex-table-card: "min-width: auto"

under css: while I think about the best way to handle this.

Hi, how to find out if the value of x is negative or how to check if the first letter of x is ‘-’

solved it. x[0]

I’m having trouble with getting my attribute array data into a table. Ive been reading but still stuck:

my template sensor has an attribute called cdr, which looks like this in the attribute data

cdr: [
{
“date”: “2025-06-15 12:16:45”,
“destination”: “phonenumberx”,
“disposition”: “ANSWERED”,
“Duration”: “0:06”
},
{
“date”: “2025-06-15 07:14:40”,
“destination”: “phonenumbery”,
“disposition”: “ANSWERED”,
“Duration”: “0:36”
}, etc
]

ive tried using this table code:

type: custom:flex-table-card
title: Logs
entities:
include: sensor.call_log_sensor
columns:

  • name: Date
    data: cdr.date
  • name: Destination
    data: cdr.destination
  • name: Result
    data: cdr.disposition
  • name: Duration
    data: cdr.duration

but doesn’t generate any rows at all…

then this:

columns:

  • name: Date
    data: cdr
    modify: x.date
  • name: Destination
    data: cdr
    modify: x.destination
  • name: Result
    data: cdr
    modify: x.disposition
  • name: Duration
    data: x.duration

but that just gives me one row with 'undefinedundefinedundefined in each column. without the modify line, it just puts the whole array of entries in each cell as a giant string, so i just cant filter it down to each particular object

it seems like its an issue pathing to the proper items, maybe due to how the attribute is bracketed, or am i not using modify properly?

try

columns:
  - attr_as_list: cdr