Garbage Collection vs. auto-entities and add_days_to: True

Hello. Try to sort my Waste Collection Schedule with “daysTo”. But it wouldn´t work. What do i wrong?

Sensor:

- platform: waste_collection_schedule
  name: Restmuell
  details_format: "upcoming"
  add_days_to: True
  value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% elif value.daysTo == 2 %}Übermorgen{% else %}{{value.daysTo}} Tage{% endif %}'
  types:
    - Restmuell

- platform: waste_collection_schedule
  name: Bioabfall
  details_format: "upcoming"
  add_days_to: True
  value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% elif value.daysTo == 2 %}Übermorgen{% else %}{{value.daysTo}} Tage{% endif %}'
  types:
    - Bioabfall

- platform: waste_collection_schedule
  name: GelbeTonne
  details_format: "upcoming"
  add_days_to: True
  value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% elif value.daysTo == 2 %}Übermorgen{% else %}{{value.daysTo}} Tage{% endif %}'
  types:
    - GelbeTonne

- platform: waste_collection_schedule
  name: PapierMuell
  details_format: "upcoming"
  add_days_to: True
  value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% elif value.daysTo == 2 %}Übermorgen{% else %}{{value.daysTo}} Tage{% endif %}'
  types:
    - PapierMuell

Lovelace Card:

type: custom:auto-entities
card:
  type: entities
sort: daysTo
entities:
  - sensor.restmuell
  - sensor.gelbetonne
  - sensor.papiermuell
  - sensor.bioabfall
1 Like

→ Push ←

1 Like