Home Assistant component to pull data from Northern Ireland ABC Council website regarding bin collection dates based on address provided.
- Navigate to your HACs instance
- Search ABC Council Bin Collection then download latest version
- Restart Home Assistant
- Install this component by copying these files to
/custom_components/abc_council_bin_collection/. - Restart Home Assistant
- Click above button OR navigate to Settings > Devices & Services
- Click Add Integration, search ABC Council Bin Collection, then click the ABC Council Bin Collection
- Navigate to ABC Council website via the link in the setup
- Enter your postcode, click Submit, then enter your house number, click Submit
- Copy the complete URL, or copy the value after ?address=
- Paste the URL/value into the input field then click Submit
When the integration is added, the Configure button offers additional options/features.
- Update Interval (default: 120, minimum: 6) - Change the frequency it fetches data in hours.
- Create Calendar Events (default: unticked) - Creates calendar events automatically
- Note: Requires calendar such as Google Calendar to be installed and have read/write permission.
- Calendar Entity - Specify the calendar entity to create the events under
- This accepts the entity of for example "calendar.my_calendar" or "my_calendar"
- Domestic Collections Summary, Recycling Collections Summary, and Garden & Food Collections Summary - allows you to specify the preferred calendar event name for the calendar events for each such as if you prefer the bin color.
- If Create Calendar Events is ticked, the integration must be reloaded to take effect.
If you wish to be notified a day before as a reminder then please use the code found in automation.yaml file which serves as a baseline on how to set it up. In my example it triggers at 20:00 the day before by showing a Home Assistant app notification specifying which bin needs to be placed out.
- This doesn't require the calendar feature to be enabled.
- x3 sensor entities for the types of bins - the state will be the next collection date, then subsequent dates are placed in state attributes called all_dates
- sensor.domestic_collections
- sensor.recycling_collections
- sensor.garden_food_collections
- button entity for clearing persistent storage for the calendar bin events
- button.clear_bin_events