Open ericvb opened 4 years ago
I´m curious to see this too. Currently my attribute has only one line (I use it mainly for showing available updates and currently all sensors attributes unfortunately only have one available update...). Will test how entity-attributes-card behaves as soon as one attribute contains more elements (lines) and probably come back here...
...aaaand I hit it too:
How to handle (show) that? Currently the card only shows an "object" text which is not useful at all... I want ALL of that attributes content to show up instead.
Any suggestions / workarounds?
OK, I am also running into this issue... The Attributes of one Sensore are an array...
engine:
engine_type: iV
power_in_kw: 132
battery_capacity_kwh: 62
So, I can only select "engine" in the attributes card, which will show the [object Object] pattern:
Have a look at the flex-table-card. I replaced most of my entity-attributes-card already with it.
Have a look at the flex-table-card. I replaced most of my entity-attributes-card already with it.
The card looks awesome, but for the life of me, I do not understand the docs.
I am trying to use it with an array. Any chance you can give me a pointer? The array in question is from Watchman (HACS) sensor.watchman_missing_entities
which has an array under entities. Pic below
I've tries all sorts of variations on:
- type: custom:flex-table-card
title: Missing entities
entities:
include: sensor.watchman_missing_entities
columns:
- name: Entity
data: entities.id
- name: State
data: entities.state
...with and without entities
, with and without the utterly confusing receivedTS
and sendTS
from the docs.
Any pointer would be appreciated. I know I can raise a ticker there, but thought you might be able to help with a dumb question like mine.
edit: typically, after posting for help, one finds the right thread to answer it! this thread (using weather.openweathermap) helped me crack it.
The answer, for me, is:
- type: custom:flex-table-card
title: Missing entities
entities:
include: sensor.watchman_missing_entities
columns:
- name: Entity
data: entities
modify: x.id
- name: State
data: entities
modify: x.state
- name: Occurances
data: entities
modify: x.occurrences
What to do if a sensor has an attribute in the form of an array like the attribute next_passages?
The attribute next_passages can have multiple passages. In the example above there are two passages, but we can have 3 or 4 or … passages