Home Assistant integration for RAD Hoeksche Waard waste collection.
- Make sure HACS is installed in your Home Assistant instance.
- Add this repository as a custom repository in HACS:
- Go to HACS in your Home Assistant instance
- Click on "Integrations"
- Click the three dots in the top right corner
- Select "Custom repositories"
- Enter
https://github.com/keesmod/ha-rad-hwin the "Repository" field - Select "Integration" as the Category
- Click "Add"
- Search for "RAD Hoeksche Waard Afval" in HACS and install it
- Restart Home Assistant
- Add the integration via the Home Assistant UI (Settings -> Devices & Services -> Add Integration)
- Search for "RAD Hoeksche Waard Afval" and follow the configuration steps
- Copy the
custom_components/rad_hw_afvaldirectory to your Home Assistantcustom_componentsdirectory. - Restart Home Assistant.
- Add the integration via the Home Assistant UI.
The integration can be configured via the Home Assistant UI. You will need to provide:
- Postal code (e.g., 3262CD)
- Street number (e.g., 5)
- Creates sensors for different waste types (rest, gft, papier, pmd)
- Each sensor shows the number of days until the next collection
- The next collection date is available as an attribute
- If a future collection date isn't available, the most recent past date will be shown with an
is_past_dateattribute set totrue - Compatible with Home Assistant 2025.3.2 and likely with earlier versions
You can add the waste collection sensors to your Home Assistant dashboard using this example configuration:
type: sections
max_columns: 4
title: Afval
path: afval
sections:
- type: grid
cards:
- type: heading
heading: Afval
heading_style: title
icon: mdi:trash-can
- type: tile
entity: sensor.rad_hw_afval_gft
show_entity_picture: true
state_content:
- next_pickup_in_days
- state
grid_options:
columns: full
- type: tile
entity: sensor.rad_hw_afval_pmd
show_entity_picture: true
state_content:
- next_pickup_in_days
- state
grid_options:
columns: full
- type: tile
entity: sensor.rad_hw_afval_restafval
show_entity_picture: true
state_content:
- next_pickup_in_days
- state
grid_options:
columns: fullThis creates a clean, modern layout that displays each waste type with the collection date and days until collection.
This integration uses the Ximmio API to fetch waste collection data for RAD Hoeksche Waard. The API endpoints used are:
https://wasteapi2.ximmio.com/api/FetchAdress- To get the address IDhttps://wasteapi2.ximmio.com/api/GetCalendar- To get the waste collection calendar
The integration maps the waste types returned by the API to the following sensor types:
- GREEN -> gft
- GREY -> rest
- PAPER -> papier
- PACKAGES -> pmd
- The integration retrieves a list of pickup dates for each waste type from the API
- For each waste type, it finds the earliest upcoming collection date
- If no future dates are available for a waste type, it falls back to the most recent past date and adds an
is_past_date: trueattribute - Sensors show collection dates as attributes along with the days until collection
- Fixed issue with GFT and PMD missing dates by properly processing all dates in the API response
- Added community parameter to API calls for better matching to browser behavior
- Extended date range to retrieve more future dates (3 years instead of 1 year)
- Added support for fallback to past dates when no future dates are available
- Added
is_past_dateattribute to indicate when a shown date is in the past
If you encounter issues with the integration, you can enable debug logging by adding the following to your configuration.yaml:
logger:
default: info
logs:
custom_components.rad_hw_afval: debug- Missing waste types: Some waste types might not have future collection dates in the API. The integration will show the most recent past date with the
is_past_dateattribute set totrue. - Different dates than shown in the RAD app: Verify your postal code and street number are correct. If the dates still differ, please report it as an issue.
This integration is based on the Afvalbeheer integration.
This integration is licensed under the MIT License.