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.
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
- entity: sensor.garbage_col
- entity: sensor.yard_waste_col
- entity: sensor.recycle_col
- entity: sensor.branches_col
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.