Skip to content
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

Unable to show an icon for a particular calendar #1086

Closed
2 tasks done
swampylee opened this issue Jul 17, 2023 · 12 comments
Closed
2 tasks done

Unable to show an icon for a particular calendar #1086

swampylee opened this issue Jul 17, 2023 · 12 comments
Labels
type/bug Something isn't working

Comments

@swampylee
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I would ideally like to display an entity_picture next to the title of a calendar event card but in lieu of this option I tried to just use a regular icon. However, whenever I try and set an icon through the UI or via yaml nothing changes. I've use the format mdi:icon but nothing changes. As I said, I'd ideally like to be able to display any graphic using entity_picture customisation but would settle for just being able to display an icon. Maybe I'm doing something wrong........

Awesome card by the way, thanks for all your work on it.

Expected behaviour

As above

Steps To Reproduce

No response

Mode

Event (default)

Card Version

7.5.0

Home Assistant Version

2023.7.2

Configuration

type: custom:atomic-calendar-revive
name: Calendar Card
enableModeChange: true
entities:
  - entity: calendar.holidays_in_united_kingdom
    name: Holidays in united kingdom
    icon: mdi:ab-testing
    maxDaysToShow: 30

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@swampylee swampylee added the type/bug Something isn't working label Jul 17, 2023
@github-actions
Copy link

Hello @swampylee, thank you for your interest in our work!
If this is a bug report, please provide your configuration and any screenshots that would assist troubleshooting, otherwise we can not help you.

@marksie1988
Copy link
Collaborator

Set the option

showCalendarName: true

Only MDI icons are supported.

@swampylee
Copy link
Author

swampylee commented Jul 17, 2023 via email

@marksie1988
Copy link
Collaborator

Hi Steven, I tried that with this code (icon: in either position) and I still don’t get any mdi icons only a generic calendar icon. image What I’m after is an image to be shown in the title of the card somewhere to identify what the calendar is. So for a list of sporting events the football team’s motif for example. If that’s just not possible I’ll pop in a feature request perhaps. Thanks for getting back to me.

That's not a valid MDI icon, please see this link for all valid icons. https://pictogrammers.com/library/mdi/

@swampylee
Copy link
Author

Hi Steven, I tried that with this code (icon: in either position) and I still don’t get any mdi icons only a generic calendar icon. image What I’m after is an image to be shown in the title of the card somewhere to identify what the calendar is. So for a list of sporting events the football team’s motif for example. If that’s just not possible I’ll pop in a feature request perhaps. Thanks for getting back to me.

That's not a valid MDI icon, please see this link for all valid icons. https://pictogrammers.com/library/mdi/

It is, it's the first one on their list - I picked that on purpose.

image

@marksie1988
Copy link
Collaborator

Actually yes you are right, I've just tested and mine is also showing the default icon instead of the correct one. I'll have to look into this bug.

@swampylee
Copy link
Author

Actually yes you are right, I've just tested and mine is also showing the default icon instead of the correct one. I'll have to look into this bug.

Thanks!

@marksie1988
Copy link
Collaborator

I have done more testing today and the icons are showing as expected, are you still seeing issues here?

@swampylee
Copy link
Author

I have done more testing today and the icons are showing as expected, are you still seeing issues here?

Still appears to be an issue for me.
IMG_2398

@marksie1988
Copy link
Collaborator

marksie1988 commented Aug 25, 2023

type: custom:atomic-calendar-revive
name: Calendar Card
enableModeChange: true
entities:
  - entity: calendar.holidays_in_united_kingdom
    name: Holidays in united kingdom
    icon: mdi:ab-testing
    maxDaysToShow: 30
showEventIcon: true

I think I may need to spend some time simplifying some of the options and updating the docs for clarity as im not sure that was very clear on the docs.

@swampylee
Copy link
Author

type: custom:atomic-calendar-revive
name: Calendar Card
enableModeChange: true
entities:
  - entity: calendar.holidays_in_united_kingdom
    name: Holidays in united kingdom
    icon: mdi:ab-testing
    maxDaysToShow: 30
showEventIcon: true

I think I may need to spend some time simplifying some of the options and updating the docs for clarity as im not sure that was very clear on the docs.

Thank you, that resolved it and sorry I missed that setting.

As an aside, and as per my original comment, it would be great if we could use an entity_picture as part of the card title but I'll create an enhancement request for that (if I haven't already).

Thanks for your help and for the awesome card.

@snigehere
Copy link

thanks for documenting this - I had the same issue and was able to solve it by adding showEventIcon: true as detailed here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants