It is not always as easy to remember which rubbish should be collected when. Often there is an emptying plan that you have to deal with. One week cardboard/paper is collected, while the next week residual waste may be collected. Fortunately, it is quite easy to keep this in order, and get notifications at the right time with the help of the Home Assistant.
By using the built-in calendar in Home Assistant, you can either enter all collection days manually or you can import these. If you live in Trondheim, Norway, it is also possible to download a separate integration that ensures that the local calendar in Home Assistant is updated correctly.
When all the collection days have been entered in your calendar, you create one or more automations that notify you of what will be collected when.
An example could be that on Sunday you are notified about the type of rubbish that will be collected the following week.
In the example below, the collection day is fixed on Tuesdays, so then the automation runs 36 hours BEFORE the collection day.
This automation then notifies the mobile phone of which rubbish is to be collected, and that it announces this on the Google speaker in the living room.
alias: Garbage
description: Pickup next week
trigger:
- platform: calendar
event: start
offset: "-36:0:0"
entity_id: calendar.trv
condition: []
action:
- device_id: 5b9311606698b3e9d2b64f15eada6464
domain: mobile_app
type: notify
message: >-
Next week it is {{ trigger.calendar_event.summary }} that will be picked
up
title: Garbage
- service: tts.cloud_say
data:
cache: false
entity_id: media_player.stua
message: >-
Next week it is {{ trigger.calendar_event.summary }} that will be picked
up
mode: single
By using {{ trigger.calendar_event.summary }}
in the automation, it retrieves the title of the event in the calendar, and you get this on the message you receive.
Furthermore, it is to follow the same example to create a new automation such as e.g. the evening before collection gives you a little reminder that you have to put out the rubbish bin.