kinghat/tabbed-card

some cards fail to fully render

Closed this issue · 8 comments

I'm quite happy with tabbed-card, but yesterday I felt to make use of
Options:
defaultTabIndex: 1
it's main function works as declared but I got 2 gauges sitting on TAB 0 and since I start with default tab being 1 what happens is that these gauges don't show values any more. Simply the gauge but the name for example 'temperature' but no value nor the unit.

Any idea?
All get's cured if I remove the defaultTabIndex or turn this to 0.

i would need to see your config and a screenshot or video/gif of the occurrence.

Well, duplicated the card, on the detail tag is a plotly graph. So I simply swapped the code so that Klima is the first one on the left side card. And in there I defined defaultTabIndex: 1 so that I had to manually select the left tab named "KLIMA".
As you see the value is gone. Sometimes it gets lost on both gauges, something one of them remains there.
If I wait for a while the missing value/unitofmeasurement comes back.
Looks to me as if there's a missing fresh or such like fetching the last value. Might also be a gauge problem itself, who knows.

pic and the beginning code snippet .....

Screenshot 2022-10-25 202652

type: custom:tabbed-card
options:
  defaultTabIndex: 1
tabs:
  - attributes:
      label: Klima
    card:
      type: horizontal-stack
      cards:
        - type: gauge
          entity: sensor.esp32computerraum_bme680_temp
          name: Temperatur
          severity:
            green: 0
            yellow: 0
            red: 0
        - type: gauge
          entity: sensor.esp32computerraum_bme680_humi
          name: Luftfeuchte
  - attributes:
      label: Detail
    card:
      type: custom:plotly-graph
      entities:

its nothing to do with defaultTabIndex. you can see here that the humidifier card also has issues when used this way:

image

there are other cards with the issue like thermostat and map. though, map may have been recently fixed. i will look into a way around it. cant promise a timeline though.

Yep trying to use it for the Humidifier and Thermostat, but things won't render, sometimes... tis very odd. Loved the concept of this addon though, but it won't work for this use-case I suppose.

Yep trying to use it for the Humidifier and Thermostat, but things won't render, sometimes... tis very odd. Loved the concept of this addon though, but it won't work for this use-case I suppose.

one trick around that is to make sure cards with this issue are not defaultTabIndex. they will be rendered later.

then we need a switchToIndex 😃
no don't do that ... it's unwise to establish routines to bypass issues, better try to find out why it happens. And yes I'm pretty sure the issue got introduced by HA itself, since I run into similar issues since some time. I was unsure it resulted from a HA update or my switch from a pi into the NUC .... of if it's simply browser-related. Edge gives me less trouble but chrome for example. But I wasn't able to track it down what causes the misery.

from what i can tell, the most recent versions of ha(2023.1.*) no longer have this render issue. testing on the map and thermostat cards. can you all whom are subscribed confirm?

from what i can tell, the most recent versions of ha(2023.1.*) no longer have this render issue. testing on the map and thermostat cards. can you all whom are subscribed confirm?

closing this as fixed by home assistant but reopen if necessary.