Added daily door openings to nightly briefing because...I...can?
This commit is contained in:
@ -363,6 +363,22 @@
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
"For some useless trivia that no one asked for, I present to you the following: "
|
||||
{% if (states('sensor.front_door_opened_today') | int) > 0 %}
|
||||
"Today, the front door was opened {{ states('sensor.front_door_opened_today') }} times. "
|
||||
{% else %}
|
||||
"Today, the front door was never opened at all. Wow, did you people seriously not go anywhere? "
|
||||
{% endif %}
|
||||
{% if (states('sensor.back_door_opened_today') | int) > 0 %}
|
||||
{% if (states('sensor.back_door_opened_today') | int) == 1 %}
|
||||
"And in a rare and shocking incident, the back door was also opened today! But only just once. There's no telling what could happen otherwise! "
|
||||
{% else %}
|
||||
"In what has to be considered a near catastrophic incident, the back door was opened multiple times today! {{ states('sensor.back_door_opened_today') }} times, to be precise! "
|
||||
{% endif %}
|
||||
{% 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') }} "
|
||||
|
Reference in New Issue
Block a user