This is a simple integration to pull rubbish collection information from St Albans Council's notice board.
The screenshot uses the Mushroom Entity widget and the Metrology theme.
Via HACS
Or:
- Open the HACS panel in your Home Assistant frontend.
- Click the three dots in the top-right corner and select "Custom Repositories".
- Add a new custom repository:
- URL: jshiell/homeassistant-stalbansrubbishcollections
- Category: Integration
- Click "Save" and then click "Install" on the integration.
- Clone this repository.
- Copy
custom_components/stalbansrubbishcollections
into yourconfig/custom_components
directory. - Restart Home Assistant.
-
Add the integration, providing your UPRN.
You'll need some sensors to expose the state:
template:
- sensor:
- unique_id: rubbish_recycling_next
state: "{{as_timestamp(state_attr('sensor.stalbans_rubbish_collection_<your uprn>', 'CollectDomesticRecycling')['next']) | timestamp_custom('%d/%m/%Y') }}"
attributes:
friendly_name: "Next recycling collection date"
- sensor:
- unique_id: rubbish_recycling_last
state: "{{as_timestamp(state_attr('sensor.stalbans_rubbish_collection_<your uprn>', 'CollectDomesticRecycling')['last']) | timestamp_custom('%d/%m/%Y') }}"
attributes:
friendly_name: "Last recycling collection date"
- sensor:
- unique_id: rubbish_refuse_next
state: "{{as_timestamp(state_attr('sensor.stalbans_rubbish_collection_<your uprn>', 'CollectDomesticRefuse')['next']) | timestamp_custom('%d/%m/%Y') }}"
attributes:
friendly_name: "Next refuse collection date"
- sensor:
- unique_id: rubbish_refuse_last
state: "{{as_timestamp(state_attr('sensor.stalbans_rubbish_collection_<your uprn>', 'CollectDomesticRefuse')['last']) | timestamp_custom('%d/%m/%Y') }}"
attributes:
friendly_name: "Last refuse collection date"
- sensor:
- unique_id: rubbish_food_next
state: "{{as_timestamp(state_attr('sensor.stalbans_rubbish_collection_<your uprn>', 'CollectDomesticFood')['next']) | timestamp_custom('%d/%m/%Y') }}"
attributes:
friendly_name: "Next food waste collection date"
- sensor:
- unique_id: rubbish_food_last
state: "{{as_timestamp(state_attr('sensor.stalbans_rubbish_collection_<your uprn>', 'CollectDomesticFood')['last']) | timestamp_custom('%d/%m/%Y') }}"
attributes:
friendly_name: "Last food waste collection date"
- sensor:
- unique_id: rubbish_garden_next
state: "{{as_timestamp(state_attr('sensor.stalbans_rubbish_collection_<your uprn>', 'CollectDomesticPaidGarden')['next']) | timestamp_custom('%d/%m/%Y') }}"
attributes:
friendly_name: "Next garden waste collection date"
- sensor:
- unique_id: rubbish_garden_last
state: "{{as_timestamp(state_attr('sensor.stalbans_rubbish_collection_<your uprn>', 'CollectDomesticPaidGarden')['last']) | timestamp_custom('%d/%m/%Y') }}"
attributes:
friendly_name: "Last garden waste collection date"