Wife and E's status reports
This commit is contained in:
@ -280,4 +280,60 @@ Tony does not have a stream scheduled today. The next scheduled stream is in {{
|
||||
{{ medReportKallen() }}
|
||||
{{ schoolReportKallen(method) }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro workReportTina(method) %}
|
||||
{% from 'time.jinja' import input_datetime_12hr %}
|
||||
{% set tina = states.person.christina_stork.state %}
|
||||
{% if method == 'tts' %}
|
||||
{% if is_state('binary_sensor.evening','on') %}
|
||||
{% if tina in ['Bob Evans','BobEvans'] and is_state('input_boolean.work_today','on') %}
|
||||
<s>Tina is at work right now. She will be done at approximately {{ input_datetime_12hr('input_datetime.tina_workday_end') }}. </s>
|
||||
{% elif is_state('input_boolean.work_today','on') %}
|
||||
Tina has work today.
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if tina in ['Bob Evans','BobEvans'] and is_state('input_boolean.work_today','on') %}
|
||||
{{ [
|
||||
"Tina is still at work right now, ",
|
||||
"Tina has not yet been released from work, ",
|
||||
"Tina is still at the thankless idiot scape known as work, ",
|
||||
"Tina is still consumed by the gods of capitalism, ",
|
||||
] | random }} she will be done at approximately {{ input_datetime_12hr('input_datetime.tina_workday_end') }}.
|
||||
{% elif is_state('input_boolean.work_today','on') %}
|
||||
{{ [
|
||||
"Tina must go and please the food gods today ",
|
||||
"Today, Tina must go and entertain the gremlins known as her customers and coworkers ",
|
||||
"Today, Tina will be owned by our lovely lord and savior, capitalism, starting ",
|
||||
"Tina will attempt to satiate the patron saint of capitalism today "
|
||||
] | random }} at {{ input_datetime_12hr('input_datetime.tina_workday_start') }}.
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% elif method == 'text' %}
|
||||
{% if tina in ['Bob Evans','BobEvans'] and is_state('input_boolean.work_today','on') %}
|
||||
Tina is at work right now. She will be done at approximately {{ input_datetime_12hr('input_datetime.tina_workday_end') }} today.
|
||||
{% elif is_state('input_boolean.work_today','on') %}
|
||||
Tina has work at {{ input_datetime_12hr('input_datetime.tina_workday_start') }} today.
|
||||
{% else %}
|
||||
Tina has today off from work.
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro tinaStatusReport(type,method) %}
|
||||
{% from 'status.jinja' import workReportTina %}
|
||||
{% if type == 'work' %}
|
||||
{{ workReportTina(method) }}
|
||||
{% elif type == 'full' %}
|
||||
{{ workReportTina(method) }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro emmaStatusReport(type,method) %}
|
||||
{% from 'status.jinja' import emma_sleep %}
|
||||
{% if type == 'sleep' %}
|
||||
{{ emma_sleep() }}
|
||||
{% elif type == 'full' %}
|
||||
{{ emma_sleep() }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
@ -3,8 +3,8 @@
|
||||
{%- macro getReport() -%}
|
||||
{% from 'speech.jinja' import greeting, dadjoke, inspirational_quote %}
|
||||
{% from 'time.jinja' import input_datetime_12hr %}
|
||||
{% from 'status.jinja' import emma_sleep, tonyStatusReport, kallenStatusReport %}
|
||||
{% from 'easy_time.jinja' import count_the_days, custom_time %}
|
||||
{% from 'status.jinja' import tonyStatusReport, tinaStatusReport, kallenStatusReport, emmaStatusReport %}
|
||||
{% from 'easy_time.jinja' import count_the_days %}
|
||||
<p>
|
||||
{{ greeting() }}
|
||||
</p>
|
||||
@ -148,12 +148,7 @@
|
||||
Tomorrow is Tony and Christina's wedding anniversary!
|
||||
{% endif %}
|
||||
|
||||
{% set tina = states.person.christina_stork.state %}
|
||||
{% if tina in ['Bob Evans','BobEvans'] and is_state('input_boolean.work_today','on') %}
|
||||
<s>Tina is at work right now. She will be done at approximately {{ input_datetime_12hr('input_datetime.tina_workday_end') }}. </s>
|
||||
{% elif is_state('input_boolean.work_today','on') %}
|
||||
Tina has work today.
|
||||
{% endif %}
|
||||
{{ tinaStatusReport('work','tts') }}
|
||||
|
||||
|
||||
{% else %}
|
||||
@ -265,32 +260,16 @@
|
||||
{%- endif -%}
|
||||
{%- endif -%}
|
||||
|
||||
{% set tina = states.person.christina_stork.state %}
|
||||
{% if tina in ['Bob Evans','BobEvans'] and is_state('input_boolean.work_today','on') %}
|
||||
{{ [
|
||||
"Tina is still at work right now, ",
|
||||
"Tina has not yet been released from work, ",
|
||||
"Tina is still at the thankless idiot scape known as work, ",
|
||||
"Tina is still consumed by the gods of capitalism, ",
|
||||
] | random }} she will be done at approximately {{ input_datetime_12hr('input_datetime.tina_workday_end') }}.
|
||||
{% elif is_state('input_boolean.work_today','on') %}
|
||||
{{ [
|
||||
"Tina must go and please the food gods today ",
|
||||
"Today, Tina must go and entertain the gremlins known as her customers and coworkers ",
|
||||
"Today, Tina will be owned by our lovely lord and savior, capitalism, starting ",
|
||||
"Tina will attempt to satiate the patron saint of capitalism today "
|
||||
] | random }} at {{ input_datetime_12hr('input_datetime.tina_workday_start') }}.
|
||||
{% endif %}
|
||||
{{ tinaStatusReport('work','tts') }}
|
||||
|
||||
{{ tonyStatusReport('stream','tts') }}
|
||||
|
||||
{{ kallenStatusReport('school','tts') }}
|
||||
|
||||
{{ emmaStatusReport('sleep','tts') }}
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{ emma_sleep() }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
'Around the house, there are currently {{ states('sensor.current_lights_on') }} lights on. '
|
||||
|
@ -3,7 +3,7 @@
|
||||
{%- macro getReport() -%}
|
||||
{% from 'speech.jinja' import greeting_nodate, dadjoke, inspirational_quote %}
|
||||
{% from 'time.jinja' import input_datetime_12hr %}
|
||||
{% from 'status.jinja' import tonyStatusReport %}
|
||||
{% from 'status.jinja' import tonyStatusReport, tinaStatusReport, kallenStatusReport, emmaStatusReport %}
|
||||
{% from 'easy_time.jinja' import count_the_days %}
|
||||
<p>
|
||||
{{ greeting_nodate() }}
|
||||
@ -100,14 +100,7 @@
|
||||
{% endif %}
|
||||
</p>
|
||||
<p>
|
||||
{% if is_state('input_boolean.work_today','on') %}
|
||||
{{ [
|
||||
"Tina must go and please the food gods today ",
|
||||
"Today, Tina must go and entertain the gremlins known as her customers and coworkers ",
|
||||
"Today, Tina will be owned by our lovely lord and savior, capitalism, starting ",
|
||||
"Tina will attempt to satiate the patron saint of capitalism today "
|
||||
] | random }} at {{ input_datetime_12hr('input_datetime.tina_workday_start') }}.
|
||||
{% endif %}
|
||||
{{ tinaStatusReport('work','tts') }}
|
||||
</p>
|
||||
<p>
|
||||
{% if is_state('input_boolean.kallen_school_today','on') and is_state('input_boolean.work_today','on') %}
|
||||
|
@ -3,7 +3,7 @@
|
||||
{%- macro getReport() -%}
|
||||
{% from 'speech.jinja' import greeting, dadjoke, inspirational_quote %}
|
||||
{% from 'time.jinja' import input_datetime_12hr, read_time_from_calendar, next_twitch_stream %}
|
||||
{% from 'status.jinja' import emma_sleep, tonyStatusReport %}
|
||||
{% from 'status.jinja' import tonyStatusReport, tinaStatusReport, kallenStatusReport, emmaStatusReport %}
|
||||
{% from 'easy_time.jinja' import count_the_days %}
|
||||
<p>
|
||||
{{ greeting() }}
|
||||
@ -90,6 +90,8 @@
|
||||
"Tina will not be at the thankless idiot scape known as work tomorrow. ",
|
||||
] | random }}
|
||||
{% endif %}
|
||||
|
||||
{{ emmaStatusReport('sleep','tts') }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
@ -215,10 +217,6 @@
|
||||
{% endif %}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{{ emma_sleep() }}
|
||||
</p>
|
||||
|
||||
<p>
|
||||
{% if (states('sensor.overnight_lowest_temperature') | int) <= (states('input_number.overnight_low_threshold') | int ) %}
|
||||
"It will be very cold tonight, make sure to use extra blankets, wear more clothes, or whatever else will help you stay warm! Additionally, make sure Emma's heater is set high enough!"
|
||||
|
Reference in New Issue
Block a user