Let's see if I can plan garbage collection eh?

This commit is contained in:
2023-05-06 04:52:40 -04:00
parent 82dbb7baea
commit eba66b4d79
5 changed files with 107 additions and 0 deletions

View File

@ -5,6 +5,7 @@
{% from 'time.jinja' import input_datetime_12hr %}
{% from 'status.jinja' import emma_sleep %}
{% from 'formatting.jinja' import cleanup %}
{% from 'easy_time.jinja' import count_the_days %}
<p>
"Welcome home, "
{% if is_state('person.tony_stork','home') and is_state('person.christina_stork','home') %}
@ -154,6 +155,18 @@
{{ cleanup(emma_sleep()) }}
</p>
<p>
{% if count_the_days('calendar.garbage_collection','start_time') == 1 %}
{% if state_attr('calendar.garbage_collection','message') == 'Large Garbage Pickup' %}
Tomorrow is the monthly unlimited garbage pickup. Make sure to take out all regular trash, as well as any larger items that need to be disposed of.
{% else %}
Tomorrow is regular garbage pickup. Make sure that all trash cans are emptied and the outside bin has been wheeled to the curb.
{% endif %}
{% elif is_state('calendar.garbage_collection','on') %}
Today is garbage day. If the garbage has already been picked up, please wheel the garbage bin back to the house.
{% endif %}
</p>
<p>
{{ dadjoke() }}
</p>