atomic-calendar-revive: Combining maxDaysToShow, maxEventCount and showNoEventDays does not work as expected
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
Relevant config:
maxDaysToShow: 5
maxEventCount: 1 # would normally be more, but is better for this bug report
showNoEventDays: true
showHiddenText: true
noEventText: NO EVENTS
hiddenEventText: HIDDEN EVENTS
When combining these settings: Days that have events filtered out because it goes over the maxEventCount will show as “No events”.
Expected behaviour
I would expect one of:
- These days not to be shown at all (because the settings is called MAXdaysToShow)
- These days to show HIDDEN EVENTS
I would prefer option 1.
Steps To Reproduce
v9.1.0 on HASS 2023.10.0
Use the above config to reproduce, play with maxEventCount a bit.
Mode
Event (default)
Card Version
9.1.0
Home Assistant Version
2023.10.0
Configuration
maxDaysToShow: 5
maxEventCount: 1
showNoEventDays: true
showHiddenText: true
noEventText: NO EVENTS
hiddenEventText: HIDDEN EVENTS
Relevant log output
None
Code of Conduct
- I agree to follow this project’s Code of Conduct
About this issue
- Original URL
- State: closed
- Created 8 months ago
- Comments: 19
Commits related to this issue
- fix: entity.maxDaysToShow was not applying re #1255, re #1247 — committed to totaldebug/atomic-calendar-revive by marksie1988 6 months ago
- chore(release): 9.3.0-beta.1 [skip ci] ## [9.3.0-beta.1](https://github.com/totaldebug/atomic-calendar-revive/compare/v9.2.1-beta.4...v9.3.0-beta.1) (2024-01-13) ### Features * **lang:** add Czech ... — committed to totaldebug/atomic-calendar-revive by semantic-release-bot 6 months ago
- chore(release): 9.3.0 [skip ci] ## [9.3.0](https://github.com/totaldebug/atomic-calendar-revive/compare/v9.2.1...v9.3.0) (2024-01-13) ### Features * **lang:** add Czech ([47d284e](https://github.co... — committed to totaldebug/atomic-calendar-revive by semantic-release-bot 6 months ago
- fix(sort): events were not sorting correctly with allday and regular events When sorting, all day events were at the top of the array causing regular events to be pushed out incorrectly. Now the func... — committed to totaldebug/atomic-calendar-revive by marksie1988 5 months ago
- chore(release): 9.4.0-beta.3 [skip ci] ## [9.4.0-beta.3](https://github.com/totaldebug/atomic-calendar-revive/compare/v9.4.0-beta.2...v9.4.0-beta.3) (2024-01-23) ### Bug Fixes * **sort:** events we... — committed to totaldebug/atomic-calendar-revive by semantic-release-bot 5 months ago
- chore(release): 9.5.0-beta.1 [skip ci] ## [9.5.0-beta.1](https://github.com/totaldebug/atomic-calendar-revive/compare/v9.4.0...v9.5.0-beta.1) (2024-01-27) ### Features * Add Catalan Language ([b0ba... — committed to totaldebug/atomic-calendar-revive by semantic-release-bot 5 months ago
- chore(release): 9.5.0 [skip ci] ## [9.5.0](https://github.com/totaldebug/atomic-calendar-revive/compare/v9.4.0...v9.5.0) (2024-01-28) ### Features * add ... to title length when trimmed ([81bfd5b](... — committed to totaldebug/atomic-calendar-revive by semantic-release-bot 5 months ago
It works! All issues resolved. Thanks’ alot!
Den tis 23 jan. 2024 kl 10:36 skrev Steven Marks @.***>:
Same issue on my side. I’m using it with 3 calendars (each has several events), and when using maxDaysToShow +maxEventCount it doesn’t show right events. It shows the right number of event according the maxEventCount setting (eg: 10), but those 10 event are only considering “all day events” from 18 days ahead… weird. Like a wrong sorting action is done prior to filter out events exceeding the maxEventCount. So for now. no choice to stop using maxEventCount because my dashboard skip a lot of events.
I have the same issue, when I say maxDaysToShow: 14 the list is quite long, when i combine it with maxEventCount: 8, it does not show the calendar items of tomorrow.