Refreshing the UI with the 3 dots menue sometimes shows the red cards

the next time it shows the expected card

Not clear. Sometimes it shows the red cards after i open the browser, sometimes i have to refresh the UI multiple times.
- type: entities
show_header_toggle: false
entities:
- entity: sensor.e3dc_pv_total
name: PV Gesamt
icon: mdi:white-balance-sunny
type: "custom:secondaryinfo-entity-row"
secondary_info: "[[ sensor.daily_pv_energy.state ]] kWh"
- entity: sensor.e3dc_house_power
name: Haus
icon: mdi:home-outline
type: "custom:secondaryinfo-entity-row"
secondary_info: "[[ sensor.daily_house_energy.state ]] kWh"
- entity: sensor.e3dc_net_power
name: Netz
icon: mdi:transmission-tower
type: "custom:secondaryinfo-entity-row"
secondary_info: "Bezug: [[ sensor.daily_from_net_energy.state ]] kWh, Einsp.: [[ sensor.daily_to_net_energy.state ]] kWh"
- entity: sensor.e3dc_battery_power
name: Batterie
icon: mdi:car-battery
type: "custom:secondaryinfo-entity-row"
secondary_info: "Ladung: [[ sensor.daily_to_battery_energy.state ]] kWh, Entl.: [[ sensor.daily_from_battery_energy.state ]] kWh"
I think it's the same problem like in this issue https://github.com/home-assistant/home-assistant-polymer/issues/4669, but that was closed in the moment i want to comment.
So, i can't reproduce the issue when i comment out the secondaryinfo-entity-row, but this is not used in https://github.com/home-assistant/home-assistant-polymer/issues/4669.
Is there a general issue with custom cards?
I would say custom element rows, checking the code now, but can't see a problem immediately. Any way I can easily reproduce this?
Ah, yeah, I see it
Or maybe not, would still help to be able to reproduce
Here's another one.
entities:
- entity: switch.e3dc
name: S10-xxxxxxxxxxxx
type: "custom:secondaryinfo-entity-row"
secondary_info: "Firmware: [[ sensor.e3dc_firmware.state ]]"

Normaly:

I simply click the 'Refresh' from the 3 dots menu multiple times, the red cards show up and at the bottom the LL Refresh bar is shown

After i click 'Refresh' on this bar, all cards are back to normal.
I think it is cardTools and not our code, cardTools seems to change the config at some points and it really shouldn't
Sorry about that. Should be fixed now.
Thanks @thomasloven , but after upgrade card-tools to v8, the red cards are always there, not sporadically on refresh. :confused:
Should i open an issue in your repo?
That is probably because secondaryinfo-entity-row is built with cardTools 0.4
I just upgraded card-tools but my configs had been updated with a type: default for rows which I had not specified a type on and that is an unknown type and threw an error. I removed those and it seems to be good now.
@iantrich how did you do that? Can you please explain?
Did I not?
type: default where ever it shows up in lovelace configurationThanks. But i don't have a defaultentry in my lovelace.
@iantrich , thanks for looking at this. After i update card-tools, i get this

which shows type: default, but in the config there's nothing about default.
- type: entities
title: E3/DC
show_header_toggle: false
entities:
- entity: switch.e3dc
name: S10-xxxxxx
type: "custom:secondaryinfo-entity-row"
secondary_info: "Firmware: [[ sensor.e3dc_firmware.state ]]"
So, is this now an issue with card-tools or secondaryinfo-entity-row?
Where should i open an issue?
Interesting. Are you using yaml or storage mode?
yaml, pure console guy! :smile:
Thanks once again!
Oh, and i have an error in the console now.

Have you tried clearing your cache and a private session since updating card tools? I believe card tools updated the config to have those default types, those were written to my storage configuration, but they might be cached on the frontend for yours still
Yep! Still the same.
All other custom-cards work, only secondaryinfo-entity-row shows this.
Going back to card-tools 2.3, the issue shows randomly like in the first post here.
Issue is back for me, actually. I went through and updated all those configs and it worked until a refresh. This card has not updated in quite a while so would suspect something with card-tools stills
Turns out the faulty behavior in card-tools was hiding a worse bug of the same kind in secondaryinfo-entity-row.
so, being on card-tools version 2.3 and secondaryinfo-entity-row version 04324ab (0.3.1), which is the way forward?
is it safe to update card-tools to release 8 (49f34cd) without secondaryinfo-entity-row getting an update simultaneously?
With the old card-tools version, secondaryinfo-entity-row works most of the time.
With the new version, never.
Thanks very much, @bramkragten , @iantrich and @thomasloven for fixing this!
I am still getting the message "Unknown type encountered: sensor" with v0.105.x and card-tools v9
Not sure what to do to fix it.
Same here for media-control
using
- type: custom:auto-entities
show_empty: false
card:
type: entities
title: Now Playing
show_header_toggle : false
filter:
include:
- domain: media_player
state: /playing|paused|'on'/
options:
type: media-control
artwork_border: true
artwork: cover
hide:
icon: true

Please create issues for the custom cards.