Because my garbage collection always falls on recycling or green waste day. So I only need those two. If the sensor says “green waste tomorrow” I send a reminder that it is garbage and green waste day tomorrow. Likewise for recycling.
Not sure why the colors are not user definable as this is a standard feature of the Google calendar?
Did you create a card on your desktop that shows these triggers? I have 4 different pickups and I had on my desktop icons that changed colors depending on how many days until the pickup and the icon showing the number of days. This was very useful at a glance.
I tried almost the same code as you used above (renaming the calendar card names) and I get for my sensor.garbage_pickup - State unknown. It should show my recycle as it is in the calendar for tomorrow.
What happens if you have two different pickups on the same day? I.e Yard waste and Garbage?
I have followed https://community.home-assistant.io/t/template-guide-days-away-from-calendar-event/211209/47
and created all my sensors. Is there any recommended card to use for the garbage collection? I have not been able to use the custom garbage collection card (yet). Not displaying correctly.
Thanks.
I finally have everything working again as before thanks to help from many. I am posting my yaml files to help others. I believe the Waste_collection_schedule documentation needs some help. No where near as hard. Template sensors were not needed for me.
I have static sensors
-
cards:
- entity: sensor.garbage_col
source: 'hacs_waste_collection_schedule'
icon_color: brown
due_1_color: brown
due_color: red
icon_size: 35px
title: Garbage
type: 'custom:garbage-collection-card'
- entity: sensor.yard_waste_col
source: 'hacs_waste_collection_schedule'
icon_color: yellow
due_1_color: yellow
due_color: red
icon_size: 35px
type: 'custom:garbage-collection-card'
- entity: sensor.recycle_col
source: 'hacs_waste_collection_schedule'
icon_color: blue
due_1_color: blue
due_color: red
icon_size: 35px
type: 'custom:garbage-collection-card'
- entity: sensor.branches_col
source: 'hacs_waste_collection_schedule'
icon_color: green
due_1_color: green
due_color: red
icon_size: 35px
type: 'custom:garbage-collection-card'
type: vertical-stack
Yeah, but only attributes what needs to be displayed is “days left”.
That is available and is shown in states. The only problem is when I use this in garbage card then it wont show “days left” number.
I tried the calendar and could not get it to work. I opened a GitHub issue with the coder of the card.
Please follow here. Not sure what else I can tell you.
I’m a bit late to the party, but this might be useful info.
On YouTube, Bruxy explains how to make a sensor template for state (to change icon color and/or text) and days remaining. The rest is using the capabilities of calendar and a card to display the collection info. Shifting pickup dates due to holidays can easily be done via the calendar GUI.
Did you try my setup above? I have not issues since I changed to it. If that works, then try modifying it. It took me awhile to get it to work correctly.
i have now recreated your config and it works. i am now testing step by step what the problem could be. unfortunately you don’t use a date as the start date and what annoys me is that i have to restart the server every time to get a result. it just takes a really long time…