Comments (5)
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.
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.
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
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.
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.
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)
- customize date HOT 4
- Translation: Danish
- [Feature]: Option to show "counter" day_style without "in" (shortened)
- [Bug]: Half-hour timezone offset prevents events from showing
- [Feature]: <title> Time until and Date side by side
- Weekday in "Custom Date" HOT 1
- [Feature]: Adjust font colour based on background colour
- [Bug]: items_per_row value is ignored HOT 2
- [Bug]: <Wrong Date show on card>
- [Feature]: Font Size
- [Feature]: icon only style with tomorrow / today instead of numbers of days
- Put Bins Out
- Remove icon background
- [Bug]: days in future bug (#274) persists HOT 1
- [Feature]: mouse-over color effect for Mushroom-Card Design
- [Feature]: Support for sensors?
- Small help needed HOT 2
- [Feature]: Possible to blink the next Event
- [Feature]: Same width for all cards in card mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hassio-trash-card.