We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey! First of all, thanks for this nice integration.
I've build a sensor in configuration for display how many days until colletion date. Feel free to use it, too.
template: - sensor: - name: "Abholung Restmüll" unique_id: "abholung_restmuell" unit_of_measurement: "Days" icon: mdi:trash-can state: > {% set days_to = (((as_timestamp(strptime(states('sensor.restabfall'), "%Y-%m-%d"))) - as_timestamp(now())) / 86400) | round(0, "ceil", default)%} {% if days_to == 0 %}Heute{% elif days_to == 1 %}Morgen{% else %}in {{days_to}} Tagen{% endif %}
Greetings torsti09
The text was updated successfully, but these errors were encountered:
Hey torsti09, thanks for your blueprint. I adjusted it for my case.
- platform: template sensors: countdown_restmuell: friendly_name: "Abholung Restmüll" value_template: > {% set days_to = (((as_timestamp(strptime(states('sensor.restabfall'), "%Y-%m-%d"))) - as_timestamp(now())) / 86400) | round(default=0) %} {% if days_to == 0 %}Heute{% elif days_to == 1 %}Morgen{% else %}in {{days_to}} Tagen{% endif %}
Cheers Arnerei
Sorry, something went wrong.
No branches or pull requests
Hey!
First of all, thanks for this nice integration.
I've build a sensor in configuration for display how many days until colletion date.
Feel free to use it, too.
Greetings
torsti09
The text was updated successfully, but these errors were encountered: