Conigurable colours in History graphs

Any update on this?

Custom colors for states would be nice too, for example my phone tracker “away” is blue “home” is purple, but for my roomate’s phone “away” is purple and “home” is blue. Very confusing.

Same with graphs, it would be nice to color code the sensors by rough location in the house (front/back, which end, etc)

This would be a wonderful addition!

Yes please!

Same here, i would like this feature too! I have problems with my occupancy sensors, the colors are inverted and I cant change them.

I would like this too.

I know it’s a slightly different request, but I hope it’s ok to mention it here. If there is an existing issue/request that I’m aware of, I’d happily go support it or create a new, separate request: It would be great to be able to map state names too. I’ve been trying the custom mini-graph-card and I love it for numerical purposes, but I don’t think it works that well for binary or categorical sensors.

I’m actually considering writing a custom card and would preferably like to extend the current implementation to avoid duplicating too much code. I need to learn how the framework works. If anybody is reading this: I haven’t come across custom cards where an existing card is extended. I think it should be possible using js mixins, but I won’t know until I’ve worked through the docs and examples.

My use case is that I have the same appliances on history graphs on both my Energy page and my Appliance page, on one the washer is red, on the other blue - need consistency between the same sensors on different graph cards.

You can set line_color – which can be a list for multiple entities.

Thanks Pieter, I’ll investigate that.

Where do you mean exactly @parautenbach? Tried setting in for the whole card and also for each entity and it doesn’t do anything.

Apologies for the confusion caused. I don’t know where my mind was when I wrote that. I said it in context of using the custom mini graph chart and must’ve misread the post before that one.

1 Like

Try Apex charts as an alternative.

Would like this

This has been awful for a very long time. I struggle seeing thin red lines on a green background. PLEASE MAKE A CONFIGURABLE COLOUR PALETTE FOR THE FRONT END!!!

It is configurable now for most known states.

@petro how exacly does one customize it?

Through themes

Why not simply add the option to change the colour you want. Is it that difficult? Whats the reason behind this?

Yes it’s difficult or else somebody would have added it.

it’s also that difficult to integrate the option to choose the colour in the calender for different calenders? I have totally no idea about programming, but im just wondering how hard it must be to make this possible. Maybe you can help me understanding this. thx!

An entire theming backend and front would need to be developed to make this point and click. It’ll be semi difficult, time consuming, and require constant maintenance. It would be best if you just took the time to learn the theming provided in the frontend integration docs. Otherwise you’ll be waiting a long time for a feature like this to be added.