Ok, this might not be down to the graph card as I have just come home from holiday and done all of the following:
upgraded HA (hassio) from 0.94 to 0.95
upgraded CCH from before 1.1.0 to the latest
upgraded HACS (which didn’t recognise all my currently installed custom cards/components unless I installed them again - including mini graph card)
But the symptoms are directly affecting the graph card so this seems like a good place to start.
I am seeing this card redraw itself at ‘random’ intervals of between about 1 and 5 seconds. The underlying sensors are speedtest, download, upload and ping which has a `scan_interval’ of 1 hour.
I recommend breaking down the setup and adding back one card at a time, hard to point out the issue in a nested setup like that.
My first thought… could it be that the custom:config-template-card maybe trigger a re-render of its childs when the hass object is updated?
Edit: You should technically never be able to spot the actual re-render of the graph itself, except for at the initial rendering of the card, which makes me believe the whole card is being rebuilt.
It might sound like quite a stupid question, but, did you cleanup also the resources to not use anymore the old path for each card and use the new instead?
All my custom cards were installed originally the manual way, then when HACS appeared I migrated them but after the last HACS upgrade which I think was a big one, many of my components and cards were not registered in HACS even though they still worked.
And not a stupid question, thanks for taking the time…
The card that are not part of HACS still can be imported manually.
I did notice some issue because a few cards where saying to be added without a “type”, but the type is not (I guess is a bug) js as default, so ensure all the card have type: js even if the docs were saying just to add the “url” bit
Hi @kalkih quick question, I’ve tried to read all of this thread but its quite long so I may have missed something!
Is it possible to change the colour of the icon?
I’d like to change the colour of the thermometer depending on the actual temperature (similar to what @SeLLeRoNe is doing with the actual icon (I’ll probably borrow that idea too!)). If not, is it something you’d consider adding, and I will add a request on github.
( I’ve used the layout/font sizing of my mini-graph-card as a basis for my UI, so replicated it for button card etc, but that card is so damn configurable (@RomRider has done a tremendous job on it!), I am now missing its features on other cards )
Yes, you can use the state_adaptive_color option, will make the icon same color as the entity (line) (in your example red), does also work with color thresholds applied to the graph, to have it change color depending on temp.
If you want to change the color independently of the entity color, you’ll have to use something like card-mod as @DavidFW1960 suggested, possibly combined with config-template-card to achieve diff colors depending on state.
I did already try to play around with icon color, not for the temp but for the battery level of the phone, and after many attempt I did found out that unfortunately, at least for nnow, you cannot change an icon color.
So, if you manage to do it, please do share the code
I will surely appreciate
I’m also using FontAwesome like you - so I have along with using the different thermometer icons, I have also added fas:termperature-hot and fas:temperature-frigid for the extremes:
You are right, it doesn’t.
It did change the color to red so I thought the temperature was in the range but today after a more accurate check I noticed it was setting the first color for all (red)
That’s very unfortuante, using the vars would have been much easier
I’m using v0.5 from HACS and I really like the look of the card. I’m using it to show my realtime home energy production/consumption, which means that it can swing between around -4kW to 6kW. I created a sensor that always reports 0 and added it as an entity to display a line at 0 and I change the line color between green and red as it crosses 0.
I would really like to see the graph better reflect signed values, including filling from zero to the value (positive or negative) and not just from the bottom of the graph. Here’s an example where the fill covers the region from the lowest value in the graph to the line, while the more logical choice in my usage would be for the fill to extend from the green line to zero on the y-axis.
As solar production goes down and energy consumption goes up, it becomes more interesting to see how far above 0 the line is, so I’d like the fill to represent the area above zero.
Is there a way to do this with the options the card has today?
Having some trouble with a card with multiple graphs. I’ve installed via HACS and it says I have the latest version.
In the first picture the graph names are above the graph - if I do fill: false the names move beneath the graphs. Can I keep them above the graphs?
If I hover over the points, whichever graph, it will show in the left state field. Is it possible to make it show in the “corresponding” field? i.e. update the right field if I hover over the pink graph.
I read that the card now can open the more-info dialog on both entities. That doesn’t work - it will only open the first entity wherever I click.