Updating Speech...minor cleaning...

This commit is contained in:
Jeffrey Stone 2021-03-13 22:28:49 -05:00
parent 76c986fcff
commit 61e12d5153
3 changed files with 50 additions and 81 deletions

View File

@ -25,14 +25,7 @@
{% endif %} {% endif %}
{{ [ Today is {{states.sensor.today_is.state }}.
'Today is ',
'If you have not been keeping track today is ',
'Do you know what day of the week it is? Today is',
'I hate to be the bearer of bad news, but today is ',
'Oh look, once again it is '
]|random }}
{{states.sensor.today_is.state }}.
</p> </p>
<p> <p>
It is currently {{states.weather.home.state}} and {{states.sensor.acurite_6045m_3078_t.state|round}} degrees in Grayson. It is currently {{states.weather.home.state}} and {{states.sensor.acurite_6045m_3078_t.state|round}} degrees in Grayson.
@ -46,12 +39,12 @@
It is going to be chilly today. so I suggest wearing at least long pants. It is going to be chilly today. so I suggest wearing at least long pants.
{% elif is_state('sensor.clothing_forecast', 'Nice') %} {% elif is_state('sensor.clothing_forecast', 'Nice') %}
It is going to be It is going to be
{{ [ 'nice outside', {{ [ 'nice outside. ',
'pretty nice outside ', 'pretty nice outside. ',
'a good day to be outside ', 'a good day to be outside. ',
'rather enjoyable outside ', 'rather enjoyable outside. ',
] | random }} ] | random }}
today. So I suggest wearing shorts. So I suggest wearing shorts.
{% elif is_state('sensor.clothing_forecast', 'Toasty') %} {% elif is_state('sensor.clothing_forecast', 'Toasty') %}
It is going to be It is going to be
{{ [ 'bit warm ', {{ [ 'bit warm ',
@ -76,37 +69,23 @@
</p> </p>
<p> <p>
{% if states.calendar.skylar_school.attributes.offset_reached == True and is_state('calendar.school_holiday', 'off') %} {% if states.calendar.skylar_school.attributes.offset_reached == True and is_state('calendar.school_holiday', 'off') %}
{{ [ 'Skylar has school today.', {{ [ 'Today is a school day.',
'Skylar needs to head to school in about forty minutes. ', 'Skylar has school today. '
'Skylar should go to school today. '
] | random }} ] | random }}
{% if states.calendar.skylar_school.attributes.description == 'digital-learning' %} {% if states.calendar.skylar_school.attributes.description == 'digital-learning' %}
And today is a digital learning day so the commute will be short. But it is a digital learning day so the commute will be short.
{% endif %} {% endif %}
{% if states.calendar.skylar_school.attributes.description == 'early-release' %} {% if states.calendar.skylar_school.attributes.description == 'early-release' %}
But It is early release! And It is early release!
{% endif %} {% endif %}
{% endif %} {% endif %}
</p> </p>
<p> <p>
{% if states.calendar.skylar_school.attributes.offset_reached == True and is_state('calendar.school_holiday', 'off') %} {% if states.calendar.skylar_school.attributes.offset_reached == True and is_state('calendar.school_holiday', 'off') %}
Today for Lunch at school {% if states.sensor.school_lunch.state == 'Nothing' %}
{% if states.calendar.skylar_school.attributes.description == 'lunch-nuggets' %} Skylar will want to take his lunch today.
they are having Chicken Nuggets.
{% elif states.calendar.skylar_school.attributes.description == 'lunch-gwinnettburger' %}
they are having Gwinnetts Best Burger.
{{ [ 'Which seems like an overstatement if you ask me.',
'But is it really?',
'If you like this, I know where to find Texas Best Barbeque.'
] | random }}
{% elif states.calendar.skylar_school.attributes.description == 'lunch-pizza' %}
it is Pizza.
{% elif states.calendar.skylar_school.attributes.description == 'lunch-minipups' %}
it is Mini Corn Pups.
{% elif states.calendar.skylar_school.attributes.description == 'lunch-hotdogs' %}
it is Mini Corn Pups.
{% else %} {% else %}
it might be a good day to take something. Today's school lunch is {{ states.sensor.school_lunch.state }}, so he might be interested in buying his lunch.
{% endif %} {% endif %}
{% endif %} {% endif %}
</p> </p>

View File

@ -24,30 +24,30 @@
It is going to be chilly today. so I suggest wearing at least long pants. It is going to be chilly today. so I suggest wearing at least long pants.
{% elif is_state('sensor.clothing_forecast', 'Nice') %} {% elif is_state('sensor.clothing_forecast', 'Nice') %}
It is going to be It is going to be
{{ [ 'nice outside', {{ [ 'nice outside.',
'pretty nice outside ', 'pretty nice outside. ',
'a good day to be outside ', 'a good day to be outside. ',
'rather enjoyable outside ', 'rather enjoyable outside. ',
] | random }} ] | random }}
today. So I suggest wearing shorts. So I suggest wearing shorts.
{% elif is_state('sensor.clothing_forecast', 'Toasty') %} {% elif is_state('sensor.clothing_forecast', 'Toasty') %}
It is going to be It is going to be
{{ [ 'bit warm ', {{ [ 'bit warm today. ',
' rather warm outside ', ' rather warm outside. ',
' almost too hot outside ', ' almost too hot outside. ',
' a little warm ', ' a little warm today. ',
] | random }} ] | random }}
today. So I suggest wearing shorts. So I suggest wearing shorts.
{% elif is_state('sensor.clothing_forecast', 'Hot') %} {% elif is_state('sensor.clothing_forecast', 'Hot') %}
It is going to be It is going to be
{{ [ 'hot', {{ [ 'hot',
'hotter than the sun ', 'hotter than the sun today. ',
'hotter than hot. but in a lot of bad ways ', 'hotter than hot. but in a lot of bad ways today. ',
'hotter than the sun outside ', 'hotter than the sun outside. ',
'super hot ', 'super hot today. ',
'hotter than the inside of a volcano ' 'hotter than the inside of a volcano today. Well not exactly, but you get the point. '
] | random }} ] | random }}
today. So I suggest wearing shorts. So I suggest wearing shorts.
{% else %} {% else %}
It is going to be {{ states.sensor.clothing_forecast.state }} today so I suggest wearing shorts. It is going to be {{ states.sensor.clothing_forecast.state }} today so I suggest wearing shorts.
{% endif %} {% endif %}
@ -56,22 +56,22 @@
{% if states.calendar.skylar_school.attributes.offset_reached == True and is_state('calendar.school_holiday', 'off') %} {% if states.calendar.skylar_school.attributes.offset_reached == True and is_state('calendar.school_holiday', 'off') %}
Because you have school today! Because you have school today!
{% if states.calendar.skylar_school.attributes.description == 'digital-learning' %} {% if states.calendar.skylar_school.attributes.description == 'digital-learning' %}
And today is a digital learning day. But today is a digital learning day.
{% endif %} {% endif %}
{% if states.calendar.skylar_school.attributes.description == 'early-release' %} {% if states.calendar.skylar_school.attributes.description == 'early-release' %}
And guess what? It is early release! And guess what? It is early release!
{% endif %} {% endif %}
{% if states.calendar.skylar_school.attributes.description == 'start_thanksgiving_break' %} {% if states.calendar.skylar_school.attributes.description == 'start_thanksgiving_break' %}
And One More Thing. Tomorrow is the first day of Thanksgiving Break. Oh, One More Thing. Tomorrow is the first day of Thanksgiving Break.
{% endif %} {% endif %}
{% if states.calendar.skylar_school.attributes.description == 'start_winter_break' %} {% if states.calendar.skylar_school.attributes.description == 'start_winter_break' %}
And One More Thing. Tomorrow is the first day of Winter Break. Oh, One More Thing. Tomorrow is the first day of Winter Break.
{% endif %} {% endif %}
{% if states.calendar.skylar_school.attributes.description == 'start_spring_break' %} {% if states.calendar.skylar_school.attributes.description == 'start_spring_break' %}
And One More Thing. Tomorrow is the first day of Spring Break. Oh, One More Thing. Tomorrow is the first day of Spring Break.
{% endif %} {% endif %}
{% if states.calendar.skylar_school.attributes.description == 'start_fall_break' %} {% if states.calendar.skylar_school.attributes.description == 'start_fall_break' %}
And One More Thing. Tomorrow is the first day of Fall Break. Oh, One More Thing. Tomorrow is the first day of Fall Break.
{% endif %} {% endif %}
{% else %} {% else %}
{% if is_state('calendar.school_holiday', 'on') %} {% if is_state('calendar.school_holiday', 'on') %}
@ -90,23 +90,10 @@
</p> </p>
<p> <p>
{% if states.calendar.skylar_school.attributes.offset_reached == True and is_state('calendar.school_holiday', 'off') %} {% if states.calendar.skylar_school.attributes.offset_reached == True and is_state('calendar.school_holiday', 'off') %}
Today for Lunch at school {% if states.sensor.school_lunch.state == 'Nothing' %}
{% if states.calendar.skylar_school.attributes.description == 'lunch-nuggets' %} You are going to want to take your own lunch today.
they are having Chicken Nuggets.
{% elif states.calendar.skylar_school.attributes.description == 'lunch-gwinnettburger' %}
they are having Gwinnetts Best Burger.
{{ [ 'Which seems like an overstatement if you ask me.',
'But is it really?',
'If you like this, I know where to find Texas Best Barbeque.'
] | random }}
{% elif states.calendar.skylar_school.attributes.description == 'lunch-pizza' %}
it is Pizza.
{% elif states.calendar.skylar_school.attributes.description == 'lunch-minipups' %}
it is Mini Corn Pups.
{% elif states.calendar.skylar_school.attributes.description == 'lunch-hotdogs' %}
it is Mini Corn Pups.
{% else %} {% else %}
it might be a good day to take something. Today's school lunch is {{ states.sensor.school_lunch.state }}
{% endif %} {% endif %}
{% endif %} {% endif %}
</p> </p>

View File

@ -55,12 +55,13 @@
<p> <p>
Skyler, Skyler,
{{ [ 'It is time to get in the bath. ', {{ [ 'It is time to get in the bath. ',
'It is almost bedtime. That means you should be heading for the bathtub. Time to get clean.', 'It is almost bedtime. That means it is time to start preparing for bed. if you are taking a bath tonight, you need to head that way.',
'I cannot communicate with the bathtub. Or I would have started the water for you already. So you will have to start the bath, <emphasis>yourself</emphasis>', 'I cannot communicate with the bathtub. Or I would have started the water for you already. So you will have to start the bath, <emphasis>yourself</emphasis>',
'My sensors are detecting a <emphasis>strange</emphasis> smell. I am running diagnostics. But in the mean time, <emphasis>you</emphasis> should start a bath.', 'My sensors are detecting a <emphasis>strange</emphasis> smell. I am running diagnostics. But in the mean time, <emphasis>you</emphasis> should start a bath.',
'I hate to say it but, it is time to get cleaned up.', 'I hate to say it but, the day is coming to an end. Time to finish up your tasks, pick up any toys you have out, and get ready for bed.',
'Did you ever hear the one about the kid who never took a bath? <break time="2s"/>Yeah, me <emphasis>either</emphasis>. So we should keep it that way. Bath time now, <emphasis>sir</emphasis>.', 'We have reached that time in every day when we must switch gears and start preparing for bed. If you would like to have story time you better get a move on.'
'The count down clock has started. Time to get cleaned up, and get your pajamas on.' 'Did you ever hear the one about the kid who never took a bath? <break time="2s"/>Yeah, me <emphasis>either</emphasis>. So we should keep it that way. It is time to get ready for bed.',
'The count down clock until bedtime has started. Time to get cleaned up, get your pajamas on, and pick the story you will read tonight.'
] | random }} ] | random }}
{% if is_state('sensor.school_tomorrow', 'on') %} {% if is_state('sensor.school_tomorrow', 'on') %}
{{ [ 'Because you have school tomorrow. ', {{ [ 'Because you have school tomorrow. ',
@ -77,9 +78,10 @@
{% else %} {% else %}
Oh, and it appears you do not have school tomorrow Oh, and it appears you do not have school tomorrow
{% endif %} {% endif %}
{{ [ 'so you can sleep in late tomorrow. ', {{ [ 'so you can sleep in late. ',
' so there is not a reason to get up early tomorrow. ', 'so let us sleep a little later. ',
'so we can sleep in tomorrow. ' ' so there is not a reason to get up early. ',
'so we can sleep in. '
] | random }} ] | random }}
{% endif %} {% endif %}
{% if states.sensor.school_start_days2go.state | int < 10 and states.sensor.school_start_days2go.state | int > 1 -%} {% if states.sensor.school_start_days2go.state | int < 10 and states.sensor.school_start_days2go.state | int > 1 -%}
@ -108,9 +110,10 @@
{% elif states.sensor.school_end_days2go.state | int == 0 -%} {% elif states.sensor.school_end_days2go.state | int == 0 -%}
Tomorrow is the first day of summer. Are you ready? Tomorrow is the first day of summer. Are you ready?
{%- endif %} {%- endif %}
{{ [ 'I have configured Skylers room for sleep prep. ', {{ [ 'I have prepared your room as you like it. ',
'The lighting in Skylers room has been adjusted in preparation for bed.', 'I have adjusted the lighting in your room.',
'I have executed the Pre bed routine for Skylers room.' 'I have turned on your bedroom lights, and adjusted the ligting under your bed.',
'I have executed the Pre bed routine for your room.'
] | random }} ] | random }}
</p> </p>
{%- endmacro -%} {%- endmacro -%}