mampfes / hacs_waste_collection_schedule

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

Source jumomind_de: sensors with type filtering without data #210

Closed LinusHoppe closed 2 years ago

LinusHoppe commented 2 years ago

Environment: Waste Collection Schedule 1.18.0 (HACS) Home Assistant core-2022.4.5

My garbage data: https://mymuell.jumomind.com/webservice.php?idx=termins&city_id=64111&area_id=64111

My configuration:

waste_collection_schedule:
  sources:
    - name: jumomind_de
      args:
        service_id: mymuell
        city_id: 64111
        area_id: 64111
      customize:
        - type: PAD_BIO
          alias: Bio
        - type: PAD_P
          alias: Papier
        - type: PAD_WERT
          alias: Gelbetonne
        - type: PAD_REST
          alias: Rest
        - type: PAD_EKG
          alias: elektro
          show: false
        - type: PAD_SCHAD
          alias: schad
          show: false
      calendar_title: Abfall

sensor:
  - platform: waste_collection_schedule
    name: Abfall
    value_template: '{{ value.daysTo }}'

  - platform: waste_collection_schedule
    name: Abfallbio
    value_template: '{{ value.daysTo }}'
    types:
      - Bio

  - platform: waste_collection_schedule
    name: Abfallpapier
    value_template: '{{ value.daysTo }}'
    types:
      - Papier

  - platform: waste_collection_schedule
    name: Abfallgelb
    value_template: '{{ value.daysTo }}'
    types:
      - Gelbetonne

  - platform: waste_collection_schedule
    name: Abfallrest
    value_template: '{{ value.daysTo }}'
    types:
      - Rest

What is working:

What is not working:

mampfes commented 2 years ago

I tried your configuration and I see completely different waste types: image The filter has to match the waste type (or the alias if you specified an alias), so for your configuration: Restmülltonne, Biotonne, etc.

BTW: Your customize section is completely useless because it doesn't match die real waste types.

LinusHoppe commented 2 years ago

@mampfes: Sorry, misconfiguration. Works for me now using the configuration Restmülltonne, Biotonne etc. Please close/delete