Although the sensor sensor.my_givenergy_battery_state updates instantly (as seen by watching Development Tools | States | filter=my_givenergy_battery_state), the Gauge Card display does not?
Is it possible to somehow force a refresh of the Gauge Card or the whole Dashboard when sensor.my_givenergy_battery_state changes?
As it was already advised, you need to declare the as entity as monitored, and the way you did it could be wrong (away from pc, cannot say for sure). The option expects a list, you defined a single string. You need to define a list containing 2 entities - for the gauge itself and for a name.
But there is another issue here which you probably have not faced yet - on every change of the entity the whole gauge card will be redrawn causing the needle “jumping”.
To avoid this, consider using auto-entities card instead of config-template. Go to the main auto-entities thread, search by “gauge” keyword to find my post with a solution.
You could also consider Ring Tile Card which has lots of OOB config options. I think it will give what you need as you can have the main entity as one entity and then an alternate entity for the ring. So you would choose sensor.my_givenergy_battery_state for the main entity and sensor.givtcp_sa2219g385_soc for the ring.
Cannot give a link, typing from a mobile.
But here is a rather long way to get to the point - and you will also get other useful info:
Main cardmod thread in Share your projects - 1st post - fantastic link at the bottom - auto- entities - this will take you to my consolidated post in auto-entities thread which contains a link to the gauge solution.
But I’m sorry for my incompetence! But I can’t find what I’m looking for?
If you remember, maybe you could find a link when you are back at the PC?
I’ll wait…
It is a beginner trying to find some logic in a sea of conflicting, jumbled-up and miss-spelled threads. I am genuinely grateful to all who are trying to help. My problem here, is that advice being given is little vague and what I am finding does not match with what I would expect. For example, I assume that the link to “main cardmod [sic] thread” is this:
Unfortunately (as far as I can see), none of those four show example of:
type: custom:config-template-card
Additionally (although I nearly always get abuse for quoting), ChatGPT has this to say:
“Unfortunately, custom:auto-entitiescannot replace dynamic values like${...}in thenamefield the wayconfig-template-cardcan. The auto-entities plugin is mainly used to dynamically select entities (based on filters) and insert them into card parameters like entities, entity, or cards.
It does not evaluate templates or expressions, and it cannot dynamically modify attributes inside a card, such as the name field using another entity’s state.”.
Whether this is true or not, it does introduce the possibility that I am chasing a “red hearing”?
But I suggested you to go to the auto-entities section of that consolidation post.
Then you will get a link in auto-entities thread as was promised. Your solution has nothing with cardmod, but that cardmod consilidation post is the only place where a link to my auto-entities collection link is posted)
As I said, do not have Pc nearby, so that was the easiest way to give you a pointer.
Also note that you are using a custom card on your own risk. Every new update of HA may bring issues into a custom card and even a card’s author may not know about a possible reason.