Open sven0110 opened 2 years ago
Hi!
I‘ve tested the Gauge Cards also with Safari and Firefox and get the same issue. The values of the cards are only visible if I reload the page or the value is changing in the next moment e.g. temperature or photovoltaic. If you need more infos please let me know. Thanks in advance and greetings, Sven
Seems like an issue with the integration from creator of that card
Ok…thanks for your reply but it‘s the out of the box HA Gauge card or is there another way to display the values like this?
I am getting same issue with gauge graphs, is fix comming soon?
Can also confirm the bug. What I found out is that changing any css property of the "value-text" in the svg also makes the value visible again.
Can also confirm the bug. What I found out is that changing any css property of the "value-text" in the svg also makes the value visible again.
Also tested it in two other "normal" dashboards, and it's working like a charm there. So must be related to dwains dashboard in any way 🤔
I have played a little around with the gauge in dwains dashboard. Seems to be a problem with the SVG text. It is not placed in the right place when entering the area in which the gauge is placed. If you inspect the HTML tree, you will see that the viewBox is all 0.
When the value gets updated, the viewBox value is corrected and the text is visible again.
I have tested and confirmed that you can "fix" the issue by copying the correct placement over the viewBox property. This is just temporary, but confirms that this is the problem.
It's likely a lifecycle issue, I suspect when entering a new area all items are being loaded. At the point when the gauge is loaded it might not be rendered already and therefore the text gets the wrong placement and puts the text at 0. But that's just a guess, which I have not looked up in dwains code. It's just the place where I would start looking up the problem.
Just following up on this hoping for a fix in future update release, as this bug is still present in v3.4.3.
I‘ve a fresh installation of DD3 and runing HA in Docker ( core-2022.4.7 ).
If i reload DD3, start HA App (iOS) or switch between areas the Gauge Display no values. They show values if the value is updating or i reload the area. It doesn‘t matter of the values come from mqtt, hue sensors (temperatur) or other elements.
![EBEA2CF7-8958-4295-A645-0E88AB9CCE1C](https://user-images.githubusercontent.com/81709989/165346290-8acef9ce-4628-4cb1-89a7-aef204ac7ddc.png)