Waste Collection Schedule Framework

@HAerror Not sure if I understood your problem completely. Is “Braune Tonne” equal to “Bio Abfall”?

You added a timedelta for the “Braune Tonne Datum”. This only changes the value of this sensor, but not the day_to attribute.

Are you using the ICS source? If yes, there is an attribute offset to correct such mismatches.

do i have to seprate the ics then?

waste_collection_schedule:
  sources:
    - name: ics
      calendar_title: Restmüll & Wertstoff
      args:
        url: XXXics
      customize: 
        - type: Gelbe Tonne
          alias: Gelbe Tonne
          icon: mdi:recycle
        - type: Restabfallbehaelter
          alias: Graue Tonne
          icon: mdi:trash-can
        - type: Blaue Tonne
          alias: Blaue Tonne
          icon: mdi:trash-can 
        - type: Braune Tonne
          alias: Braune Tonne
          icon: mdi:trash-can 
          

Many thanks Stefan. will attempt to get it running tonight. Appreciate the response.

@HAerror Yes, if the offset doesn’t apply to all waste types. Simply add another ICS source (and don’t forget to set source_index for the sensors of the 2nd source).

Hello, can anyone help me here please

waste schedule is setup properly as no error on logs but i can’t find the sensor.

Am i missing something here?
Thanks

waste_collection_schedule:
  sources:
    - name: stoke_on_trent_gov_uk
      args:
        uprn: "UNIQUE_NUMBER_HERE"
sensor:
  - platform: waste_collection_schedule
    name: Household
    details_format: upcoming
    value_template: '{{value.types|join(" + ")}} in {{value.daysTo}} days'

  - platform: waste_collection_schedule
    name: Recycle
    details_format: upcoming
    value_template: '{{value.types|join(" + ")}} in {{value.daysTo}} days'

  - platform: waste_collection_schedule
    name: Garden
    details_format: upcoming
    value_template: '{{value.types|join(" + ")}} in {{value.daysTo}} days'

looking at the sources folder is it not just stoke_gov_uk?

@nicstreet, @Jerick Indeed, the source name is stoke_gov_uk. I fixed the docu and the missing link (PR is ongoing).

1 Like

@mampfes , Great thank you so much.

For my sensor are those correct btw?

Thanks again

@Jerick You want to have sensors per waste type, right? Then you have to add the types attribute as well. Otherwise the sensor will show all waste types.

@mampfes thanks, i managed to sort it. As i forgot to call the service first to show the types of bin.

Thank you for your help

Hello, can you please tell me how to setup multiple sources as i tried in my config

waste_collection_schedule:
  sources:
    - name: Abfallwirtschaft_Fuerth_LK
      args:
        url: https://webdienste.landkreis-fuerth.de/WasteManagementFuerth/WasteManagementServiceServlet?ApplicationName=Calendar&SubmitAction=sync&StandortID=26778639001&AboID=162194&Fra=P;R;B;S;G
      customize:
        - type: Restmuelltonne und -container
          alias: Restmüll
          icon: mdi:trash-can   
        - type: Gelbe Tonne und -Container
          alias: Gelber Sack
          icon: mdi:recycle
        - type: Papiertonne und -container
          alias: Altpapier
          icon: mdi:file-document
        - type: Biotonne
          alias: Bioabfall
          icon: mdi:leaf
    - name: Abfallwirtschaft_Fuerth
      args:
        url: https://abfallwirtschaft.fuerth.eu/termine.php?icalexport=95833001
      customize:
        - type: Restabfall
          alias: Restmüll Studio
          icon: mdi:trash-can   
        - type: Gelber Sack
          alias: Gelber Sack Studio
          icon: mdi:recycle
        - type: Altpapier
          alias: Altpapier Studio
          icon: mdi:file-document
        - type: Bioabfall
          alias: Bioabfall Studio
          icon: mdi:leaf

  fetch_time:  "00:00"
  #random_fetch_time_offset: RANDOM_FETCH_TIME_OFFSET
  day_switch_time: "10:00"
  #separator: SEPARATOR

for the Sensors i have the following

sensor:
  - platform: waste_collection_schedule
    name: Restmüll
    details_format: "upcoming"
    value_template: >-
      {% if value.daysTo == 1 %}
        in 1 Tag
      {% elif value.daysTo == 0 %}
        heute
      {% else %}
        in {{value.daysTo}} Tagen
      {% endif %}
    date_template: '{{value.date.strftime("%d.%m.%Y")}}'
    add_days_to: True
    types:
      - Restmüll

  - platform: waste_collection_schedule
    name: Restmüll Studio
    details_format: "upcoming"
    value_template: >-
      {% if value.daysTo == 1 %}
        in 1 Tag
      {% elif value.daysTo == 0 %}
        heute
      {% else %}
        in {{value.daysTo}} Tagen
      {% endif %}
    date_template: '{{value.date.strftime("%d.%m.%Y")}}'
    add_days_to: True
    types:
      - Restmüll Studio

  - platform: waste_collection_schedule
    name: Gelber Sack
    details_format: "upcoming"
    value_template: >-
      {% if value.daysTo == 1 %}
        in 1 Tag
      {% elif value.daysTo == 0 %}
        heute
      {% else %}
        in {{value.daysTo}} Tagen
      {% endif %}
    date_template: '{{value.date.strftime("%d.%m.%Y")}}'
    add_days_to: True
    types:
      - Gelber Sack
      
  - platform: waste_collection_schedule
    name: Gelber Sack Studio
    details_format: "upcoming"
    value_template: >-
      {% if value.daysTo == 1 %}
        in 1 Tag
      {% elif value.daysTo == 0 %}
        heute
      {% else %}
        in {{value.daysTo}} Tagen
      {% endif %}
    date_template: '{{value.date.strftime("%d.%m.%Y")}}'
    add_days_to: True
    types:
      - Gelber Sack Studio

  - platform: waste_collection_schedule
    name: Altpapier
    details_format: "upcoming"
    value_template: >-
      {% if value.daysTo == 1 %}
        in 1 Tag
      {% elif value.daysTo == 0 %}
        heute
      {% else %}
        in {{value.daysTo}} Tagen
      {% endif %}
    date_template: '{{value.date.strftime("%d.%m.%Y")}}'
    add_days_to: True
    types:
      - Altpapier
      
  - platform: waste_collection_schedule
    name: Altpapier Studio
    details_format: "upcoming"
    value_template: >-
      {% if value.daysTo == 1 %}
        in 1 Tag
      {% elif value.daysTo == 0 %}
        heute
      {% else %}
        in {{value.daysTo}} Tagen
      {% endif %}
    date_template: '{{value.date.strftime("%d.%m.%Y")}}'
    add_days_to: True
    types:
      - Altpapier Studio

  - platform: waste_collection_schedule
    name: Bioabfall
    details_format: "upcoming"
    value_template: >-
      {% if value.daysTo == 1 %}
        in 1 Tag
      {% elif value.daysTo == 0 %}
        heute
      {% else %}
        in {{value.daysTo}} Tagen
      {% endif %}
    date_template: '{{value.date.strftime("%d.%m.%Y")}}'
    add_days_to: True
    types:
      - Bioabfall
      
  - platform: waste_collection_schedule
    name: Bioabfall Studio
    details_format: "upcoming"
    value_template: >-
      {% if value.daysTo == 1 %}
        in 1 Tag
      {% elif value.daysTo == 0 %}
        heute
      {% else %}
        in {{value.daysTo}} Tagen
      {% endif %}
    date_template: '{{value.date.strftime("%d.%m.%Y")}}'
    add_days_to: True
    types:
      - Bioabfall Studio

  - platform: waste_collection_schedule
    name: Nächste Abholung
    details_format: "upcoming"
    value_template: '{{value.types|join(", ")}} am {{value.date.strftime("%d.%m.%Y")}} ({{value.date.strftime("%A")}})'
    date_template: '{{value.date.strftime("%d.%m.%Y")}}'
    add_days_to: True
    
  - platform: waste_collection_schedule
    name: Nächste Abholung Studio
    details_format: "upcoming"
    value_template: '{{value.types|join(", ")}} am {{value.date.strftime("%d.%m.%Y")}} ({{value.date.strftime("%A")}})'
    date_template: '{{value.date.strftime("%d.%m.%Y")}}'
    add_days_to: True

when i setup only one source than everything works
but combining the 2 sources doesnt work… what am i missing?

I had to remove the priority etc. because not every notify device can use the defaults correctly. For me it is Pushover.

And it would be nice to have an exclude entity filter.
Reason: I have a entity “upcoming events” and this one is included in your blueprint, too.

source_index is missing in the sensor config.

I don’t know why, but from one day to the next, it no longer works for me.

As far as I can see, the code in the card, the ICS file and the sensors.yaml are correct. Where would I have to start to fix this?

Sensor

ICS File

Can you show the content of the ICS file? You posted the sensors twice :slight_smile:

Hey there… I have already done the setup once and it worked… but now at my second attempt it doesn’t want to give me any results. It’s always ‘unkown’. I try to set up the Framework with mymuell und i’ve already tried it with the city and street name as well as with the ids. Here’s my yaml code:

Hey there,

im trying to get this to work with AWIDO as source.

my conf looks like this:

waste_collection_schedule:
  sources:
    - name: awido_de
      args:
        customer: fulda-stadt
        city: Fulda
        street: Witzelstr.
        housenumber: 1

but the AWIDO entity says its offline. in fact for every street in Fulda, using fulda-stadt as the region…

am I too stupid or is “fulda-stadt” for AWIDO buggy? On the site itself it works… it also works if I use “fulda” as customer value, but it’s not the right one for my region, I need “fulda-stadt” since I live in the city itself. “fulda” is for the smaller cities around Fulda

Ok the Street has to be written out completely… not like in the examples. Works now

@LoHonix Do you see entries in the Home Assistant calendar? If yes, your customize type doesn’t match. If not, do you see entries in the HA log?