of course you donāt, since Apexcharts has a refresh parameter you can set (which is very nice. Iāve requested the same for other cards, unanswered though unfortunately).\
Note this is not a ātrickā at all. It is using native Frontend options only which makes it so robust.
More importantly: it is fully supported, so if something would be amiss, the core team would accept an issue tracker on that.
Having said all of that, I still have 1 config-template-card myself too I couldnāt not reasonably replace by a more robust core setup.
So I hear you
(btw, if you dont permanently stare at those graphs all day, the redrawing of the charts isnt that much of a problem isnt it?)
My config-template uses the history charts for selected domain entities, and tbh, I dont notice it flicker while the sensors are updated
note I only have the inputs as variables and entities, and still the history-graph updates the individual entities.
No redrawing at all
as a matter of fact, playing with apexcharts now and some anchor pasting makes it even more adaptable, because we can set an update_interval depending on the graph_span easily and still keep the main card config identical
Ill hide it because it isnt a config-template-card
Probably, but it is in a small dashboard (that cleanly fits on my phone) and I donāt notice any performance issues. The many variables I use to dynamically change the chart title, series names, axis range and draw a lot of annotations. That allows me to visualise a lot of info while keeping the chart and dashboard very clean (at least to my taste :))
Yes, but the monitored entities do not change state very often, when they do it triggers a new annotation and the chart redraws very quickly, so in practice I do not see that (or it is not bothering me). And, most importantly, the entities used in the chart are NOT monitored.
Using a conditional chart to draw the same chart multiple times with a different option (and always show just one), is a nice idea (or trick ), wonāt allow me to get rid of the config-template-card because I change so many things I would need a crazy amount of versions of my chart (and have some functions I would probably have to put outside my chart YAML too) but I am sure I will find a use case for it one day.
Same here, the entities in my chart are not declared in the config-template part but update fine. I could clean up a little but my chart YAML is currently 400+ lines, sounds like a really bad idea but it works fine and I have no flickering, and I watch this chart a lot, monitoring the behaviour of my heatpump and the many automations I wrote to optimise how it works.
Oh, and off-topic but thanks, I learned a lot from your posts on badges and themes!
Whenever I need those dynamic details I use a card or set of cards especially suited for that in a stack
Custom button-card does all that and serves as āheaderā a vertical stack for example , while the chart can be untouched for those details and do what it was designed for
Use each card for its strengths per design is the best attitude for a robust frontend for me.
Only resort to hacky solutions if no other option leftā¦.
I hear you, and this is definitely not for everyone, but I like to make complex charts showing relations between different entities. In this chart I use the title to show which elements decide the state of the heating (e.g. when I know tomorrow will be sunny I lower the heating preemptively). That is reflected in the names of the series (they show target temperatures in the chart, the name shows whether is in comfort, normal, lower or auto). There are also several events I show with little symbols (xaxis annotations) such as when it switched to tapwater heating. Finally, I use annotations also to get the datetime labels on the brush to fall exactly at midnight and midday.
The title and series names could be shown in other ways (but take up a little more screen real estate). The axis annotations however are difficult to show otherwise and besides explaining what happens on the same timeline, I think they also look cool
Sure, happy to share (I added it to my previous post). But a word of warning, it is 470 lines long, some of those could / should be removed, some I keep only to remember the option exists etc
Thanks, I had no idea Yaml anchors existed (HA is my first foray into Yaml).
I did a quick read on the syntax - define a block with &NAME and then reference it with *NAME (reminds me of pointers in C).
If the <<: is an override that merges the block into existing values, why do you need it on the <<: &map_config in your example?
What determines the end of a defined block? When the level of indentation changes?
I was expecting the anchors to stay in my code, but it seems like HA expands them and saves it that way. If I create a view with the example @Mariusthvdb gave, it works fine, but then when I go back to edit it and view the code, it now reads as:
Is is possible to wrap an apex-chart card in a config-template-card wrapped in an auto-entities card? Iāve been playing with this and canāt seem to get data down to the chart.
I would like to use to use the picture element card with this however its not working as I hoped. I am trying the conditional state to show a picture has anyone got any advice or is this a no go?
Conditional element may be used to show an element conditionally.
A āstate_imageā option may be used to show an image conditionally.
If both variants are not fine for your case - there is a good example to show an image with using config-template-card, google āPicture elements small tutorialā - 1st post - show an image dynamically. This example is for the main image, adapt it for an elementās image.
Btw, some user proposed to remove config-template-card from HACS referring to some issue (which is āuserās mistakeā issue) instead of asking himself a question either in Community or in repo.
I wonder what is in heads of these guys. They ācancelledā a famous bar-card and tried to ācancelā an also famous state-switch card.
the state_image option is a brilliant idea i hadnāt thought of that, so thank you.
However after a quick test with the code. The image updates when i am just using a picture elements card with this mod but on a picture elements car with this mod the changing state has no effect!!
Technically, since you refused to use the config-template-card, a further discussion is an off-topic).
Anyway, suggest to format your code properly as per forumās rules and clarify what is not working.