Es funktioniert ! Danke für eure Hilfe !
Es sieht wunderschön aus
Config.Yaml :
Sensors.Yaml
Es sieht wunderschön aus
Config.Yaml :
YAML:
waste_collection_schedule:
sources:
- name: ics
args:
file: "www/abfallkalender"
customize:
- type: Restmüll grüne Woche
alias: Restmüll grüne Woche
icon: mdi:trash-can
- type: Gelber Sack
alias: Gelber Sack
icon: mdi:recycle
- type: Altpapier
alias: Altpapier
icon: mdi:trash-can
fetch_time: "04:00"
day_switch_time: "10:00"
Sensors.Yaml
YAML:
# Müll Termine
- platform: waste_collection_schedule
name: Restmüll grüne Woche
details_format: "upcoming"
value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}'
types:
- Restmüll grüne Woche
- platform: waste_collection_schedule
name: Altpapier
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: Gelber Sack
details_format: "upcoming"
value_template: '{% if value.daysTo == 0 %}Heute{% elif value.daysTo == 1 %}Morgen{% else %}in {{value.daysTo}} Tagen{% endif %}'
types:
- Gelber Sack
- platform: waste_collection_schedule
name: next_waste_collection_daysto
details_format: upcoming
value_template: '{{value.types|join(", ")}} in {{value.daysTo}} Tagen'
#button-card#
- platform: waste_collection_schedule
name: MyButtonCardSensor
value_template: '{{value.types|join(", ")}}|{{value.daysTo}}|{{value.date.strftime("%d.%m.%Y")}}|{{value.date.strftime("%a")}}'