The needle pointer in my Gauge Card does not work with the following yaml code. The needle stays always on the same place. The displayed data (kW) is correct and varies. Can anyone explain why?
Have you looked at your sensor.home_power_total value in Developer Tools / States to verify it is varying? Sometimes sensors don’t update very frequently.
Just for fun, I added a gauge to look at sensor.system_monitor_memory_use which is a sensor whose value changes frequently and the gauge did update as the sensor value was updated.
One last comment, when you posted your YAML, you didn’t use the pre-formatted text feature of this forum, so I can’t verify your indentation. Improper indentation of YAML will cause things to not work properly.
Thanks for your reply. I’ve checked and I see every 10 seconds an update of the sensor. In your code you use “%” and I use also negative numbers (-50 to +100).
The indentation is correct. Sorry, I did not know how to use the pre-formatted text feature.
Even when i use the most simple code, the needle is not moving at all =>
type: gauge
entity: sensor.home_power_total
needle: true
Hmm, very strange. Do other sensors update a gauge card for you? I wonder if your issue is with this one sensor or if it’s with the dashboard itself not updating based on sensor changes. Sorry, I’m out of ideas. Hopefully, someone else can help.
For future reference, regarding posting code, click the </> button, then paste your code between the ellipses. Here’s a screenshot of what that looks like.
I’ve tried someting else:
This works great, two gauges in stack. But I don’t understand why the simpel code does not work en de code below works fine (needle moves; every 10 secs update received).
When using this sensor, the needle does not move at all.
And when using one single (not calculated) sensor such as “sensor.dsmr_reading_electricity_currently_returned” or “sensor.dsmr_reading_electricity_currently_delivered” it works fine.
So from the stack code I need to create ONE (1) gauge => “Current usage -/- Current return”
How can I do that?