Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make calendar colours in the Calendar Customizable #5975

Closed
Fuchs opened this issue May 22, 2020 · 5 comments
Closed

Make calendar colours in the Calendar Customizable #5975

Fuchs opened this issue May 22, 2020 · 5 comments
Labels
Feature Request Should be a discussion UX User experience related bug

Comments

@Fuchs
Copy link

Fuchs commented May 22, 2020

The request

Currently it seems that calendar colours are decided at random.
It would be nice if a custom calendar colour could be set, even if it has to be done manually in the customize yaml for the calendar object. After a quick glance at the code I tried to set backgroundColor on the calendar object, which seems to have no effect.

The alternatives

Alternatively it would be nice if colours specified by the calendar (e.g. caldav allows calendars to have a certain colour) would be used.

Additional information

Home Assistant 0.110.1, calendars fetched via CalDAV

@Fuchs Fuchs added the Feature Request Should be a discussion label May 22, 2020
@bverkron
Copy link

Yes please! Having them arbitrarily chosen and not matching what I have in Google Calendar or iCloud is very annoying and confusing for the family. At minimum using the same colours defined in Google would be great. I think that's possible as IIRC even back on older version of iOS it could automatically use the same calendar colours as were pulled from the Google Calendar when setup.

@zsarnett zsarnett changed the title Feature Request: make calendar colours in the calendarpanel customizable Make calendar colours in the calendarpanel customizable Oct 1, 2020
@zsarnett zsarnett changed the title Make calendar colours in the calendarpanel customizable Make calendar colours in the Calendar Customizable Oct 1, 2020
@zsarnett
Copy link
Contributor

zsarnett commented Oct 1, 2020

This should be done on the entity registry probably and made available for more than just the calendar entities

@bverkron
Copy link

bverkron commented Oct 2, 2020

Are there other entities that have colours associated with them?

@zsarnett
Copy link
Contributor

zsarnett commented Oct 2, 2020

I don't believe so, yet. We talked today and so far adding it to the entity attributes seems to be the best option.

@bverkron
Copy link

bverkron commented Oct 2, 2020

FYI for users in the meantime. Seems the calendars added to the calendar card entity are always assigned colours in the same order.

Example:

1st = red
2nd = green
3rd = blue
4th = purple
etc...

So you can kind of hack around it by ordering the calendars in the card to match your color preferences. Assuming you have enough of them and can line them up the way you want. Some dummy calendars might be needed in between to increment you to the next desired colour if that makes sense. Something to keep in mind in the interim. YMMV.

@matthiasdebaat matthiasdebaat added the UX User experience related bug label Jul 29, 2021
@home-assistant home-assistant locked and limited conversation to collaborators Jan 12, 2022
@zsarnett zsarnett converted this issue into discussion #11262 Jan 12, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Feature Request Should be a discussion UX User experience related bug
Projects
None yet
Development

No branches or pull requests

4 participants