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

Incorrect calendar item shown (and another missing) #1181

Closed
2 tasks done
SebastiaanVBH opened this issue Sep 26, 2023 · 10 comments
Closed
2 tasks done

Incorrect calendar item shown (and another missing) #1181

SebastiaanVBH opened this issue Sep 26, 2023 · 10 comments
Labels
released on @beta type/bug Something isn't working

Comments

@SebastiaanVBH
Copy link

SebastiaanVBH commented Sep 26, 2023

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I'm seeing a full-day item from the previous day as being a past event for today. I'm missing the full-day event for today. My calendar shows:
image

But the card shows:
image

Expected behaviour

I would expect the first item for today being "Plastic bak buiten"

Steps To Reproduce

No response

Mode

Event (default)

Card Version

8.0.0

Home Assistant Version

2023.8.2

Configuration

type: custom:atomic-calendar-revive
enableModeChange: true
entities:
  - entity: calendar.meerlanden
    name: Meerlanden
    color: lightcoral
    type: icon
    icon: mdi:delete-sweep-outline
  - entity: calendar.werk
    name: Werk
    color: plum
    type: icon
    icon: mdi:responsive
  - entity: calendar.prive
    name: Privé
    color: cyan
    type: icon
    icon: mdi:home-account
  - entity: calendar.family
    name: Family
    color: lemonchiffon
    type: icon
    icon: mdi:human-male-female-child
  - entity: calendar.homeautomation
    name: HomeAutomation
    type: icon
    icon: mdi:home-assistant
  - entity: calendar.klarinet
    name: Klarinet
    color: lightgreen
    type: icon
    icon: mdi:school-outline
hideFinishedEvents: false
maxDaysToShow: 7
maxEventCount: 11
showDate: true
showMultiDayEventParts: false
showMultiDay: true
compactMode: false
showAllDayEvents: true
offsetHeaderDate: false
allDayBottom: false
showDeclined: false
hideDuplicates: true
hoursOnSameLine: true
descLength: 0
titleLength: 30
showLocation: false
showLastCalendarWeek: false
calShowDescription: false
showCurrentEventLine: false
showWeekDay: true
showMonth: false
showDescription: false
disableLocationLink: false
showNoEventsForToday: true
showEventIcon: true
europeanDate: true
showCalendarName: false
showWeekNumber: false
showDatePerEvent: false
showTimeRemaining: false
startDaysAhead: 0
cardHeight: 100%
defaultMode: Event
dateFormat: LL
showRelativeTime: false
showProgressBar: true
showFullDayProgress: false
showEventDate: true
showAllDayHours: false
showLoader: false
showHiddenText: true

Relevant log output

No response

Code of Conduct

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

Hello @SebastiaanVBH, 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

Please could you install v9.0.0-beta.1 issues around this should be resolved as part of that.

Let me know if you have any issues.

@SebastiaanVBH
Copy link
Author

v9.0.0-beta.1 solves the issue showing the incorrect item from yesterday. But I still don't see the "Plastic bak buiten" I was expecting to see (I saw the item yesterday, so it was loading the correct calendar (calendar.meerlanden)).

I'm using waste_collection_schedule in HACS to get the data. That integration is using Ximmio.nl
When I manually go to Meerlanden, I can download the ICS. This is the part I'm missing (but as you can see, it is showing in the generic HA calendar):

BEGIN:VEVENT
CLASS:PUBLIC
DTEND:20230926T080000
DTSTAMP:20230926T124649Z
DTSTART:20230926T070000
SEQUENCE:0
SUMMARY:PBD / PMD
TRANSP:OPAQUE
UID:b62d5ae1-32ad-4e58-9bc9-070efe5cfe5e
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:Verpakkingen worden vandaag bij u in de buurt opgehaald.
SUMMARY:Verpakkingen worden vandaag bij u in de buurt opgehaald.
TRIGGER:P0D
END:VALARM
END:VEVENT

@marksie1988
Copy link
Collaborator

Thanks for the feedback, Can you do the following:

  1. Press f12
  2. Go to network tab
  3. Clear it if there is anything in there
  4. Refresh the page
  5. Look for the entry that is calling the calendar with the missing event
  6. You should see the event in the response, please paste it on here

you can remove sensitive information, the main thing I need to know is 1, that the event is there 2, start and end times/dates etc.

@SebastiaanVBH
Copy link
Author

SebastiaanVBH commented Sep 26, 2023

[
    {
        "start": {
            "date": "2023-09-29"
        },
        "end": {
            "date": "2023-09-30"
        },
        "summary": "Papier bak buiten",
        "description": null,
        "location": null,
        "uid": null,
        "recurrence_id": null,
        "rrule": null
    },
    {
        "start": {
            "date": "2023-10-03"
        },
        "end": {
            "date": "2023-10-04"
        },
        "summary": "GFT bak buiten",
        "description": null,
        "location": null,
        "uid": null,
        "recurrence_id": null,
        "rrule": null
    }
]

I'm missing the "Plastic bak buiten" event, which should have been today (september 26th).

If I check "Papier bak buiten" in the HA calendar, it is showing as a full-day event on september 29th.

@marksie1988
Copy link
Collaborator

Ok based on the above, it looks like the API isnt returning the event that you expect to see, in the URL that is sent to the HA Rest API should be some dates e.g:

image

this is the times that it is trying to get events for.

One important thing is could you confirm if this is a recurring event?

@SebastiaanVBH
Copy link
Author

The API is requesting:
/api/calendars/calendar.meerlanden?start=2023-09-26T00:00:00Z&end=2023-10-02T23:59:59Z

It is a 2-weekly recurring event, although the original ICS has them as seperate events.

@marksie1988
Copy link
Collaborator

Ok this was a bug with home assistant a while back, I know there are still some users reporting this issue. See here: home-assistant/core#40127

I'm not sure I can do anything about this as the rest API isn't returning the event.

@SebastiaanVBH
Copy link
Author

Thank you for checking.

I'm using this as a workaround (I rather see extra items from yesterday than missing items from today):

startDaysAhead: -1

@kaizersoje
Copy link

Thank you for checking.

I'm using this as a workaround (I rather see extra items from yesterday than missing items from today):

startDaysAhead: -1

I had the same issue as well and had to use this workaround.

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

No branches or pull requests

3 participants