Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
f96056edda
|
|||
652b4e7dff
|
|||
26bcf136e6
|
|||
9e90998a21
|
|||
30c8307272
|
|||
e6b0db142e
|
|||
b5dd9621d1
|
|||
587ac4d203
|
@ -1 +1 @@
|
|||||||
2025.3.0
|
2025.3.2
|
@ -106,7 +106,8 @@
|
|||||||
{{ weatherInfo(type,method,time) |
|
{{ weatherInfo(type,method,time) |
|
||||||
replace('clear-night','clear') |
|
replace('clear-night','clear') |
|
||||||
replace('partlycloudy','partly cloudy') |
|
replace('partlycloudy','partly cloudy') |
|
||||||
replace('snowy-rainy','a mix of rain and snow') }}
|
replace('snowy-rainy','a mix of rain and snow') |
|
||||||
|
replace('lightning-rainy','stormy') }}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{{ cleanup(data()) }}
|
{{ cleanup(data()) }}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
@ -2,19 +2,23 @@ template:
|
|||||||
- binary_sensor:
|
- binary_sensor:
|
||||||
- name: Emma Aircon - Compressor
|
- name: Emma Aircon - Compressor
|
||||||
unique_id: 21bcbb62-823c-43ff-8c2c-26e940324ee6
|
unique_id: 21bcbb62-823c-43ff-8c2c-26e940324ee6
|
||||||
state: "{{ is_state('fan.emma_air_conditioner','on') and states('sensor.emma_air_conditioner_power') | int > 150 }}"
|
state: "{{ states('sensor.emma_air_conditioner_power') | int > 150 }}"
|
||||||
|
availability: "{{ states('fan.emma_air_conditioner') not in ['unknown','unavailable'] }}"
|
||||||
device_class: running
|
device_class: running
|
||||||
- name: Emma Aircon - Fan
|
- name: Emma Aircon - Fan
|
||||||
unique_id: 9e3054cf-8f7e-4fef-9da4-5b2f2bc99c9d
|
unique_id: 9e3054cf-8f7e-4fef-9da4-5b2f2bc99c9d
|
||||||
state: "{{ is_state('fan.emma_air_conditioner','on') and states('sensor.emma_air_conditioner_power') | int > 20 }}"
|
state: "{{ states('sensor.emma_air_conditioner_power') | int > 20 }}"
|
||||||
|
availability: "{{ states('fan.emma_air_conditioner') not in ['unknown','unavailable'] }}"
|
||||||
device_class: running
|
device_class: running
|
||||||
- name: Master Bedroom Aircon - Compressor
|
- name: Master Bedroom Aircon - Compressor
|
||||||
unique_id: 87051957-1dbc-4d65-b138-e8469728f58f
|
unique_id: 87051957-1dbc-4d65-b138-e8469728f58f
|
||||||
state: "{{ states('climate.master_bedroom_aircon') not in ['off','unknown','unavailable'] and states('sensor.master_bedroom_aircon_power') | int > 150 }}"
|
state: "{{ states('sensor.master_bedroom_aircon_power') | int > 150 }}"
|
||||||
|
availability: "{{ states('climate.master_bedroom_aircon') not in ['unknown','unavailable'] }}"
|
||||||
device_class: running
|
device_class: running
|
||||||
- name: Master Bedroom Aircon - Fan
|
- name: Master Bedroom Aircon - Fan
|
||||||
unique_id: ae893dd6-129c-4886-a966-a89b958d9f08
|
unique_id: ae893dd6-129c-4886-a966-a89b958d9f08
|
||||||
state: "{{ states('climate.master_bedroom_aircon') not in ['off','unknown','unavailable'] and states('sensor.master_bedroom_aircon_power') | int > 20 }}"
|
state: "{{ states('sensor.master_bedroom_aircon_power') | int > 20 }}"
|
||||||
|
availability: "{{ states('climate.master_bedroom_aircon') not in ['unknown','unavailable'] }}"
|
||||||
device_class: running
|
device_class: running
|
||||||
- name: Kallen Fan - Separate Schedule
|
- name: Kallen Fan - Separate Schedule
|
||||||
unique_id: 3f243861-6a1f-412f-b9e3-933b54793b08
|
unique_id: 3f243861-6a1f-412f-b9e3-933b54793b08
|
||||||
|
336
scripts.yaml
336
scripts.yaml
@ -199,11 +199,18 @@ going_upstairs:
|
|||||||
then:
|
then:
|
||||||
- alias: Decide basement studio heater action
|
- alias: Decide basement studio heater action
|
||||||
if:
|
if:
|
||||||
|
- alias: If temp below freezing and heat is on
|
||||||
|
condition: and
|
||||||
|
conditions:
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
entity_id: weather.iron_nerd_weather_station
|
entity_id: weather.iron_nerd_weather_station
|
||||||
attribute: temperature
|
attribute: temperature
|
||||||
below: 32
|
below: 32
|
||||||
alias: Temperature below freezing
|
alias: Temperature below freezing
|
||||||
|
- condition: state
|
||||||
|
entity_id: climate.basement_studio_vtherm
|
||||||
|
state: heat
|
||||||
|
alias: Heat on
|
||||||
then:
|
then:
|
||||||
- action: climate.set_preset_mode
|
- action: climate.set_preset_mode
|
||||||
metadata: {}
|
metadata: {}
|
||||||
@ -1656,6 +1663,32 @@ tony_morning_meds:
|
|||||||
tag: tony-morning-meds
|
tag: tony-morning-meds
|
||||||
alias: Clear previous morning notification
|
alias: Clear previous morning notification
|
||||||
action: script.text_notify
|
action: script.text_notify
|
||||||
|
- alias: Send notifications, using AI if internet is connected
|
||||||
|
if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.internet
|
||||||
|
state: 'on'
|
||||||
|
then:
|
||||||
|
- alias: Generate reminder, be snarky if it's been several times
|
||||||
|
if:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: counter.tony_morning_meds_reminder_count
|
||||||
|
above: 2
|
||||||
|
then:
|
||||||
|
- action: google_generative_ai_conversation.generate_content
|
||||||
|
metadata: {}
|
||||||
|
data:
|
||||||
|
prompt: Remind Tony to take his morning meds. Use a maximum of two lines.
|
||||||
|
Be snarky, because at this point he's been reminded multiple times.
|
||||||
|
response_variable: response
|
||||||
|
alias: Generate snarky reminder
|
||||||
|
else:
|
||||||
|
- action: google_generative_ai_conversation.generate_content
|
||||||
|
metadata: {}
|
||||||
|
data:
|
||||||
|
prompt: Remind Tony to take his morning meds. Use a maximum of two lines.
|
||||||
|
response_variable: response
|
||||||
|
alias: Generate reminder
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
@ -1668,7 +1701,7 @@ tony_morning_meds:
|
|||||||
who: tony
|
who: tony
|
||||||
type: alert
|
type: alert
|
||||||
title: Morning Meds
|
title: Morning Meds
|
||||||
message: You need to take your morning meds
|
message: '{{ response.text }}'
|
||||||
tag: tony-morning-meds
|
tag: tony-morning-meds
|
||||||
actions:
|
actions:
|
||||||
- action: TONY_MORNING_MEDS_TAKEN
|
- action: TONY_MORNING_MEDS_TAKEN
|
||||||
@ -1678,7 +1711,7 @@ tony_morning_meds:
|
|||||||
action: script.text_notify
|
action: script.text_notify
|
||||||
- alias: Send TTS if reminders > 2 and Tony is home
|
- alias: Send TTS if reminders > 2 and Tony is home
|
||||||
if:
|
if:
|
||||||
- alias: If reminders > 2 and Tony is home
|
- alias: When reminders > 2 and Tony is home
|
||||||
condition: and
|
condition: and
|
||||||
conditions:
|
conditions:
|
||||||
- condition: numeric_state
|
- condition: numeric_state
|
||||||
@ -1693,10 +1726,50 @@ tony_morning_meds:
|
|||||||
- data:
|
- data:
|
||||||
who: common_areas
|
who: common_areas
|
||||||
type: alert
|
type: alert
|
||||||
message: Tony, you need to take your morning meds. This is reminder number
|
message: '{{ response.text }}'
|
||||||
{{ states('counter.tony_morning_meds_reminder_count') }} for today.
|
|
||||||
alias: Send TTS notification
|
alias: Send TTS notification
|
||||||
action: script.speech_engine
|
action: script.speech_engine
|
||||||
|
else:
|
||||||
|
- delay:
|
||||||
|
hours: 0
|
||||||
|
minutes: 0
|
||||||
|
seconds: 5
|
||||||
|
milliseconds: 0
|
||||||
|
- alias: Send morning notifications via text, and TTS if needed
|
||||||
|
parallel:
|
||||||
|
- alias: Send text notification
|
||||||
|
data:
|
||||||
|
who: tony
|
||||||
|
type: alert
|
||||||
|
title: Morning Meds
|
||||||
|
tag: tony-morning-meds
|
||||||
|
actions:
|
||||||
|
- action: TONY_MORNING_MEDS_TAKEN
|
||||||
|
title: Taken
|
||||||
|
- action: TONY_MORNING_MEDS_SKIPPED
|
||||||
|
title: Skip
|
||||||
|
message: You need to take your morning meds
|
||||||
|
action: script.text_notify
|
||||||
|
- alias: Send TTS if reminders > 2 and Tony is home
|
||||||
|
if:
|
||||||
|
- alias: When reminders > 2 and Tony is home
|
||||||
|
condition: and
|
||||||
|
conditions:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: counter.tony_morning_meds_reminder_count
|
||||||
|
above: 2
|
||||||
|
alias: When reminder count > 2
|
||||||
|
- condition: state
|
||||||
|
entity_id: person.tony_stork
|
||||||
|
state: home
|
||||||
|
alias: If Tony is home
|
||||||
|
then:
|
||||||
|
- alias: Send TTS notification
|
||||||
|
data:
|
||||||
|
who: common_areas
|
||||||
|
type: alert
|
||||||
|
message: Tony, you need to take your morning meds
|
||||||
|
action: script.speech_engine
|
||||||
tony_night_meds:
|
tony_night_meds:
|
||||||
alias: Tony Night Meds
|
alias: Tony Night Meds
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
@ -1897,6 +1970,32 @@ tony_afternoon_meds:
|
|||||||
tag: tony-afternoon-meds
|
tag: tony-afternoon-meds
|
||||||
alias: Clear previous afternoon notification
|
alias: Clear previous afternoon notification
|
||||||
action: script.text_notify
|
action: script.text_notify
|
||||||
|
- alias: Send notifications, using AI if internet is connected
|
||||||
|
if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.internet
|
||||||
|
state: 'on'
|
||||||
|
then:
|
||||||
|
- alias: Generate reminder, be snarky if it's been several times
|
||||||
|
if:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: counter.tony_afternoon_meds_reminder_count
|
||||||
|
above: 2
|
||||||
|
then:
|
||||||
|
- action: google_generative_ai_conversation.generate_content
|
||||||
|
metadata: {}
|
||||||
|
data:
|
||||||
|
prompt: Remind Tony to take his afternoon meds. Use a maximum of two lines.
|
||||||
|
Be snarky, because at this point he's been reminded multiple times.
|
||||||
|
response_variable: response
|
||||||
|
alias: Generate snarky reminder
|
||||||
|
else:
|
||||||
|
- action: google_generative_ai_conversation.generate_content
|
||||||
|
metadata: {}
|
||||||
|
data:
|
||||||
|
prompt: Remind Tony to take his afternoon meds. Use a maximum of two lines.
|
||||||
|
response_variable: response
|
||||||
|
alias: Generate reminder
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
@ -1909,7 +2008,7 @@ tony_afternoon_meds:
|
|||||||
who: tony
|
who: tony
|
||||||
type: alert
|
type: alert
|
||||||
title: Afternoon Meds
|
title: Afternoon Meds
|
||||||
message: You need to take your afternoon meds
|
message: '{{ response.text }}'
|
||||||
tag: tony-afternoon-meds
|
tag: tony-afternoon-meds
|
||||||
actions:
|
actions:
|
||||||
- action: TONY_AFTERNOON_MEDS_TAKEN
|
- action: TONY_AFTERNOON_MEDS_TAKEN
|
||||||
@ -1934,10 +2033,50 @@ tony_afternoon_meds:
|
|||||||
- data:
|
- data:
|
||||||
who: common_areas
|
who: common_areas
|
||||||
type: alert
|
type: alert
|
||||||
message: Tony, you need to take your afternoon meds. This is reminder number
|
message: '{{ response.text }}'
|
||||||
{{ states('counter.tony_afternoon_meds_reminder_count') }} for today.
|
|
||||||
alias: Send TTS notification
|
alias: Send TTS notification
|
||||||
action: script.speech_engine
|
action: script.speech_engine
|
||||||
|
else:
|
||||||
|
- delay:
|
||||||
|
hours: 0
|
||||||
|
minutes: 0
|
||||||
|
seconds: 5
|
||||||
|
milliseconds: 0
|
||||||
|
- alias: Send afternoon notifications via text, and TTS if needed
|
||||||
|
parallel:
|
||||||
|
- alias: Send text notification
|
||||||
|
data:
|
||||||
|
who: tony
|
||||||
|
type: alert
|
||||||
|
title: Afternoon Meds
|
||||||
|
tag: tony-afternoon-meds
|
||||||
|
actions:
|
||||||
|
- action: TONY_AFTERNOON_MEDS_TAKEN
|
||||||
|
title: Taken
|
||||||
|
- action: TONY_AFTERNOON_MEDS_SKIPPED
|
||||||
|
title: Skip
|
||||||
|
message: You need to take your afternoon meds
|
||||||
|
action: script.text_notify
|
||||||
|
- alias: Send TTS if reminders > 2 and Tony is home
|
||||||
|
if:
|
||||||
|
- alias: When reminders > 2 and Tony is home
|
||||||
|
condition: and
|
||||||
|
conditions:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: counter.tony_afternoon_meds_reminder_count
|
||||||
|
above: 2
|
||||||
|
alias: When reminder count > 2
|
||||||
|
- condition: state
|
||||||
|
entity_id: person.tony_stork
|
||||||
|
state: home
|
||||||
|
alias: If Tony is home
|
||||||
|
then:
|
||||||
|
- alias: Send TTS notification
|
||||||
|
data:
|
||||||
|
who: common_areas
|
||||||
|
type: alert
|
||||||
|
message: Tony, you need to take your afternoon meds
|
||||||
|
action: script.speech_engine
|
||||||
tony_ibuprofen:
|
tony_ibuprofen:
|
||||||
alias: Tony Ibuprofen
|
alias: Tony Ibuprofen
|
||||||
sequence:
|
sequence:
|
||||||
@ -2301,56 +2440,37 @@ tony_tylenol:
|
|||||||
kallen_morning_meds:
|
kallen_morning_meds:
|
||||||
alias: Kallen Morning Meds
|
alias: Kallen Morning Meds
|
||||||
sequence:
|
sequence:
|
||||||
- service: counter.increment
|
- metadata: {}
|
||||||
metadata: {}
|
|
||||||
data: {}
|
data: {}
|
||||||
target:
|
target:
|
||||||
entity_id: counter.kallen_morning_meds_reminder_count
|
entity_id: counter.kallen_morning_meds_reminder_count
|
||||||
alias: Increment morning reminder counter
|
alias: Increment morning reminder counter
|
||||||
- alias: Clear previous morning notifications
|
action: counter.increment
|
||||||
parallel:
|
- alias: Clear previous text notifications
|
||||||
- service: script.text_notify
|
|
||||||
data:
|
data:
|
||||||
type: alert
|
type: alert
|
||||||
who: parents
|
who: all
|
||||||
message: clear_notification
|
message: clear_notification
|
||||||
tag: kallen-morning-meds-parents
|
tag: kallen-morning-meds
|
||||||
alias: Clear for parents
|
action: script.text_notify
|
||||||
- service: script.text_notify
|
|
||||||
data:
|
|
||||||
type: alert
|
|
||||||
who: kallen
|
|
||||||
message: clear_notification
|
|
||||||
tag: kallen-morning-meds-self
|
|
||||||
alias: Clear for Kallen
|
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
seconds: 5
|
seconds: 5
|
||||||
milliseconds: 0
|
milliseconds: 0
|
||||||
- alias: Send text notifications
|
- alias: Send text notification
|
||||||
parallel:
|
|
||||||
- alias: Send to parents
|
|
||||||
service: script.text_notify
|
|
||||||
data:
|
data:
|
||||||
who: parents
|
who: all
|
||||||
type: alert
|
type: alert
|
||||||
title: Morning Meds
|
title: Morning Meds
|
||||||
message: Kallen needs to take his morning meds
|
message: Kallen needs to take his morning meds
|
||||||
tag: kallen-morning-meds-parents
|
tag: kallen-morning-meds
|
||||||
actions:
|
actions:
|
||||||
- action: KALLEN_MORNING_MEDS_TAKEN
|
- action: KALLEN_MORNING_MEDS_TAKEN
|
||||||
title: Taken
|
title: Taken
|
||||||
- action: KALLEN_MORNING_MEDS_SKIPPED
|
- action: KALLEN_MORNING_MEDS_SKIPPED
|
||||||
title: Skip
|
title: Skip
|
||||||
- service: script.text_notify
|
action: script.text_notify
|
||||||
data:
|
|
||||||
who: kallen
|
|
||||||
type: alert
|
|
||||||
title: Morning Meds
|
|
||||||
message: You need to take your morning meds. Go to mom or dad to confirm.
|
|
||||||
tag: kallen-morning-meds-self
|
|
||||||
alias: Send to Kallen
|
|
||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
mode: restart
|
mode: restart
|
||||||
kallen_night_meds:
|
kallen_night_meds:
|
||||||
@ -2922,75 +3042,163 @@ tina_morning_meds:
|
|||||||
icon: mdi:medication
|
icon: mdi:medication
|
||||||
mode: restart
|
mode: restart
|
||||||
sequence:
|
sequence:
|
||||||
- service: counter.increment
|
- metadata: {}
|
||||||
metadata: {}
|
|
||||||
data: {}
|
data: {}
|
||||||
target:
|
target:
|
||||||
entity_id: counter.tina_morning_meds_reminder_count
|
entity_id: counter.tina_morning_meds_reminder_count
|
||||||
alias: Increment morning reminder counter
|
alias: Increment morning reminder counter
|
||||||
- service: script.text_notify
|
action: counter.increment
|
||||||
data:
|
- data:
|
||||||
type: alert
|
type: alert
|
||||||
who: tina
|
who: tina
|
||||||
message: clear_notification
|
message: clear_notification
|
||||||
tag: tina-morning-meds
|
tag: tina-morning-meds
|
||||||
alias: Clear previous morning notification
|
alias: Clear previous morning notification
|
||||||
|
action: script.text_notify
|
||||||
|
- alias: Send notifications, using AI if internet is connected
|
||||||
|
if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.internet
|
||||||
|
state: 'on'
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: counter.tina_morning_meds_reminder_count
|
||||||
|
above: 2
|
||||||
|
then:
|
||||||
|
- action: google_generative_ai_conversation.generate_content
|
||||||
|
metadata: {}
|
||||||
|
data:
|
||||||
|
prompt: Remind Tina to take her morning meds. Use a maximum of two lines.
|
||||||
|
Be snarky, because at this point she's been reminded multiple times.
|
||||||
|
response_variable: response
|
||||||
|
alias: Generate snarky reminder
|
||||||
|
else:
|
||||||
|
- action: google_generative_ai_conversation.generate_content
|
||||||
|
metadata: {}
|
||||||
|
data:
|
||||||
|
prompt: Remind Tina to take her morning meds. Use a maximum of two lines.
|
||||||
|
response_variable: response
|
||||||
|
alias: Generate reminder
|
||||||
|
alias: Generate reminder, be snarky if it's been several times
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
seconds: 5
|
seconds: 5
|
||||||
milliseconds: 0
|
milliseconds: 0
|
||||||
- alias: Send text notification
|
- alias: Send text notification
|
||||||
service: script.text_notify
|
|
||||||
data:
|
data:
|
||||||
who: tina
|
who: tina
|
||||||
type: alert
|
type: alert
|
||||||
title: Morning Meds
|
title: Morning Meds
|
||||||
message: You need to take your morning meds
|
message: '{{ response.text }}'
|
||||||
tag: tina-morning-meds
|
tag: tina-morning-meds
|
||||||
actions:
|
actions:
|
||||||
- action: TINA_MORNING_MEDS_TAKEN
|
- action: TINA_MORNING_MEDS_TAKEN
|
||||||
title: Taken
|
title: Taken
|
||||||
- action: TINA_MORNING_MEDS_SKIPPED
|
- action: TINA_MORNING_MEDS_SKIPPED
|
||||||
title: Skip
|
title: Skip
|
||||||
description: ''
|
action: script.text_notify
|
||||||
tina_night_meds:
|
else:
|
||||||
alias: Tina Night Meds
|
- delay:
|
||||||
icon: mdi:medication
|
hours: 0
|
||||||
mode: restart
|
minutes: 0
|
||||||
sequence:
|
seconds: 5
|
||||||
- service: counter.increment
|
milliseconds: 0
|
||||||
metadata: {}
|
- alias: Send text notification
|
||||||
data: {}
|
data:
|
||||||
target:
|
who: tina
|
||||||
entity_id: counter.tina_night_meds_reminder_count
|
type: alert
|
||||||
alias: Increment night reminder counter
|
title: Morning Meds
|
||||||
- service: script.text_notify
|
tag: tina-morning-meds
|
||||||
data:
|
actions:
|
||||||
type: alert
|
- action: TINA_MORNING_MEDS_TAKEN
|
||||||
who: tina
|
title: Taken
|
||||||
message: clear_notification
|
- action: TINA_MORNING_MEDS_SKIPPED
|
||||||
tag: tina-night-meds
|
title: Skip
|
||||||
alias: Clear previous night notification
|
message: You need to take your morning meds
|
||||||
|
action: script.text_notify
|
||||||
|
tina_night_meds:
|
||||||
|
alias: Tina Night Meds
|
||||||
|
icon: mdi:medication
|
||||||
|
mode: restart
|
||||||
|
sequence:
|
||||||
|
- metadata: {}
|
||||||
|
data: {}
|
||||||
|
target:
|
||||||
|
entity_id: counter.tina_night_meds_reminder_count
|
||||||
|
alias: Increment night reminder counter
|
||||||
|
action: counter.increment
|
||||||
|
- data:
|
||||||
|
type: alert
|
||||||
|
who: tina
|
||||||
|
message: clear_notification
|
||||||
|
tag: tina-night-meds
|
||||||
|
alias: Clear previous night notification
|
||||||
|
action: script.text_notify
|
||||||
|
- alias: Send notifications, using AI if internet is connected
|
||||||
|
if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.internet
|
||||||
|
state: 'on'
|
||||||
|
then:
|
||||||
|
- if:
|
||||||
|
- condition: numeric_state
|
||||||
|
entity_id: counter.tina_night_meds_reminder_count
|
||||||
|
above: 2
|
||||||
|
then:
|
||||||
|
- action: google_generative_ai_conversation.generate_content
|
||||||
|
metadata: {}
|
||||||
|
data:
|
||||||
|
prompt: Remind Tina to take her night meds. Use a maximum of two lines.
|
||||||
|
Be snarky, because at this point she's been reminded multiple times.
|
||||||
|
response_variable: response
|
||||||
|
alias: Generate snarky reminder
|
||||||
|
else:
|
||||||
|
- action: google_generative_ai_conversation.generate_content
|
||||||
|
metadata: {}
|
||||||
|
data:
|
||||||
|
prompt: Remind Tina to take her night meds. Use a maximum of two lines.
|
||||||
|
response_variable: response
|
||||||
|
alias: Generate reminder
|
||||||
|
alias: Generate reminder, be snarky if it's been several times
|
||||||
- delay:
|
- delay:
|
||||||
hours: 0
|
hours: 0
|
||||||
minutes: 0
|
minutes: 0
|
||||||
seconds: 5
|
seconds: 5
|
||||||
milliseconds: 0
|
milliseconds: 0
|
||||||
- alias: Send text notification
|
- alias: Send text notification
|
||||||
service: script.text_notify
|
|
||||||
data:
|
data:
|
||||||
who: tina
|
who: tina
|
||||||
type: alert
|
type: alert
|
||||||
title: Night Meds
|
title: Night Meds
|
||||||
message: You need to take your night meds
|
message: '{{ response.text }}'
|
||||||
tag: tina-night-meds
|
tag: tina-night-meds
|
||||||
actions:
|
actions:
|
||||||
- action: TINA_NIGHT_MEDS_TAKEN
|
- action: TINA_NIGHT_MEDS_TAKEN
|
||||||
title: Taken
|
title: Taken
|
||||||
- action: TINA_NIGHT_MEDS_SKIPPED
|
- action: TINA_NIGHT_MEDS_SKIPPED
|
||||||
title: Skip
|
title: Skip
|
||||||
description: ''
|
action: script.text_notify
|
||||||
|
else:
|
||||||
|
- delay:
|
||||||
|
hours: 0
|
||||||
|
minutes: 0
|
||||||
|
seconds: 5
|
||||||
|
milliseconds: 0
|
||||||
|
- alias: Send text notification
|
||||||
|
data:
|
||||||
|
who: tina
|
||||||
|
type: alert
|
||||||
|
title: Night Meds
|
||||||
|
tag: tina-night-meds
|
||||||
|
actions:
|
||||||
|
- action: TINA_NIGHT_MEDS_TAKEN
|
||||||
|
title: Taken
|
||||||
|
- action: TINA_NIGHT_MEDS_SKIPPED
|
||||||
|
title: Skip
|
||||||
|
message: You need to take your night meds
|
||||||
|
action: script.text_notify
|
||||||
tina_ibuprofen:
|
tina_ibuprofen:
|
||||||
sequence:
|
sequence:
|
||||||
- alias: Turn off boolean if this is a notification
|
- alias: Turn off boolean if this is a notification
|
||||||
|
@ -76,7 +76,7 @@
|
|||||||
<p>
|
<p>
|
||||||
{% if (states('sensor.climate_devices_installed') | int) > 0 %}
|
{% if (states('sensor.climate_devices_installed') | int) > 0 %}
|
||||||
{% if is_state('input_boolean.master_bedroom_aircon_installed','on') %}
|
{% if is_state('input_boolean.master_bedroom_aircon_installed','on') %}
|
||||||
"the master bedroom temperature is {{ states('sensor.master_bedroom_aircon_indoor_temperature') | int }} degrees. "
|
"the master bedroom temperature is {{ states('sensor.master_bedroom_temperature') | int }} degrees. "
|
||||||
{% if not is_state('climate.master_bedroom_aircon','off') %}
|
{% if not is_state('climate.master_bedroom_aircon','off') %}
|
||||||
{% if is_state('climate.master_bedroom_aircon','cool') %}
|
{% if is_state('climate.master_bedroom_aircon','cool') %}
|
||||||
"and the master bedroom air conditioner is set for cooling to {{ state_attr('climate.master_bedroom_aircon','temperature') }} degrees. "
|
"and the master bedroom air conditioner is set for cooling to {{ state_attr('climate.master_bedroom_aircon','temperature') }} degrees. "
|
||||||
@ -90,8 +90,6 @@
|
|||||||
"and the master bedroom air conditioner is currently not speaking to me. Was it something I said? "
|
"and the master bedroom air conditioner is currently not speaking to me. Was it something I said? "
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% elif is_state('input_boolean.master_bedroom_aircon_installed','off') %}
|
|
||||||
"There is no air conditioner or temperature sensor installed in the master bedroom. "
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if is_state('input_boolean.emma_bedroom_aircon_installed','on') and is_state('fan.emma_air_conditioner','on') %}
|
{% if is_state('input_boolean.emma_bedroom_aircon_installed','on') and is_state('fan.emma_air_conditioner','on') %}
|
||||||
"Emma's air conditioner is {{ states('fan.emma_air_conditioner') }}. "
|
"Emma's air conditioner is {{ states('fan.emma_air_conditioner') }}. "
|
||||||
|
Reference in New Issue
Block a user