You should really take such remarks into account. It is up to others to help you, so if you want that help, you should be able to follow the rules, that are set up to make it a little smoother to help. Don’t forget, you want an answer, so somebody has to give it. If you p*** off people right upfront, it will not be helpful for your question.
Especially this thread would be a good starting point, so you can avoid faults like this in the future.
See here:
Especially #14…
That being said, you shouldn’t do that conversion in your markdown, it is way easier in the sensor itself.
sensor:
- platform: waste_collection_schedule
name: waste_collection_waste
details_format: upcoming
add_days_to: true
value_template: >-
{% if value.daysTo == 0 %}
HEUTE
{% elif value.daysTo == 1 %}
MORGEN
{% else %}
in {{value.daysTo}} Tagen
{% endif %}
types:
- Restmuelltonne
Same goes for the customization entries, do it at the global level:
homeassistant:
customize:
sensor.waste_collection_waste:
friendly_name: Restmüll
icon: 'mdi:trash-can'