custom-cards / secondaryinfo-entity-row

Custom entity row for HomeAssistant, providing additional types of data to be displayed in the secondary info area of the Lovelace Entities card
172 stars 15 forks source link

Refresh page > "Unknown type encountered"-error #27

Closed exetico closed 4 years ago

exetico commented 4 years ago

Hi,

I'm on the latest version of HA, and most of the times where i'm using the "Refresh" option in Lovelave, the secondaryinfo-entity-row-entities is returning Unknown type encountered: toggle-errors.

It also showing up from time to time, if the app is just reloading the page, and so. And it's here, i found it to be the biggest problem, cause my girlfriend are complaining about it, too :-D

Unknown type encountered: toggle.

entity: switch.sonoff4
type: toggle
secondary_info: 'Lyd fra [[ if(switch.nodemcu4678858 == on, "Chromecast Audio", "Stationær") ]]'

Unknown type encountered: text.

entity: binary_sensor.0x00158d0001d672e5_occupancy
name: Bevægelse
icon: 'mdi:run'
type: text
secondary_info: 'Stationær er [[ if(sensor.stationaer == "Online", "tændt", "slukket") ]]'

image

The secondaryinto-entity-row is within an vertical-stack with multiple cards.

And it's reporting the following, in my console:

TypeError: e.parentElement is nullhui-stack-card.ts:97:4
    _rebuildCard hui-stack-card.ts:97
    _createCardElement hui-stack-card.ts:85
    r fire_event.ts:76
    a create-element-base.ts:92

If i use the tree dots, and update my lovelave-interface again, the errors are gone: image

If it do it again, there's a big change, for the errors to show up, agian.

So i'm not sure if this is related to some tmp-values, a timing issue, some caching related, or... well... something else :( :)

spudje commented 4 years ago

Same here, Latest HA breaks secondaryinfo-entity-row

snakuzzo commented 4 years ago

Same here with covers...

I expect this: image

...bute this is showed...

image

I also opened an issue oh homeassistant frontend https://github.com/home-assistant/frontend/issues/5278

and this is a short clip about the bug...

https://www.youtube.com/watch?v=pcLHaDFPaXI

gerardo15 commented 4 years ago

Im also experiencing this in the latest Home assistant release.

snakuzzo commented 4 years ago

For now, waiting for the fix, I'm using this...

https://github.com/gadgetchnnel/lovelace-card-preloader

MichaelThomasMPT commented 4 years ago

I'm also experiencing this after updating to version 0.107, for a cover.

exetico commented 4 years ago

I would like to have this fixed, however, i don't like the "preloader-fix". Maybe i should look for another card, if this is not fixed, in a short period of time :-)

@MizterB - Are you able to see what's going on, and if you can fix it? :)

snakuzzo commented 4 years ago

On my HA preloader-fix sometimes doesn't work ... and I don't know why

exetico commented 4 years ago

I've not updated HA in the last couple of week. Has anyone, found a fix for this? :-)

exetico commented 4 years ago

Update: I've updated HA again, and moved my ressources. Now i can't get the error-messages to show up. So i'll close this issue.