Trash Night ReminderΒΆ
Difficulty: Level 2
π± New here? Try these first:
Never miss bin night again. Two Home Assistant Local Calendars - one for trash, one for recycle - drive a single automation that lights up the Starter Kit's RGB LEDs in a different color for each pickup. When the event starts the LEDs come on; when the event ends they go off.
Before you start
Work through these pages first. This tutorial assumes your device is flashed, the LED & Buzzer module is wired up, and the kit is connected to Home Assistant:
- First Steps to create your starter kit device in ESPHome Device Builder.
- Adding the LED & Buzzer Module to wire up the RGB output.
- Connect to Home Assistant to bring the device's entities into HA.
Find your RGB LED entityΒΆ
The LED & Buzzer module's RGB strip shows up in Home Assistant as a light entity.
- Open Settings β Devices & services β ESPHome in Home Assistant.
- Click your Starter Kit device.
- Under Entities, look for a light entity named RGB LEDs. Click it and note the entity ID near the top of the dialog - it will look something like
light.esphome_starter_kit_rgb_leds. Keep that ID handy.
Create the calendarsΒΆ
Home Assistant's Local Calendar integration stores events entirely inside Home Assistant - no Google account or external service required.
Add the Trash calendar
- Open Settings β Devices & services and click + Add integration.
- Search for Local Calendar and select it.
- Name it
Trashand click Submit. Home Assistant creates a calendar entity calledcalendar.trash.
Add the Recycle calendar
- Click + Add integration again, search for Local Calendar, and repeat with the name
Recycle. This createscalendar.recycle.
Add recurring events
Add a repeating event to each calendar to match your actual pickup schedule.
- Open the Calendar view in your Home Assistant sidebar. If you do not see it, go to Settings β Dashboards and add the Calendar panel.
-
Click the first day your trash goes out to open the new-event dialog.
- Calendar β Trash
- Title β
Trash pickup - Set the start time to the evening before your pickup day (for example, 7 PM the night before). (1)
- Set the end time to the morning of pickup day (for example, 9 AM). (2)
- Enable Repeat and set it to Weekly on the correct day.
- The event start is when the RGB LEDs light up. Setting it to the evening before means the reminder is on while you are home and can act on it.
- The event end is when the LEDs turn back off. Make sure the end time falls after you would normally get the bins back in.
-
Click Save.
- Repeat for the Recycle calendar on your recycle pickup day and time.
Build the automationΒΆ
One automation handles both calendars. Four triggers - event start and event end for each calendar - feed into a Choose action that picks the right color or turns the LEDs off depending on which trigger fired.
Create the automation
- Open Settings β Automations & scenes and click + Create automation β Create new automation.
Add the triggers
Add four triggers, one at a time. Each one is a Calendar trigger, and each gets a Trigger ID so the action block can tell them apart. You set the ID from the trigger's three-dot menu, the same way the Motion-Activated Room Lights automation does.
-
Click + Add trigger, search Calendar, and pick the Calendar trigger.
- Calendar β
Trash - Event β Start
- Open the trigger's three-dot menu, choose Rename, and set the Trigger ID to
trash_start.
- Calendar β
-
Click + Add trigger and add another Calendar trigger.
- Calendar β
Trash - Event β End
- Three-dot menu, Rename, Trigger ID β
trash_end.
- Calendar β
-
Click + Add trigger and add another Calendar trigger.
- Calendar β
Recycle - Event β Start
- Three-dot menu, Rename, Trigger ID β
recycle_start.
- Calendar β
-
Click + Add trigger and add another Calendar trigger.
- Calendar β
Recycle - Event β End
- Three-dot menu, Rename, Trigger ID β
recycle_end.
- Calendar β
Add the choose action
-
Under Then do, click + Add action and search for Choose.
The Choose block works like a branching decision: it checks each option's condition in order and runs the first one that matches.
-
On the first Option, click + Add condition and choose Triggered by. Set the Trigger ID to
trash_start. Under the option's Sequence, click + Add action β Perform action βlight.turn_on:- Target β your RGB LED entity
- RGB color β Red
255, Green140, Blue0(amber) (1) - Brightness β
100%
- Amber is a warm, high-visibility "take out the trash" color that's easy to tell apart from the blue recycle night across a room. See Tune the colors below to match your local bin colors.
-
Click + Add option. Condition: Triggered by β
recycle_start. Sequence:light.turn_ontargeting the same RGB LED entity:- RGB color β Red
0, Green128, Blue255(blue) - Brightness β
100%
- RGB color β Red
-
Click + Add option. Condition: Triggered by β set both
trash_endandrecycle_end. Sequence:light.turn_offtargeting the RGB LED entity. -
Name the automation
Trash night reminderand click Save.
What the automation looks like in YAML
Select Edit in YAML from the three-dot menu on the automation to see or paste the raw config. Your entity IDs will differ from the example below.
alias: Trash night reminder
description: Light up the RGB LEDs when a trash or recycle calendar event starts
triggers:
- trigger: calendar
event: start
entity_id: calendar.trash
id: trash_start
- trigger: calendar
event: end
entity_id: calendar.trash
id: trash_end
- trigger: calendar
event: start
entity_id: calendar.recycle
id: recycle_start
- trigger: calendar
event: end
entity_id: calendar.recycle
id: recycle_end
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id: trash_start
sequence:
- action: light.turn_on
target:
entity_id: light.esphome_starter_kit_rgb_leds
data:
rgb_color: [255, 140, 0]
brightness_pct: 100
- conditions:
- condition: trigger
id: recycle_start
sequence:
- action: light.turn_on
target:
entity_id: light.esphome_starter_kit_rgb_leds
data:
rgb_color: [0, 128, 255]
brightness_pct: 100
- conditions:
- condition: trigger
id:
- trash_end
- recycle_end
sequence:
- action: light.turn_off
target:
entity_id: light.esphome_starter_kit_rgb_leds
mode: single
Test itΒΆ
Rather than waiting for your next pickup night, add a short test event to confirm everything fires.
- Open the Calendar view and add a new event on the Trash calendar starting one minute from now and ending two minutes from now.
- Watch the RGB LEDs. They should turn amber at the start time and go off at the end time.
- Delete the test event once you're done.
Your kit is now a physical reminder for Home Assistant events!
The same pattern works for any calendar-driven reminder - medication schedules, bin days for a second home, watering days for the garden. Swap the colors, the calendar name, or the action and you have a new reminder with no extra hardware.
Tune the colorsΒΆ
Change the rgb_color values in the automation to match your local bin colors or whatever stands out best in your home.
| Color | RGB values | Suggested use |
|---|---|---|
| Amber | 255, 140, 0 |
General trash |
| Blue | 0, 128, 255 |
Recycling |
| Green | 0, 200, 0 |
Compost or yard waste |
| White | 255, 255, 255 |
Bulk pickup or a second reminder |
New to ESPHome? We're here to help.
Stuck on a step or want to show off what you built? Ask questions and share projects with the Apollo community.