custom-cards / flex-table-card

Highly Flexible Lovelace Card - arbitrary contents/columns/rows, regex matched, perfect to show appdaemon created content and anything breaking out of the entity_id + attributes concept

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

multiple attributes or json object list in one column?

kl4ppdrachen opened this issue · comments

I want a list for my bus departure, the state and two attributes for the time in one column. In the state is the next bus time with the delay, in the two attributes the two next departure times-

 Number | Time  | Direction
  100      | 22:01 | xy
  100      | 22:09 | xy
  100      | 22:15 | xy

Is this possible? I only see this for a json objects.

Ok I created my own json object as a sensor. This json object contains both direction:
grafik

Is it possible to list the departure as a list, or multiply "attributes"?
grafik

Hi,

Maybe you solved this, but you can add other columns or concat multiple values in your time column,
for example

- con: mdi:clock
  attr_as_list: direction
  modify: x.departure.this + ' / ' + modify: x.departure.next+ ' / ' + modify: x.departure.next_on

Btw, thanks for this issue, you gave me the opportuniy to solve my own problem to display next train departures 👍