Open csoltenborn opened 3 years ago
did you resolve it ?
Well, i'm interested too.
this is currently not really possible, best would be something like that:
type: 'custom:flex-table-card'
title: blub blub
columns:
- name: descent-into-object
data: repositories.foo
already tried a naive approach, but this looks like this might be more challenging than expected...
@csoltenborn Is this what you want? I realize this is a bit late, but...
Created an input_boolean to simulate your example:
The Template view:
The config:
type: custom:flex-table-card
title: Pending HACS Updates
sort_by:
- display_name
entities:
include: input_boolean.hacs_update_issues
columns:
- name: Component
data: status.repositories
modify: x.display_name
id: display_name
- name: Current version
data: status.repositories
modify: x.installed_version
- name: Latest version
data: status.repositories
modify: x.available_version
I'm trying to display information about outdated HACS components. For this, I have defined some sensors (basically following this approach) which provide the outdated repositories. Thus, with Development Tools/Template, the statement
{{ (state_attr('binary_sensor.hacs_update_issues', 'status')).repositories }}
results in the following output:I'm then trying to use the following code for the UI part:
However, no rows are shown. The same is true for the following template I tried.
Is what I'm doing possible at all with flex-table-card? Thanks in advance...