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

Global maxDaysToShow setting not working for multiple calendars #1624

Open
2 tasks done
velodromen opened this issue Mar 5, 2025 · 1 comment
Open
2 tasks done

Global maxDaysToShow setting not working for multiple calendars #1624

velodromen opened this issue Mar 5, 2025 · 1 comment
Labels
type/bug Something isn't working

Comments

@velodromen
Copy link

velodromen commented Mar 5, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I have multiple calendars in a card. I want to limit the presentation to an agenda view for today and the next upcomping 7 days. This worked well in the past when I had less calendars. Now it instead presents multiple weeks ahead for two of the calendars. Perhaps this might have to do with when the actual first item in these two new calendars start (e.g. first ever item for calendar "movie" is due in week 14 etc)?

I also have a white line at the top for the upcoming weeks. I would be most greatful if anyone could tell me how to remove these lines please. I managed to do it for the first week though somehow it won't work for the upcoming weeks.

Expected behaviour

I expect to see the agenda for today and the next upcoming 7 days. Week number should also appear, though considering the limitation of 7 days it should not be possible to see more than 2 week numbers in the agenda.

Steps To Reproduce

Image

Mode

Event (default)

Card Version

v10.0.0

Home Assistant Version

Core 2025.2.5 Supervisor 2025.03.0 Operating System 14.2

Configuration

type: custom:atomic-calendar-revive
enableModeChange: true
entities:
  - entity: calendar.familj
    name: Hela familjen
    color: darkorange
    icon: mdi:human-male-female-child
  - entity: calendar.helgdagar_i_sverige
    name: Helgdagar i Sverige
    color: red
  - entity: calendar.kristna_hogtider
    name: Kristna högtider
  - entity: calendar.o365_calendar1
    name: Familj
    color: darkorange
    icon: mdi:human-male-female-child
  - entity: calendar.o365_calendar2
    name: redacted
    color: white
  - entity: calendar.o365_calendar3
    name: Family calendar
    color: darkorange
    icon: mdi:human-male-female-child
  - entity: calendar.film1
    name: redacted
    color: white
  - entity: calendar.film2
    name: redacted
    color: white
    icon: mdi:movie-open-check
  - entity: calendar.recycle1
    name: redacted
    icon: mdi:recycle-variant
  - entity: calendar.recycle2
    icon: mdi:recycle-variant
hoursOnSameLine: false
showLocation: true
showMultiDayEventParts: true
hideDuplicates: true
compactMode: false
showDate: false
sortByStartTime: true
showWeekDay: true
showCurrentEventLine: false
showProgressBar: false
showDescription: false
showMonth: false
showWeekNumber: true
showDatePerEvent: false
showAllDayHours: false
showTimeRemaining: false
showEventDate: false
showCalendarName: false
showEventIcon: true
showNoEventsForToday: true
dimFinishedEvents: true
showMultiDay: true
fullDayEventText: Hela dagen
untilText: Fram till
noEventsForNextDaysText: Ingenting inbokat för nästkommande dagar
noEventText: Ingenting inbokat
maxDaysToShow: 7
allDayBottom: false
offsetHeaderDate: false
cardHeight: 100%
showDeclined: false
calShowDescription: false
showLastCalendarWeek: false
layout_options:
  grid_columns: full
showLoader: false
showRelativeTime: false
disableLocationLink: true
disableEventLink: true
hiddenEventText: Dold händelse
disableCalLocationLink: true
disableCalEventLink: true
card_mod:
  style: |
    .week-number {
    color: orange !important;
    height: 20px !important;
    padding: 5px !important;
    width: 100% !important;
    margin: 10px 5px !important; 
    }
    .event-date-day {
    color: white;
    }
    .hours {
    color: white !important;
    }
    .relative-time.time-remaining {
    color: gray !important;
    }
    .header-date {
    color: aqua !important;
    }
    .event-title.running {
    color: white !important;
    } 
    .event-title {
    color: white !important;
    }
    ha-card {
      background: none;
      border: none;
      color: white;
      font-size: 18px !important;
      padding: 28px !important;
      margin: 3px 8px !important; 
    }

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct
@velodromen velodromen added the type/bug Something isn't working label Mar 5, 2025
Copy link

github-actions bot commented Mar 5, 2025

Hello @velodromen, 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.

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

1 participant