I use this custom component: https://github.com/bruxy70/Garbage-Collection
configuration.yaml
garbage_collection:
sensors:
- name: "Waste" # Each week on Monday
frequency: "weekly"
collection_days: "mon"
- name: "Recycling" # Bi-weekly on Monday
frequency: "odd-weeks"
collection_days: "mon"
#################################################################
## Garbage Binary Sensors
#################################################################
- platform: template
sensors:
recycling_today:
entity_id: sensor.recycling
friendly_name: "Recycling Today"
value_template: "{{ is_state('sensor.recycling', '0') }}"
- platform: template
sensors:
recycling_tomorrow:
entity_id: sensor.recycling
friendly_name: "Recycling Tomorrow"
value_template: "{{ is_state('sensor.recycling', '1') }}"
- platform: template
sensors:
garbage_today:
entity_id: sensor.waste
friendly_name: "Garbage Today"
value_template: "{{ is_state('sensor.waste', '0') }}"
- platform: template
sensors:
garbage_tomorrow:
entity_id: sensor.waste
friendly_name: "Garbage Tomorrow"
value_template: "{{ is_state('sensor.waste', '1') }}"
#################################################################
## Garbage and Recycling Reminder Automation
#################################################################
- id: garbage_reminder
alias: 'Garbage Reminder'
initial_state: true
trigger:
platform: time
at: '20:00:00'
condition:
condition: time
weekday:
- sun
action:
- service: notify.telegram_general
data_template:
title: '*Information*'
message: >
{% if is_state('binary_sensor.recycling_tomorrow', 'on') %}
Reminder - it is garbage and recycling night.
{% else %}
Reminder - it is garbage and green waste night.
{% endif %}
- condition: state
entity_id: input_boolean.dnd # do not disturb
state: "off"
- service: tts.google_translate_say
entity_id: media_player.entranceway_speaker
data_template:
message: >
{% if is_state('binary_sensor.recycling_tomorrow', 'on') %}
Reminder. It is garbage and recycling night.
{% else %}
Reminder. It is garbage and green waste night.
{% endif %}
Part of my Lovelace Reminders Card:
entities:
- card:
content: ''
style: |
ha-card {
border: solid 2px var(--primary-color);
box-shadow: none;
--ha-card-background: rgba(0, 0, 0, 0);
}
title: Garbage and Recycling Tomorrow
type: 'custom:hui-markdown-card'
conditions:
- entity: binary_sensor.recycling_tomorrow
state: 'on'
type: 'custom:hui-conditional-card'
- card:
content: ''
style: |
ha-card {
border: solid 2px var(--primary-color);
box-shadow: none;
--ha-card-background: rgba(0, 0, 0, 0);
}
title: Garbage and Recycling Today
type: 'custom:hui-markdown-card'
conditions:
- entity: binary_sensor.recycling_today
state: 'on'
type: 'custom:hui-conditional-card'
- card:
content: ''
style: |
ha-card {
border: solid 2px var(--primary-color);
box-shadow: none;
--ha-card-background: rgba(0, 0, 0, 0);
}
title: Garbage and Green Waste Tomorrow
type: 'custom:hui-markdown-card'
conditions:
- entity: binary_sensor.recycling_tomorrow
state: 'off'
- entity: binary_sensor.garbage_tomorrow
state: 'on'
type: 'custom:hui-conditional-card'
- card:
content: ''
style: |
ha-card {
border: solid 2px var(--primary-color);
box-shadow: none;
--ha-card-background: rgba(0, 0, 0, 0);
}
title: Garbage and Green Waste Today
type: 'custom:hui-markdown-card'
conditions:
- entity: binary_sensor.recycling_today
state: 'off'
- entity: binary_sensor.garbage_today
state: 'on'
type: 'custom:hui-conditional-card'
show_header_toggle: false
style: |
ha-card {
border: solid 2px var(--primary-color);
}
title: Reminders
type: entities
I’ll post a screenshot Sunday.
EDIT: