Fix deprecated Google AI calls
This commit is contained in:
103
scripts.yaml
103
scripts.yaml
@@ -1733,21 +1733,26 @@ tony_morning_meds:
|
|||||||
entity_id: counter.tony_morning_meds_reminder_count
|
entity_id: counter.tony_morning_meds_reminder_count
|
||||||
above: 2
|
above: 2
|
||||||
then:
|
then:
|
||||||
- action: google_generative_ai_conversation.generate_content
|
- alias: Generate snarky reminder
|
||||||
|
action: ai_task.generate_data
|
||||||
metadata: {}
|
metadata: {}
|
||||||
data:
|
data:
|
||||||
prompt: Remind Tony to take his morning meds. Use a maximum of two lines.
|
instructions: Remind Tony to take his morning meds. Use a maximum of two
|
||||||
Be snarky, because at this point he's been reminded {{ remindCount }}
|
lines. Be snarky, because at this point this is reminder number {{ remindCount
|
||||||
times.
|
}}.
|
||||||
|
task_name: Tony Morning Medication Reminder Snarky
|
||||||
|
entity_id: ai_task.google_ai_task
|
||||||
response_variable: response
|
response_variable: response
|
||||||
alias: Generate snarky reminder
|
|
||||||
else:
|
else:
|
||||||
- action: google_generative_ai_conversation.generate_content
|
- alias: Generate reminder
|
||||||
|
action: ai_task.generate_data
|
||||||
metadata: {}
|
metadata: {}
|
||||||
data:
|
data:
|
||||||
prompt: Remind Tony to take his morning meds. Use a maximum of two lines.
|
instructions: Remind Tony to take his morning meds. Use a maximum of two
|
||||||
|
lines.
|
||||||
|
task_name: Tony Morning Medication Reminder
|
||||||
|
entity_id: ai_task.google_ai_task
|
||||||
response_variable: response
|
response_variable: response
|
||||||
alias: Generate reminder
|
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
@@ -1760,7 +1765,7 @@ tony_morning_meds:
|
|||||||
who: tony
|
who: tony
|
||||||
type: alert
|
type: alert
|
||||||
title: Morning Meds
|
title: Morning Meds
|
||||||
message: '{{ response.text }}'
|
message: '{{ response.data }}'
|
||||||
tag: tony-morning-meds
|
tag: tony-morning-meds
|
||||||
actions:
|
actions:
|
||||||
- action: TONY_MORNING_MEDS_TAKEN
|
- action: TONY_MORNING_MEDS_TAKEN
|
||||||
@@ -1782,11 +1787,11 @@ tony_morning_meds:
|
|||||||
state: home
|
state: home
|
||||||
alias: If Tony is home
|
alias: If Tony is home
|
||||||
then:
|
then:
|
||||||
- data:
|
- alias: Send TTS notification
|
||||||
|
data:
|
||||||
who: common_areas
|
who: common_areas
|
||||||
type: alert
|
type: alert
|
||||||
message: '{{ response.text }}'
|
message: '{{ response.data }}'
|
||||||
alias: Send TTS notification
|
|
||||||
action: script.speech_engine
|
action: script.speech_engine
|
||||||
else:
|
else:
|
||||||
- delay:
|
- delay:
|
||||||
@@ -2044,21 +2049,26 @@ tony_afternoon_meds:
|
|||||||
entity_id: counter.tony_afternoon_meds_reminder_count
|
entity_id: counter.tony_afternoon_meds_reminder_count
|
||||||
above: 2
|
above: 2
|
||||||
then:
|
then:
|
||||||
- action: google_generative_ai_conversation.generate_content
|
- alias: Generate snarky reminder
|
||||||
|
action: ai_task.generate_data
|
||||||
metadata: {}
|
metadata: {}
|
||||||
data:
|
data:
|
||||||
prompt: Remind Tony to take his afternoon meds. Use a maximum of two lines.
|
instructions: Remind Tony to take his afternoon meds. Use a maximum of two
|
||||||
Be snarky, because at this point he's been reminded {{ remindCount }}
|
lines. Be snarky, because at this point this is reminder number {{ remindCount
|
||||||
times.
|
}}.
|
||||||
|
task_name: Tony Afternoon Medication Reminder Snarky
|
||||||
|
entity_id: ai_task.google_ai_task
|
||||||
response_variable: response
|
response_variable: response
|
||||||
alias: Generate snarky reminder
|
|
||||||
else:
|
else:
|
||||||
- action: google_generative_ai_conversation.generate_content
|
- alias: Generate reminder
|
||||||
|
action: ai_task.generate_data
|
||||||
metadata: {}
|
metadata: {}
|
||||||
data:
|
data:
|
||||||
prompt: Remind Tony to take his afternoon meds. Use a maximum of two lines.
|
instructions: Remind Tony to take his afternoon meds. Use a maximum of two
|
||||||
|
lines.
|
||||||
|
task_name: Tony Afternoon Medication Reminder
|
||||||
|
entity_id: ai_task.google_ai_task
|
||||||
response_variable: response
|
response_variable: response
|
||||||
alias: Generate reminder
|
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
@@ -2071,7 +2081,7 @@ tony_afternoon_meds:
|
|||||||
who: tony
|
who: tony
|
||||||
type: alert
|
type: alert
|
||||||
title: Afternoon Meds
|
title: Afternoon Meds
|
||||||
message: '{{ response.text }}'
|
message: '{{ response.data }}'
|
||||||
tag: tony-afternoon-meds
|
tag: tony-afternoon-meds
|
||||||
actions:
|
actions:
|
||||||
- action: TONY_AFTERNOON_MEDS_TAKEN
|
- action: TONY_AFTERNOON_MEDS_TAKEN
|
||||||
@@ -2093,11 +2103,11 @@ tony_afternoon_meds:
|
|||||||
state: home
|
state: home
|
||||||
alias: If Tony is home
|
alias: If Tony is home
|
||||||
then:
|
then:
|
||||||
- data:
|
- alias: Send TTS notification
|
||||||
|
data:
|
||||||
who: common_areas
|
who: common_areas
|
||||||
type: alert
|
type: alert
|
||||||
message: '{{ response.text }}'
|
message: '{{ response.data }}'
|
||||||
alias: Send TTS notification
|
|
||||||
action: script.speech_engine
|
action: script.speech_engine
|
||||||
else:
|
else:
|
||||||
- delay:
|
- delay:
|
||||||
@@ -3099,21 +3109,26 @@ tina_morning_meds:
|
|||||||
entity_id: counter.tina_morning_meds_reminder_count
|
entity_id: counter.tina_morning_meds_reminder_count
|
||||||
above: 2
|
above: 2
|
||||||
then:
|
then:
|
||||||
- action: google_generative_ai_conversation.generate_content
|
- alias: Generate snarky reminder
|
||||||
|
action: ai_task.generate_data
|
||||||
metadata: {}
|
metadata: {}
|
||||||
data:
|
data:
|
||||||
prompt: Remind Tina to take her morning meds. Use a maximum of two lines.
|
instructions: Remind Tina to take her morning meds. Use a maximum of two
|
||||||
Be snarky, because at this point she's been reminded {{ remindCount }}
|
lines. Be snarky, because at this point this is reminder number {{ remindCount
|
||||||
times.
|
}}.
|
||||||
|
task_name: Tina Morning Medication Reminder Snarky
|
||||||
|
entity_id: ai_task.google_ai_task
|
||||||
response_variable: response
|
response_variable: response
|
||||||
alias: Generate snarky reminder
|
|
||||||
else:
|
else:
|
||||||
- action: google_generative_ai_conversation.generate_content
|
- alias: Generate reminder
|
||||||
|
action: ai_task.generate_data
|
||||||
metadata: {}
|
metadata: {}
|
||||||
data:
|
data:
|
||||||
prompt: Remind Tina to take her morning meds. Use a maximum of two lines.
|
instructions: Remind Tina to take her morning meds. Use a maximum of two
|
||||||
|
lines.
|
||||||
|
task_name: Tina Morning Medication Reminder
|
||||||
|
entity_id: ai_task.google_ai_task
|
||||||
response_variable: response
|
response_variable: response
|
||||||
alias: Generate reminder
|
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
@@ -3124,7 +3139,7 @@ tina_morning_meds:
|
|||||||
who: tina
|
who: tina
|
||||||
type: alert
|
type: alert
|
||||||
title: Morning Meds
|
title: Morning Meds
|
||||||
message: '{{ response.text }}'
|
message: '{{ response.data }}'
|
||||||
tag: tina-morning-meds
|
tag: tina-morning-meds
|
||||||
actions:
|
actions:
|
||||||
- action: TINA_MORNING_MEDS_TAKEN
|
- action: TINA_MORNING_MEDS_TAKEN
|
||||||
@@ -3184,21 +3199,25 @@ tina_night_meds:
|
|||||||
entity_id: counter.tina_night_meds_reminder_count
|
entity_id: counter.tina_night_meds_reminder_count
|
||||||
above: 2
|
above: 2
|
||||||
then:
|
then:
|
||||||
- action: google_generative_ai_conversation.generate_content
|
- alias: Generate snarky reminder
|
||||||
|
action: ai_task.generate_data
|
||||||
metadata: {}
|
metadata: {}
|
||||||
data:
|
data:
|
||||||
prompt: Remind Tina to take her night meds. Use a maximum of two lines.
|
instructions: Remind Tina to take her night meds. Use a maximum of two lines.
|
||||||
Be snarky, because at this point she's been reminded {{ remindCount }}
|
Be snarky, because at this point this is reminder number {{ remindCount
|
||||||
times.
|
}}.
|
||||||
|
task_name: Tina Night Medication Reminder Snarky
|
||||||
|
entity_id: ai_task.google_ai_task
|
||||||
response_variable: response
|
response_variable: response
|
||||||
alias: Generate snarky reminder
|
|
||||||
else:
|
else:
|
||||||
- action: google_generative_ai_conversation.generate_content
|
- alias: Generate reminder
|
||||||
|
action: ai_task.generate_data
|
||||||
metadata: {}
|
metadata: {}
|
||||||
data:
|
data:
|
||||||
prompt: Remind Tina to take her night meds. Use a maximum of two lines.
|
instructions: Remind Tina to take her night meds. Use a maximum of two lines.
|
||||||
|
task_name: Tina Night Medication Reminder
|
||||||
|
entity_id: ai_task.google_ai_task
|
||||||
response_variable: response
|
response_variable: response
|
||||||
alias: Generate reminder
|
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
@@ -3209,7 +3228,7 @@ tina_night_meds:
|
|||||||
who: tina
|
who: tina
|
||||||
type: alert
|
type: alert
|
||||||
title: Night Meds
|
title: Night Meds
|
||||||
message: '{{ response.text }}'
|
message: '{{ response.data }}'
|
||||||
tag: tina-night-meds
|
tag: tina-night-meds
|
||||||
actions:
|
actions:
|
||||||
- action: TINA_NIGHT_MEDS_TAKEN
|
- action: TINA_NIGHT_MEDS_TAKEN
|
||||||
|
|||||||
Reference in New Issue
Block a user