Waste Collection Schedule Framework

Hello all,

since today I have a similar issue as @N_O; exactly the same log file.
has any one an idea how I can solve it?

Hey @chma73 it is an issue of the abfallplus servers as you can see here:

1 Like

Ok so bare with me… but here is where i am lost. I see that City of Edmonton is supported under Canada. In fact it is supported twice, City of Edmonton and Waste wise APPS. I click it and i follow the instructions, i get the URL for the ICS and strip the client ID. Nothing works… i look at the examples and almost all of them have the client ID in the URL… so why did it tell me to strip it. None of the examples are for city of Edmonton, fine… but then why was it shown on the page before?

I am stuck at the first important step here, because the instructions say one thing, the examples say another and i’ve tried both and they don’t seem to work for me. I need some hand holding on this one.

Update: i got it working in the local calendar… proper dates show up and its split properly. Now my sensors are messed up. working on that.

I had just set up Somerset County Council through the iweb integration and it was working but now it’s not pulling through any new dates anymore and getting unknown in my sensors. In the iCal there was date, but since Xmas they have updated things to move dates of collections.

I have checked my setup and nothing has changed, and I can’t work out why it’s not working. Any ideas?

EDIT:

Looking at the calendar, it looks like it’s not pulling through anymore data after this week.

1 Like

Has anyone seen a youtube video on how to set this up? I’d like to get it running but I’m dumb

Just go through the installation steps in the documentation slowly:

The problem and danger with YouTube tutorials is that they very quickly go out of date as things move on, but it’s not clear to the poor “dumb” user (your words) that it no longer applies.

Looks like I’ve got it working thanks. Now to try to get it so I can ask Alexa when and what the next collection is. If anyone has any pointers I’d be happy to hear them.

image

Edit:

Actually, I’ve noticed an issue… food is every week but not showing on the 19th.

image

    sources:
    - name: bracknell_forest_gov_uk
      args:
        post_code: "xxxx xxx"
        house_number: "xx"

sensor:
  - platform: waste_collection_schedule
    name: Waste collection
    types:
      - Food
      - Recycling
      - General Waste

I think the API for Lewisham has broken?
I can’t get it to work, when I had it working previously. Additionally some of the links in the .py are leading to 404 pages.
Is there a way of testing this?

Hello, I´m struggerling with the sensors. I´m usiung an .ics file. For me it looks fine, but 2 of 4 are not working - status unkown.

Here the samples from the ,ics file:

DTSTART;VALUE=DATE:20240408
DTEND;VALUE=DATE:20240409
DTSTAMP:20240129T215103Z
SUMMARY:Papiertonne
LOCATION:Einhonstrasse, 0101 Regenbogen

DTSTART;VALUE=DATE:20240131
DTEND;VALUE=DATE:20240201
DTSTAMP:20240129T215103Z
SUMMARY:Biotonne
LOCATION:Einhonstrasse, 0101 Regenbogen
SEQUENCE:1706565063

config.yaml:

waste_collection_schedule:
  sources:
    - name: ics
      args:
        file: "www/waste.ics"
      customize:
        - type: Biotonne
          alias: Bio
          icon: mdi:flower-outline
        - type: Gelbe Tonne
          alias: Gelbe
          icon: mdi:recycle
        - type: Restmülltonne
          alias: Rest
          icon: mdi:trash-can
        - type: Papiertonne
          alias: Papier
          icon: mdi:trash-can-outline

sensor.yaml:

   
  - platform: waste_collection_schedule
    name: AbfallRestmuell
    details_format: "upcoming"
    value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}'
    types:
      - Rest

  - platform: waste_collection_schedule
    name: AbfallPapierTonne
    details_format: "upcoming"
    value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}'
    types:
      - Papier

  - platform: waste_collection_schedule
    name: AbfallGelberSack
    details_format: "upcoming"
    value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}'
    types:
      - Gelbe

  - platform: waste_collection_schedule
    name: AbfallBiotonne
    details_format: "upcoming"
    value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}'
    types:
      - Bio

  - platform: waste_collection_schedule
    name: AbfallRestmuellnext
    details_format: "upcoming"
    value_template: 'am: {{value.date.strftime("%d.%m.%Y")}}'
    types:
      - Rest

  - platform: waste_collection_schedule
    name: AbfallPapierTonnenext
    details_format: "upcoming"
    value_template: 'am: {{value.date.strftime("%d.%m.%Y")}}'
    types:
      - Papier

  - platform: waste_collection_schedule
    name: AbfallGelberSacknext
    details_format: "upcoming"
    value_template: 'am: {{value.date.strftime("%d.%m.%Y")}}'
    types:
      - Gelbe

  - platform: waste_collection_schedule
    name: AbfallBiotonnenext
    details_format: "upcoming"
    value_template: 'am: {{value.date.strftime("%d.%m.%Y")}}'
    types:
      - Bio
      
  - platform: waste_collection_schedule
    name: AbfallNaechster
    details_format: "upcoming"
    value_template: ' {{ value.daysTo }} '



AbfallNaechster shows all the events form the ics.

abfall

Can´t find the error. I now - it was sitting in front of the keyboard :wink:

somebody can help?

Hi Bernd,

I had the same problem (also in Bergisch Gladbach :wink:),
I have put all strings that contain spaces in quotation marks. For example:

waste_collection_schedule:
  sources:
    - name: abfallnavi_de
      args:
        service: aw-bgl2
        ort: "Bergisch Gladbach"
        strasse: "Voiswinkeler Straße"

You have also added an error.
Correct is “service: aw-bgl2” and not “service: aw-bg12”

Jens

1 Like

Ok, got the solution. Have to use quotation marks for the trash like “Papiertonne“

Hey Guys,

I’ve got a small issue that I’m struggling to work with a bit - I’m currently using the bruxy integration, and want to move across to this integration, given it’s still got support.

One thing I do with the bruxy integration is to call “bin day” the day I have to put the bins out, rather than the day that the bins are collected, which is how this integration works.

How on earth do I get it to subtract a day from the “daysTo” value?

value_template: "{{ value.daysTo - 1 }}"

If that doesn’t answer the question adequately, show me where you are reading the daysTo value from.

perfect - I was very much too close to what I was trying to do - thanks heaps! :slight_smile:

If I want it to tell me “Today” when it’s “bin day” how on earth do I do that? That’s starting to push my limits…

The FAQ has the following example, but that’s looking at the actual day, rather than the day the bins go out…

value_template: '{% if value.daysTo == 0 %}Today{% elif value.daysTo == 1 %}Tomorrow{% else %}in {{value.daysTo}} days{% endif %}

value_template: "{% if value.daysTo == 1 %}Today{% elif value.daysTo == 2 %}Tomorrow{% else %}in {{value.daysTo + 1}} days{% endif %}"

duh, makes perfect sense - thanks again

Hi,

i have the same problem - i live also in Nürnberg - Humboldtstr… Can you please provide a valid configuration?
Michael

I checked my configuration - now it works:

waste_collection_schedule:
sources:
- name: abfallnavi_de
args:
service: nuernberg
ort: Nürnberg
strasse: Humboldtstrasse
hausnummer: 12345

Hi all!

I have set up sensors for waste and now I wanted to create automation which triggers 1 day before waste collection (let’s say at 9pm day before). I have trouble extracting the value.types from sensor output since I’m quite a noob in programming.

My sensor is:

- platform: waste_collection_schedule
    name: naslednji_odvoz_odpadkov
    value_template: "{{value.types[0]}} čez {{value.daysTo}} dni"
    date_template: '{{value.date.strftime("%a, %d.%m.%Y")}}'

And it works and I get like following output
Preostanek komunalnih odpadkov čez 2 dni

I understand this output is from value.types and value.daysTo

In automation I would use:

action:
  - service: notify.mobile_app_pixel_6
    data_template:
      message: >-
        Jutri odpeljejo {{ states('sensor.naslednji_odvoz_odpadkov', 'value.types' }}.

the part with {{ states('sensor.naslednji_odvoz_odpadkov', 'value.types' }} it’s just a wild guess for me.
I don’t know how to “extract” the sensor state to notification…Tomorrow is xxxx waste collection.

can someone help me? Or give me some pointers how to write template?
Thanks!