Hi, i didnât find my location austria 4563 Micheldorf for a ics file and so i configured multiple static source in waste_collection.yaml. The problem is, when i put up more then one start intervall the sensor and calender doesnât work.
here is the waste_collection.yaml
sources:
- name: static
calendar_title: Altpapier
args:
type: Altpapier
frequency: WEEKLY
interval: 4
start: "2023-01-11"
customize:
- type: Altpapier
icon: mdi:trash-can
- name: static
calendar_title: Biomuell
args:
type: Biomuell
frequency: WEEKLY
interval: 1
start: "2023-01-05"
customize:
- type: Biomuell
icon: mdi:flower-outline
- name: static
calendar_title: GelberSack
args:
type: GelberSack
frequency: WEEKLY
interval: 6
start: "2023-02-17"
weekdays: FR
customize:
- type: GelberSack
icon: mdi:recycle
- name: static
calendar_title: Restmuell
args:
type: Restmuell
frequency: WEEKLY
interval: 2
start: "2023-01-05"
customize:
- type: Restmuell
icon: mdi:trash-can
for the sensor, i have made a directory search and so it lookâs like a bit diffrent to your original config
here i have made a global sensor:
platform: waste_collection_schedule
name: next_Muell
source_index: [0, 1, 2, 3]
details_format: "upcoming"
value_template: "{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}"
and then the dedicated sensorâs
platform: waste_collection_schedule
name: Altpapier
source_index: 0
details_format: "upcoming"
value_template: "{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}"
types:
- Altpapier
platform: waste_collection_schedule
name: Biomuell
source_index: 1
details_format: "upcoming"
value_template: "{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}"
types:
- Biomuell
platform: waste_collection_schedule
name: GelberSack
source_index: 2
details_format: "upcoming"
value_template: "{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}"
types:
- GelberSack
platform: waste_collection_schedule
name: Restmuell
source_index: 3
details_format: "upcoming"
value_template: "{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}"
types:
- Restmuell
i made a complete restart from the system for the status:
restmuell: calendar off sensor: unknown
gelbersack: calendar off sensor: in 7 tagen
biomuell: calendar off sensor: unknown
altpapier: calendar off sensor: in 11 tagen
next_Muell: sensor in 6 Tagen with the data of waste paper and yellow sack
2023-06-23: GelberSack
2023-06-28: Altpapier
2023-07-26: Altpapier
2023-08-04: GelberSack
2023-08-23: Altpapier
2023-09-15: GelberSack
2023-09-20: Altpapier
2023-10-27: GelberSack
2023-12-08: GelberSack
2024-01-19: GelberSack
2024-03-01: GelberSack
attribution: Last update: 06/16/23 23:44:45
icon: mdi:recycle
friendly_name: next_Muell
can you help me out with this config problem. i think it is a bug because i have also tryed the config from Bill Schatzow, this is working.