A Home Assistant custom integration for Auckland Waste Collection that fetches rubbish, recycling, and food waste collection days from Auckland Council.
- ποΈ Rubbish collection day sensor
- β»οΈ Recycling collection day sensor
- π Food Waste collection day sensor
- π Shows days until next collection
- π¨ Custom Lovelace card for beautiful display
- π Automatic updates every 12 hours
- Open HACS in Home Assistant
- Click on "Integrations"
- Click the three dots in the top right corner
- Select "Custom repositories"
- Add this repository URL with category "Integration"
- Click "Install"
- Restart Home Assistant
- Copy the
custom_components/auckland_wastefolder to your Home Assistant'scustom_componentsdirectory - Copy
www/auckland-waste-card.jsto your Home Assistant'swwwfolder - Restart Home Assistant
- Go to Settings β Devices & Services
- Click + Add Integration
- Search for "Auckland Waste Collection"
- Enter your area number
- Go to Auckland Council's collection day finder
- Enter your address and search
- The assessment number shown for your property is your area number (e.g.,
12345678901)
The integration creates three sensors for each configured area:
| Sensor | Description |
|---|---|
sensor.auckland_waste_XXX_rubbish |
Next rubbish collection date |
sensor.auckland_waste_XXX_recycling |
Next recycling collection date |
sensor.auckland_waste_XXX_food_waste |
Next food waste collection date |
Each sensor includes the following attributes:
date- Collection date (YYYY-MM-DD)day_of_week- Day of the week (e.g., "Wednesday")formatted_date- Human-readable date (e.g., "Wednesday, 8 October")days_until- Number of days until collectionis_today- True if collection is todayis_tomorrow- True if collection is tomorrowwaste_type- Type of waste (rubbish, recycle, food-waste)area_number- Your Auckland Council area number
Add the following to your Lovelace resources:
- Go to Settings β Dashboards β Resources (three dots menu)
- Click + Add Resource
- Enter
/local/auckland-waste-card.js - Select "JavaScript Module"
- Click "Create"
Add the card to your dashboard:
type: custom:auckland-waste-card
title: Waste Collection
entities:
- sensor.auckland_waste_702_rubbish
- sensor.auckland_waste_702_recycling
- sensor.auckland_waste_702_food_wasteOr use the area number directly:
type: custom:auckland-waste-card
title: Waste Collection
area_number: "702"automation:
- alias: "Rubbish Day Reminder"
trigger:
- platform: state
entity_id: sensor.auckland_waste_702_rubbish
condition:
- condition: template
value_template: "{{ state_attr('sensor.auckland_waste_702_rubbish', 'is_tomorrow') }}"
action:
- service: notify.mobile_app
data:
title: "ποΈ Rubbish Day Tomorrow"
message: "Put out the rubbish bin tonight!"automation:
- alias: "Collection Day Morning Reminder"
trigger:
- platform: time
at: "07:00:00"
condition:
- condition: or
conditions:
- condition: template
value_template: "{{ state_attr('sensor.auckland_waste_702_rubbish', 'is_today') }}"
- condition: template
value_template: "{{ state_attr('sensor.auckland_waste_702_recycling', 'is_today') }}"
- condition: template
value_template: "{{ state_attr('sensor.auckland_waste_702_food_waste', 'is_today') }}"
action:
- service: notify.mobile_app
data:
title: "β»οΈ Waste Collection Today"
message: >
Today's collections:
{% if state_attr('sensor.auckland_waste_702_rubbish', 'is_today') %}ποΈ Rubbish {% endif %}
{% if state_attr('sensor.auckland_waste_702_recycling', 'is_today') %}β»οΈ Recycling {% endif %}
{% if state_attr('sensor.auckland_waste_702_food_waste', 'is_today') %}π Food Waste {% endif %}- Verify your area number is correct
- Check if the Auckland Council website is accessible
- Look at Home Assistant logs for error messages
- Make sure you've added the card resource
- Clear your browser cache
- Check the browser console for JavaScript errors
This project is licensed under the MIT License.
Contributions are welcome! Please feel free to submit a Pull Request.
This integration is not affiliated with or endorsed by Auckland Council. It scrapes publicly available data from the Auckland Council website.