Updated briefings with better garbage collection logic
This commit is contained in:
@ -96,7 +96,9 @@
|
||||
<p>
|
||||
Let me check the sit rep for today.
|
||||
|
||||
{% if dow == 'Monday' %}
|
||||
{% if is_state('sensor.garbage_collection_large_pickup','1') %}
|
||||
'Tomorrow is the monthly unlimited garbage pickup. Make sure to take out all large garbage items tonight, and do not forget the trash can!'
|
||||
{% elif is_state('sensor.garbage_collection','1') %}
|
||||
{{ [
|
||||
'Do not forget to take the trash bin to the curb, tomorrow is trash pickup day.',
|
||||
'Make sure to take the trash out. No, I do not mean Tony.',
|
||||
@ -104,13 +106,12 @@
|
||||
] | random }}
|
||||
{% endif %}
|
||||
|
||||
{% if dow == 'Tuesday' %}
|
||||
{% if is_state('binary_sensor.evening','on') %}
|
||||
{{ [
|
||||
'Do not forget to bring the trash can back from the curb.',
|
||||
'The trash can will feel lonely if you leave it at the curb all night.'
|
||||
] | random }}
|
||||
{% endif %}
|
||||
{% set gc = state_attr('sensor.garbage_collection','days') %}
|
||||
{% if gc == 7 %}
|
||||
{{ [
|
||||
'Do not forget to bring the trash can back from the curb.',
|
||||
'The trash can will feel lonely if you leave it at the curb all night.'
|
||||
] | random }}
|
||||
{% endif %}
|
||||
|
||||
{% if is_state('binary_sensor.evening','on') %}
|
||||
|
@ -120,6 +120,26 @@
|
||||
It appears no traffic reports are needed today. Enjoy your day off!
|
||||
{% endif %}
|
||||
|
||||
<p>
|
||||
{% if is_state('sensor.garbage_collection_large_pickup','1') %}
|
||||
'Tomorrow is the monthly unlimited garbage pickup. Make sure to take out all large garbage items tonight, and do not forget the trash can!'
|
||||
{% elif is_state('sensor.garbage_collection','1') %}
|
||||
{{ [
|
||||
'Do not forget to take the trash bin to the curb, tomorrow is trash pickup day.',
|
||||
'Make sure to take the trash out. No, I do not mean Tony.',
|
||||
'Tomorrow is a big day for the garbage men. Make sure you do not let them down! Take the trash out!'
|
||||
] | random }}
|
||||
{% endif %}
|
||||
|
||||
{% set gc = state_attr('sensor.garbage_collection','days') %}
|
||||
{% if gc == 7 %}
|
||||
{{ [
|
||||
'Do not forget to bring the trash can back from the curb.',
|
||||
'The trash can will feel lonely if you leave it at the curb all night.'
|
||||
] | random }}
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% if is_state('input_boolean.briefing_extras','on') %}
|
||||
"And now we have the following extra information to pass along. {{ states('input_text.briefing_extras') }} "
|
||||
|
@ -31,13 +31,25 @@
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
{% set dow = as_timestamp(now()) | timestamp_custom('%A') %}
|
||||
{% if dow == 'Monday' %}
|
||||
"I hope that by now you have remembered to take the garbage can to the curb. "
|
||||
{% endif %}
|
||||
{% if dow == 'Tuesday' %}
|
||||
"At this point you should have already done this, but make sure the garbage can is brought back to the house! "
|
||||
{% endif %}
|
||||
<p>
|
||||
{% if is_state('sensor.garbage_collection_large_pickup','1') %}
|
||||
'Tomorrow is the monthly unlimited garbage pickup. Make sure to take out all large garbage items tonight, and do not forget the trash can!'
|
||||
{% elif is_state('sensor.garbage_collection','1') %}
|
||||
{{ [
|
||||
'Do not forget to take the trash bin to the curb, tomorrow is trash pickup day.',
|
||||
'Make sure to take the trash out. No, I do not mean Tony.',
|
||||
'Tomorrow is a big day for the garbage men. Make sure you do not let them down! Take the trash out!'
|
||||
] | random }}
|
||||
{% endif %}
|
||||
|
||||
{% set gc = state_attr('sensor.garbage_collection','days') %}
|
||||
{% if gc == 7 %}
|
||||
{{ [
|
||||
'Do not forget to bring the trash can back from the curb.',
|
||||
'The trash can will feel lonely if you leave it at the curb all night.'
|
||||
] | random }}
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
"Bedroom climate scheduling will be as follows. "
|
||||
|
@ -124,6 +124,26 @@
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% if is_state('sensor.garbage_collection_large_pickup','1') %}
|
||||
'Tomorrow is the monthly unlimited garbage pickup. Make sure to take out all large garbage items tonight, and do not forget the trash can!'
|
||||
{% elif is_state('sensor.garbage_collection','1') %}
|
||||
{{ [
|
||||
'Do not forget to take the trash bin to the curb, tomorrow is trash pickup day.',
|
||||
'Make sure to take the trash out. No, I do not mean Tony.',
|
||||
'Tomorrow is a big day for the garbage men. Make sure you do not let them down! Take the trash out!'
|
||||
] | random }}
|
||||
{% endif %}
|
||||
|
||||
{% set gc = state_attr('sensor.garbage_collection','days') %}
|
||||
{% if gc == 7 %}
|
||||
{{ [
|
||||
'Do not forget to bring the trash can back from the curb.',
|
||||
'The trash can will feel lonely if you leave it at the curb all night.'
|
||||
] | random }}
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% if is_state('light.living_room_lights','on') %}
|
||||
{% if is_state('input_boolean.early_night_mode','on') %}
|
||||
|
Reference in New Issue
Block a user