mampfes / hacs_waste_collection_schedule

Home Assistant integration framework for (garbage collection) schedules
MIT License
988 stars 631 forks source link

Multiple sources doesn't work (ICS and abfall_io) #136

Closed og9gjz567 closed 2 years ago

og9gjz567 commented 2 years ago

Hi, the last year your integration works very well and I like your work very much. In 2022 our waste will be collected from two different companies. The first one is available like the year before with abfall_io. The collection dates from the second company I put in an next-cloud calendar. In the calendar-tab from ha I see both types of collections. The sensors show only the collection dates from abfall_io. If I comment out the abfall_io-part I get the collections from the ical.

Here's my config:

waste_collection_schedule:
  sources:

    - name: abfall_io
      calendar_title: Schönmackers
      args:
        key: <stripped>
        f_id_kommune: <stripped>
        f_id_strasse: <stripped>
        f_id_strasse_hnr: <stripped>
      customize:
        - type: Leichtverpackungen
          alias: gelbe Tonne
        - type: Papier
          alias: blaue Tonne
        - type: Schadstoffe
          show: false
        - type: Grünbündel
          show: false

    - name: ics
      calendar_title: RMG Rohstoffmanagement
      args:
        url: !secret ical_trash
      customize:
        - type: Restabfall
          alias: graue Tonne
        - type: Bioabfall
          alias: braune Tonne

My sensors:

- platform: waste_collection_schedule
  name: muell_kalender_test
  details_format: upcoming

grafik

How can I debug what's wrong. Is it stil possible to use 2 sources?

Thank you very much!

mampfes commented 2 years ago

You have to add source_index to your sensors (esp. for the 2nd source).

og9gjz567 commented 2 years ago

Uuups. It's working! ;) Thank you