Giter Site home page Giter Site logo

Comments (5)

idaho avatar idaho commented on May 20, 2024

Hey @Kevin-Kusters could you please post the debug output?
Add only

debug: true

to the card configuration and you will see the debug data.

from hassio-trash-card.

Kevin-Kusters avatar Kevin-Kusters commented on May 20, 2024

Test – Home Assistant.pdf
Hi @idaho, thank you for you quick response.

I have added the debug line. I see a copy debug log button but that doesn't seem to work. So I attached the debug log as a PDF.

from hassio-trash-card.

snigehere avatar snigehere commented on May 20, 2024

I am getting the same issue - I run two calendars one is a manually maintained calendar, the second is a calendar maintained by the waste collection schedule where it pulls records from my council system.

Its Saturday 30th March today I have two bin collections on monday 1st April - the refuse bin, pulled from the waste collection maintained calendar and the second, food waste bin, which is from a manual calendar.

It may not be significant but the manual one works as expected, the entry in the waste collection schedule integration is not correct.

Sorry for the edits here - I needed to clean up what I posted .. adding a picture
Snap26

This shows three cards with titles to show what I see .. as you see the dates are correct, the icon card shows the collections are both two days in advance

Here are two debug logs
First the debug feature is great however as mentioned the copy button does not copy it to the clipboard. I expanded all the sections (I hope) and copy pasted it.

The first debug log shows with the integration set to 1 day in advance it shows the refuse bin as due on 1st April but is already displayed

log 1

Waste collections
DEBUG LOG
timezone
"+00:00"
calendar data
[
{
"start": {
"date": "2024-04-01"
},
"end": {
"date": "2024-04-02"
},
"summary": "refuse bin",
"description": null,
"location": null,
"uid": null,
"recurrence_id": null,
"rrule": null,
"entity": "calendar.portsmouth_city_council"
}
]
normaliseEvents
[
{
"date": {
"start": "2024-04-01T00:00:00.000Z",
"end": "2024-04-02T00:00:00.000Z"
},
"isWholeDayEvent": true,
"content": {
"summary": "refuse bin",
"description": null,
"location": null,
"uid": null,
"recurrence_id": null,
"rrule": null,
"entity": "calendar.portsmouth_city_council"
}
}
]
dropAfter
true
now
"2024-03-30T11:39:49.388Z"
activeElements
[
{
"date": {
"start": "2024-04-01T00:00:00.000Z",
"end": "2024-04-02T00:00:00.000Z"
},
"isWholeDayEvent": true,
"content": {
"summary": "refuse bin",
"description": null,
"location": null,
"uid": null,
"recurrence_id": null,
"rrule": null,
"entity": "calendar.portsmouth_city_council"
}
}
]
eventsToItems
[
{
"date": {
"start": "2024-04-01T00:00:00.000Z",
"end": "2024-04-02T00:00:00.000Z"
},
"isWholeDayEvent": true,
"content": {
"summary": "refuse bin",
"description": null,
"location": null,
"uid": null,
"recurrence_id": null,
"rrule": null,
"entity": "calendar.portsmouth_city_council"
},
"icon": "mdi:trash-can-outline",
"color": "white",
"type": "waste",
"label": "Black bin",
"pattern": "refuse bin",
"idx": 3
}
]

Log 2
For this second log I have changed the "days to display" to 2 and both entities show correctly, I included it for the purpose of compare

DEBUG LOG
timezone
"+00:00"
calendar data
[
{
"start": {
"date": "2024-04-01"
},
"end": {
"date": "2024-04-02"
},
"summary": "refuse bin",
"description": null,
"location": null,
"uid": null,
"recurrence_id": null,
"rrule": null,
"entity": "calendar.portsmouth_city_council"
},
{
"start": {
"date": "2024-04-01"
},
"end": {
"date": "2024-04-02"
},
"summary": "food waste bin",
"description": "",
"location": null,
"uid": "removed when posted",
"recurrence_id": "20240401",
"rrule": "FREQ=WEEKLY;BYDAY=MO",
"entity": "calendar.home_assistant_calendar"
}
]
normaliseEvents
[
{
"date": {
"start": "2024-04-01T00:00:00.000Z",
"end": "2024-04-02T00:00:00.000Z"
},
"isWholeDayEvent": true,
"content": {
"summary": "refuse bin",
"description": null,
"location": null,
"uid": null,
"recurrence_id": null,
"rrule": null,
"entity": "calendar.portsmouth_city_council"
}
},
{
"date": {
"start": "2024-04-01T00:00:00.000Z",
"end": "2024-04-02T00:00:00.000Z"
},
"isWholeDayEvent": true,
"content": {
"summary": "food waste bin",
"description": "",
"location": null,
"uid": "removed when posted",
"recurrence_id": "20240401",
"rrule": "FREQ=WEEKLY;BYDAY=MO",
"entity": "calendar.home_assistant_calendar"
}
}
]
dropAfter
true
now
"2024-03-30T11:41:06.777Z"
activeElements
[
{
"date": {
"start": "2024-04-01T00:00:00.000Z",
"end": "2024-04-02T00:00:00.000Z"
},
"isWholeDayEvent": true,
"content": {
"summary": "refuse bin",
"description": null,
"location": null,
"uid": null,
"recurrence_id": null,
"rrule": null,
"entity": "calendar.portsmouth_city_council"
}
},
{
"date": {
"start": "2024-04-01T00:00:00.000Z",
"end": "2024-04-02T00:00:00.000Z"
},
"isWholeDayEvent": true,
"content": {
"summary": "food waste bin",
"description": "",
"location": null,
"uid": "removed when posted",
"recurrence_id": "20240401",
"rrule": "FREQ=WEEKLY;BYDAY=MO",
"entity": "calendar.home_assistant_calendar"
}
}
]
eventsToItems
[
{
"date": {
"start": "2024-04-01T00:00:00.000Z",
"end": "2024-04-02T00:00:00.000Z"
},
"isWholeDayEvent": true,
"content": {
"summary": "refuse bin",
"description": null,
"location": null,
"uid": null,
"recurrence_id": null,
"rrule": null,
"entity": "calendar.portsmouth_city_council"
},
"icon": "mdi:trash-can-outline",
"color": "white",
"type": "waste",
"label": "Black bin",
"pattern": "refuse bin",
"idx": 3
},
{
"date": {
"start": "2024-04-01T00:00:00.000Z",
"end": "2024-04-02T00:00:00.000Z"
},
"isWholeDayEvent": true,
"content": {
"summary": "food waste bin",
"description": "",
"location": null,
"uid": "removed when posted",
"recurrence_id": "20240401",
"rrule": "FREQ=WEEKLY;BYDAY=MO",
"entity": "calendar.home_assistant_calendar"
},
"label": "Food Waste",
"icon": "mdi:silverware-variant",
"color": "grey",
"type": "custom-5",
"pattern": "Food waste bin",
"idx": 5
}
]

from hassio-trash-card.

idaho avatar idaho commented on May 20, 2024

Really strange bug. I think there is a small possible issue in the calender api from home-assistant. Like you see we get those entries even if the start and end date are set correct. I now filter them manually.

from hassio-trash-card.

Kevin-Kusters avatar Kevin-Kusters commented on May 20, 2024

I see you changed some things. If I am correct it now calculates back from the event end.

What do I need to do to get this fixed? I don't see a Trashcard update in HACS.

from hassio-trash-card.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.