Thank you for the incredible work on this card. I have a few challenges that I have yet to figure out:
History card has this nice ability to color fill the on off state of a heater within the bounds of the temperature displayed. This may not be possible to replicate? but I’d sure love to.
My implementation does the job. But I can’t find a way to exclude entities such as Power from taking up space in the tool tip (and by extension, perhaps help avoiding the problem below by excluding entities that aren’t reporting often enough?)
Getting the tooltip to remain grouped for more than one moment. A page refresh or click away and back will cause the data no no longer be aligned. I’ve tried all the tips in this thread such as:
group_by:
func: avg
duration: 1min
fill: last
I’ve tried different duration amounts, and all the suggestions I could find here including adding:
tooltip:
shared: true
As well as juggling these values into different spots and using different combinations of them.
Lastly, I would love to be able to customise the header so clicking it toggles graph content, much like the legend does on click. Being able to force Power to show it’s current state (heat or off) instead of the transformed values would also be amazing.
If someone has a solution or guidance on any of these obstacles, I would greatly appreciate it!
I’m having a bit of trouble with a weather forecast that I did with much help from people on this thread. Everything is working well, except for the fact that my columns are very very narrow. I’ve noticed that removing the first temperature series solves the problem. I also have very weird behaviour: inverting the order of the series messes with the colors (e.g. if I put the precipitation first, then the columns have the color defined in the temp series and the areas have the color of the precipitation series).
I have missing value in my history. So I use the option : “fill_raw: last”. Like said in the doc : If there is any missing value in the history, last will replace them with the last non-empty state
It’s work fine but i have a new problem with this option, it creates me as a new entry at the beginning of the graph :
Yeah the card. Maybe you could use a pastebin or something like that? Now I don’t know French but the buttons just above the apex chart, what does them do?
EIDT: Did google translate that ^^, So you can change the time frame with buttons? That’s awesome and it’s that part I’m really interested in!
SOLVED (it was clearing the browser cache…) Un-intended: 2 versions in one installation
I made a mistake (i guess) and can’t figure out how to fix it.
I first “installed” the card manually (months ago, i think 1.10.0, but not sure…) by coping the .js file in the www folder. Things were fine on both web and in the HA app.
I decided to switch to HACS, installed HACS and from there the APEXcharts-card (version 2.0.1).
I manually removed the old .js files from the www folder and restarted HA.
I got errors on the mobile version as i used the deprecated extend_to_end, but no errors in the browser version.
I changed the extend_to to match the 2.0.1 version, now the mobile shows the graph nicely.
But in the browser i get an error: // apexcharts-card version 1.10.0 /// value.series[0] is not a ChartCardSeriesExternalConfig; value.series[0].extend_to is extraneous
Is there any way to like change the group_by when moving from like 7d to 31d. I would like to have the daily and weekly grouped by hours and monthly and above to days. Same goes if your using the statistics, how to change the period from hour to day?
The second would be far prettier and I am sure someone can help with this (I am pretty bad with the coding part inside cards). You might well find examples in the forum though if nobody smarter than me responds.
The first option would be based on this thread:
Then you would create a second input_select for your groups and with the new IF statement in automations, change the grouping input_select based on the span input_select. All input_selects are global, so changing it on one graph will change the others also.
So that is an old school solution. Hoping for a slicker solution by someone else.
I know that apex charts supports binary_sensor via
transform: "return x === 'on' ? 1 : 0;"
But does anybody know if this can be used also for normal sensors with more than two states.
So instead of this if...else statement, an if...else if... statement?
Awesome, Thank you! I just added my sensors and changed the span and it works great for the most part.
There is an issue from time to time that the color gradient doesn’t work as it should. It is more of a compressed limit of every 15 minutes it starts over. I think it is from one of my sensors going offline and it resets the entire span causing this.
This is one I think a 12 hour span which is what it is supposed to look like.
I also need to look at setting two different series (I think?). My living room and basement sensor is now on this same gradient which can be confusing. I have set the extremas which shows the color in the min/max box. But the actual line is now the gradient colors.
Another thing I’d like to look into is a dynamic time. I think someone else posted it above with a dropdown of various time spans.
And if we could also incorporate a input of set temps with an alarm and even a percentage of cook time remaining to that set point that would be awesome! This of course is for my Fireboard temp probes.
Something like this from Meater with the purple internal, blue target temp. Then it calculates the remaining time. I’m not even sure if ApexCharts is capable of this??