mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-07-12 01:43:00 +00:00
Tweaked words, added school holiday using calendar, and added some week day events
This commit is contained in:
parent
35bb82b4f2
commit
ded88da109
@ -111,6 +111,7 @@ automation:
|
|||||||
call_school_today: 1
|
call_school_today: 1
|
||||||
call_skylar_events: 1
|
call_skylar_events: 1
|
||||||
call_clothes_suggestion: 1
|
call_clothes_suggestion: 1
|
||||||
|
call_school_holiday: 1
|
||||||
|
|
||||||
- id: set_skylar_morning_report_time
|
- id: set_skylar_morning_report_time
|
||||||
alias: set skylar morning report time
|
alias: set skylar morning report time
|
||||||
|
@ -275,9 +275,7 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
message: >-
|
message: >-
|
||||||
<speak>
|
<speak>
|
||||||
<break time="5.0s" />
|
|
||||||
{{ message }}
|
{{ message }}
|
||||||
<break time="1.0s" />
|
|
||||||
</speak>
|
</speak>
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
@ -349,8 +347,6 @@ script:
|
|||||||
] | random }}
|
] | random }}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{% macro morning_greeting() %}
|
{% macro morning_greeting() %}
|
||||||
{{ [ "Time to Rise and Shine. ",
|
{{ [ "Time to Rise and Shine. ",
|
||||||
"Let's do this thing.",
|
"Let's do this thing.",
|
||||||
@ -412,8 +408,8 @@ script:
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro todays_events() %}
|
{% macro todays_events() %}
|
||||||
{% if is_state("sensor.holiday_halloween","0") %}
|
{% if is_state("sensor.halloween_countdown","0") %}
|
||||||
This is Halloween, this is halloween. Happy Halloween!
|
Happy Halloween!
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if is_state("sensor.holiday_christmas","0") %}
|
{% if is_state("sensor.holiday_christmas","0") %}
|
||||||
Merry Christmas Everyone!
|
Merry Christmas Everyone!
|
||||||
@ -534,8 +530,11 @@ script:
|
|||||||
Skylar,
|
Skylar,
|
||||||
{{ [ "It is time to get in the bath. ",
|
{{ [ "It is time to get in the bath. ",
|
||||||
"You only have thirty minutes until bedtime. That means you should be heading for the bathtub.",
|
"You only have thirty minutes until bedtime. That means you should be heading for the bathtub.",
|
||||||
"I cannot comminicate with the bathtub, otherwise, I would have started the water for you already. So you will have to start the bath yourself. ",
|
"I cannot communicate with the bathtub, otherwise, I would have started the water for you already. So you will have to start the bath yourself. ",
|
||||||
"My sensors are detecting a strange smell. I am running diagnostics, but in the mean time why don't you start a bath.",
|
"My sensors are detecting a strange smell. I am running diagnostics, but in the mean time why don't you start a bath.",
|
||||||
|
"It is time to start the pre bed routine.",
|
||||||
|
"It is bathtime.",
|
||||||
|
"Even Jedi have to take a bath."
|
||||||
] | random }}
|
] | random }}
|
||||||
If you go now there may be time for stories. Don't forget to brush your teeth.
|
If you go now there may be time for stories. Don't forget to brush your teeth.
|
||||||
{% if is_state("sensor.weekday", "fri") %}
|
{% if is_state("sensor.weekday", "fri") %}
|
||||||
@ -546,19 +545,37 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
|
||||||
{% macro school_today() %}
|
{% macro school_today() %}
|
||||||
{% if states.calendar.skylar_school.attributes.offset_reached == True %}
|
{% if states.calendar.skylar_school.attributes.offset_reached == True %}
|
||||||
Because you have school today!
|
Because you have school today!
|
||||||
{% 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" %}
|
||||||
|
Also, tomorrow is the first day of Thanksgiving Break!
|
||||||
|
{% endif %}
|
||||||
|
{% if states.calendar.skylar_school.attributes.description == "start_winter_break" %}
|
||||||
|
Also, tomorrow is the first day of Winter Break!
|
||||||
|
{% endif %}
|
||||||
|
{% if states.calendar.skylar_school.attributes.description == "start_spring_break" %}
|
||||||
|
Also, tomorrow is the first day of Spring Break!
|
||||||
|
{% endif %}
|
||||||
|
{% if states.calendar.skylar_school.attributes.description == "start_fall_break" %}
|
||||||
|
Also, tomorrow is the first day of Fall Break!
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro skylar_events() %}
|
{% macro skylar_events() %}
|
||||||
|
Skylar,
|
||||||
{% if is_state("calendar.skylar_events", "on") %}
|
{% if is_state("calendar.skylar_events", "on") %}
|
||||||
Skylar, You have {{ states.calendar.skylar_events.attributes.message }} today as well!
|
You have {{ states.calendar.skylar_events.attributes.message }} today as well!
|
||||||
|
{% endif %}
|
||||||
|
{% if is_state("sensor.weekday", "mon") %}
|
||||||
|
And you also have The Little Gym today.
|
||||||
|
{% endif %}
|
||||||
|
{% if is_state("sensor.weekday", "wed") %}
|
||||||
|
And you also have Game Time today.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
@ -566,7 +583,7 @@ script:
|
|||||||
{% if is_state("sensor.clothing_forecast", "Freezing") %}
|
{% if is_state("sensor.clothing_forecast", "Freezing") %}
|
||||||
It is going to be freezing today so I suggest wearing long pants, and a heavy coat.
|
It is going to be freezing today so I suggest wearing long pants, and a heavy coat.
|
||||||
{% elif is_state("sensor.clothing_forecast","Cold") %}
|
{% elif is_state("sensor.clothing_forecast","Cold") %}
|
||||||
It is going to be cold today so I suggest wearing long pants and a light jacket.
|
It is going to be cold today so I suggest wearing long pants and a jacket.
|
||||||
{% elif is_state("sensor.clothing_forecast", "Chilly") %}
|
{% elif is_state("sensor.clothing_forecast", "Chilly") %}
|
||||||
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") %}
|
||||||
@ -600,6 +617,12 @@ script:
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
|
{% macro school_holiday() %}
|
||||||
|
{% if states.calendar.school_holiday.attributes.offset_reached == True %}
|
||||||
|
Oh, and if you did not know. There is no School today.
|
||||||
|
{% endif %}
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro reminders() %}
|
{% macro reminders() %}
|
||||||
{% if is_state("input_boolean.heartworm", "on") %}
|
{% if is_state("input_boolean.heartworm", "on") %}
|
||||||
Today is the day Winston gets his heartworm medicine.
|
Today is the day Winston gets his heartworm medicine.
|
||||||
@ -929,6 +952,10 @@ script:
|
|||||||
{{ clothes_suggestion() }}
|
{{ clothes_suggestion() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if call_school_holiday == 1 %}
|
||||||
|
{{ school_holiday() }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if call_reminders == 1 %}
|
{% if call_reminders == 1 %}
|
||||||
{{ reminders() }}
|
{{ reminders() }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user