Open clau-bucur opened 3 years ago
Copy that. Same problem, only with history-graph. Won´t show up at all after being not shown. Doesn´t matter if it´s
[1]
or
[2]
Workaround to use a transition seems to work though.
Update 1: It´s not... not reliably. So this is a real issue without any sufficient workaround :-(
Update 2: Using a transition works for history-graph type [2] but not for type [1]...!
Update 3: Using a transition works for history-graph type [2] only if switch-card is directly applied to the history-graph (and this might result in a malformed mobile view, see https://github.com/thomasloven/lovelace-state-switch/issues/52 !), it doesn´t work for a group of history-graphs (e. g. 3) stacked in a 'custom:vertical-stack-in-card'.
Update 4: Added new side effect/issue https://github.com/thomasloven/lovelace-state-switch/issues/52.
Please try release 1.9.0
Please try release 1.9.0
I tested and referring to https://github.com/thomasloven/lovelace-state-switch/issues/41#issuecomment-841715875 I can say:
custom:vertical-stack-in-card
which contains several history-graph
cards - that card is still not shown at all.Please try release 1.9.3
For me v1.9.3 fixed the remaining issue (using a group of history-cards inside a vertical-stack-in-card inside a state-switch-card). What about yours @clau-bucur ?
I have two states and in each I define a History Graph Card, but the graph shows only in the first state.
I found a similar issue described in the HA community thread, where they said that adding a transition, fixes the problem. Indeed, that fixes it, but I don't want to use transitions.
First state:![image](https://user-images.githubusercontent.com/47672949/98469219-e9954280-21e6-11eb-9c78-db5b590a102e.png)
Second state, where graph not visible:![image](https://user-images.githubusercontent.com/47672949/98469231-f44fd780-21e6-11eb-82e5-88cc379be736.png)
The code: