[UK] Looking for a beginner friendly tutorial on displaying when bins go out

I’m really new to Home Assistant,
Only got my first sensor last week and a Conbee 2 USB Stick.

Thought it would be cool to display which bin goes out on friday?
General or Recycling

I successfully use scrape sensor on the council’s website, does you council have s site where you put in your postcode and get the next collection dates ?

Hi Jon

There could be multiple ways of doing this but the one I use and like is through a custom component.
First step would be to install HACS, the community addon store: HACS
Once that has been installed, search in the integrations tab for “Garbage Collection” its also available here https://github.com/bruxy70/Garbage-Collection
Once that’s installed and home assistant restarted you should be able to add your two bins under the garbage collection sensor in the integration menu.

2 Likes

Yes, I used to use that but my council has a habit of changing the days around holidays.

My lot release a years worth of dates including all the holiday changes, you can set them up in a Google Calendar, make a new one specifically for it if you want as they’re free, only takes a minute to set up if you set the standard alternating ones as recurring and then just revise the holiday changes. Then use the Google Calendar component in HA to set up sensors to show the info you want in the front end…

Just keep the calendar itself up to date and HA will keep up.

You may find this useful…

Just tried this myself out of interest as I just use calendar notifications to put them out the night before. We have green, grey and brown bins and in the calendar they are referred to as ‘whatever colour bin collection’ so I added a new calendar under the main one like this…

  - device_id: bins
    ignore_availability: true
    name: Bin collection
    track: true
    search: 'bin'

This creates an entity called calendar.bins from which you can then use the message state which is the next event on the calendar to create a sensor which varies according to that state, in my case Green bin collection, Grey bin collection or Brown bin collection could just display the colour as a word or a different coloured pictogram for instance.

This is the sensor to go with it…

- platform: template
  sensors:
    bin_collection:
      value_template: '{{ states.calendar.bins.attributes.message }}'
      friendly_name: 'Next collection'

Or you could use the lovelace calendar card and have something simple like this…

Screenshot 2020-06-24 at 17.16.43

Just checked Sefton Council to see, they have a calander (.pdf) which dates to december but that’s about it so i could just manually put that it somewhere

Just had a look and there is data on there but I don’t know how to scrape from an .APSX webpage, sorry, maybe the manual input into a google calendar as mentioned above is your best bet

Yes! could you please tell me more? Thank you

Bin Collection Calendar Dates - West Lothian Council this is the website to put the postcode in

Its a while since I did this !
You will need a postcode and address in that site, Then press F12 in chrome to see the output and hover over each of the dates, should say it on the RHS.
Have a search on this forum for ways to use the scrape sensor with this info, it can be a LOT of trial and error !

You could put a request on here, this is what I’m using now:

1 Like

@Holdestmade thanks for flagging this one up. That integration is perfect. I have the information I need now how do I display it?

May I ask what approach you have taken to display or alert? Do you have a card or some other notification?

I use a custom made picture elements card (coloured outline if bin is due) and also alexa announces at bedtime if the bins are due tomorrow.

I also have a 3D printed wheelie bin in the hallway that glows the right colour if the bin is due to be put out tomorrow (using esphome and a single RGB LED)

1 Like

Nice. That’s somewhat more advanced than my simple entity filter card but for now it does what I need. Your solution is something to aspire to! :sunglasses:

I have a bin (or two) on my floorplan showing the colors and number of days to collect and after clicking it’s opening the popup card like this: