Where to save an ICS file to be able to use it in configuration.yaml?

Hello,

I would like to display the rubbish collection dates using “waste_collection_schedule”.
Unfortunately, my city works with its own system for which no grabbers exist.
Therefore I am forced to generate an ICS file on the homepage at the beginning of each year.
I then have to save this manually on my HA installation and then have it processed.

Currently I have simply saved the muell.ics file directly in the configuration.yaml directory.
But that doesn’t seem to work.

Here is my code:

waste_collection_schedule:
  sources:
    - name: ics
      args:
        url: "muell.ics"
      customize:
        - type: "Restmüll 14-täglich"
          alias: Restmülltonne
        - type: "Altpapier 4-wöchentlich"
          alias: Altpapiertonne
        - type: Biotonne
          alias: Biotonne
        - type: "Gelbe Tonne, 14-täglich"
          alias: Gelbe Tonne

sensor:
  - platform: waste_collection_schedule
    name: Abfall
    details_format: "upcoming"
  - platform: waste_collection_schedule
    name: Restmuell_date
    value_template: '{{value.date.strftime("%d.%m.%Y")}}'
    types:
      - Restmülltonne
  - platform: waste_collection_schedule
    name: Restmuell_collection
    value_template: '{{value.daysTo}}'
    types:
      - Restmülltonne
  - platform: waste_collection_schedule
    name: Papier_Date
    value_template: '{{value.date.strftime("%d.%m.%Y")}}'
    types:
      - Altpapiertonne
  - platform: waste_collection_schedule
    name: Papier_collection
    value_template: '{{value.daysTo}}'
    types:
      - Altpapiertonne
  - platform: waste_collection_schedule
    name: bio_date
    value_template: '{{value.date.strftime("%d.%m.%Y")}}'
    types:
      - Biotonne
  - platform: waste_collection_schedule
    name: bio_collection
    value_template: '{{value.daysTo}}'
    types:
      - Biotonne
  - platform: waste_collection_schedule
    name: plastik_date
    value_template: '{{value.date.strftime("%d.%m.%Y")}}'
    types:
      - Gelbe Tonne
  - platform: waste_collection_schedule
    name: plastik_collection
    value_template: '{{value.daysTo}}'
    types:
      - Gelbe Tonne

Can someone please tell me where to save the ICS file and which path to enter in the url?

config/www/muell.ics

Then, the url http://HA url/local/muell.ics

Or, https if you use that.

Under “/config/” there is no folder “www”

I have created it and everything works.

thx

1 Like