Hi,
I’m trying to enter static parameter and read with sensors the next picup date.
I get the informations in the Calender and this informations are correct but in the dashboard for the sensors I get only Unknow.
# ------- Garbage Collection -------
# next collection
- platform: waste_collection_schedule
name: "Nächste Abholung"
value_template: '{{value.types|join(", ")}}{% if value.daysTo == 0 %} Heute{% elif value.daysTo == 1 %} Morgen{% else %} in {{value.daysTo}} tagen{% endif %}'
types:
- Restmüll
- Kunststoff & Metal
- Altpapier
# Nächste Restmüll-Abholung
- platform: waste_collection_schedule
name: "Restmüll"
value_template: '{{value.types|join(", ")}}{% if value.daysTo == 0 %} Heute{% elif value.daysTo == 1 %} Morgen{% else %} in {{value.daysTo}} tagen{% endif %}'
source_index: 1
types:
- Restmüll
# Nächste gelber-Sack Abholung
- platform: waste_collection_schedule
name: "Kunststoff & Metal"
value_template: '{{value.types|join(", ")}}{% if value.daysTo == 0 %} Heute{% elif value.daysTo == 1 %} Morgen{% else %} in {{value.daysTo}} tagen{% endif %}'
source_index: 2
types:
- Kunststoff & Metal
# Nächste Papiermüll Abholung
- platform: waste_collection_schedule
name: "Altpapier"
value_template: '{{value.types|join(", ")}}{% if value.daysTo == 0 %} Heute{% elif value.daysTo == 1 %} Morgen{% else %} in {{value.daysTo}} tagen{% endif %}'
source_index: 3
types:
- Altpapier
waste_collection_schedule:
sources:
- name: static
calendar_title: Restmüll
args:
type: Restmüll
frequency: WEEKLY
interval: 4
start: '2024-01-08'
until: '2024-12-31'
weekdays: MO
- name: static
calendar_title: Kunststoff & Metal
args:
type: Kunststoff & Metal
frequency: WEEKLY
interval: 4
start: '2024-01-02'
until: '2024-12-31'
weekdays: MO
- name: static
calendar_title: Altpapier
args:
type: Altpapier
frequency: WEEKLY
interval: 8
start: '2024-01-15'
until: '2024-12-31'
weekdays: MO