Update more speech logic to use OpenAI. #1368

This commit is contained in:
CCOSTAN
2024-05-25 00:23:12 +00:00
parent 1ce3d22013
commit 12104c2e83
12 changed files with 29 additions and 232 deletions

View File

@@ -49,33 +49,9 @@
{%- macro greeting_sentence(person, is_are) -%}
{{ [
"Welcome back home " ~ person,
"You had me at hello " ~ person,
"Guess who is home?" ~ person ~ is_are ,
"The wifi just got a little more crowded. Welcome Home" ~ person,
person ~ is_are + " now in the house.",
"Welcome Home " ~ person + ". We have missed you. Or at least Molly did.",
"Our home is now complete, Rest your head and relax your feet! Welcome Back " ~ person,
"Life is like a song, youre back where you belong. Welcome home " ~ person,
"Hey there " ~ person + " Welcome Home!",
"Knock Knock. Who is There? " ~ person ~ is_are ,
"The garage door opener just told me that " ~ person ~ is_are +" home.",
person + " can not hide from the system. Welcome home.",
person ~ "! You are home!",
"I know a secret! " ~ person ~ is_are +" home!",
"Hey " ~ person +". Your arrival has been recorded by the Smartest house on the block.",
"Take note Molly! " ~ person ~ is_are +" home.",
"I am sensing a disturbance in the force. " ~ person +" must be home!",
"And the house becomes a home. Welcome back " ~ person,
person ~ is_are + " now here. Hash tag Welcome Home.",
person ~ is_are + " now here. Hash tag Home.",
person ~ is_are + " now here. Hash tag Smart Home.",
"Just a quick announcement. " ~ person +" has arrived!",
"Hey" ~ person + "! High Five! Glad you are finally home.",
"Pardon the interruption but " ~ person ~ is_are +" home!",
"My systems are picking up the presence of additional humans. " ~ person ~ is_are +" being identified as home.",
"Welcome home "~person + "! It is nice to see you again! Let me turn on the lights. ",
"It looks like "~person ~ is_are + " finally home! I will get the house ready for you. "
person ~ is_are + " home now."
] | random }}
[Welcome them home in a random style]
{%- endmacro -%}
{{greeting_sentence(person, is_are)}}

View File

@@ -55,11 +55,6 @@
- input_boolean.guest_mode
- service: script.speech_engine
data:
value1: >
{{ [
"Guest Mode has been disabled and normal automations will continue.",
"Let me disable guest mode since there are no longer any guests in the house. ",
"I have disabled guest mode and have resumed normal operations! ",
"Disabling guest mode! "
] | random }}
value1: >-
Guest Mode has been disabled and normal automations will continue.
call_no_announcement: 1

View File

@@ -12,11 +12,6 @@
- sensor.upstairs_thermostat_hvac_state
from: 'off'
# condition:
# - condition: template
# value_template: >-
# {{ as_timestamp(states.automation.nest_status.attributes.last_triggered) > as_timestamp(now()) - (1800) }}
action:
- service: script.speech_engine
data: