Compare commits
2 Commits
f7ac1b915b
...
2de7d82e20
| Author | SHA1 | Date | |
|---|---|---|---|
|
2de7d82e20
|
|||
|
83c3c10a5a
|
60
scripts.yaml
60
scripts.yaml
@@ -1742,6 +1742,12 @@ tony_morning_meds:
|
||||
}}.
|
||||
task_name: Tony Morning Medication Reminder Snarky
|
||||
entity_id: ai_task.google_ai_task
|
||||
structure:
|
||||
notification_text:
|
||||
description: The text to send in the notification to Tony's phone
|
||||
required: true
|
||||
selector:
|
||||
text:
|
||||
response_variable: response
|
||||
else:
|
||||
- alias: Generate reminder
|
||||
@@ -1752,6 +1758,12 @@ tony_morning_meds:
|
||||
lines.
|
||||
task_name: Tony Morning Medication Reminder
|
||||
entity_id: ai_task.google_ai_task
|
||||
structure:
|
||||
notification_text:
|
||||
description: The text to send in the notification to Tony's phone
|
||||
required: true
|
||||
selector:
|
||||
text:
|
||||
response_variable: response
|
||||
- delay:
|
||||
hours: 0
|
||||
@@ -1765,7 +1777,7 @@ tony_morning_meds:
|
||||
who: tony
|
||||
type: alert
|
||||
title: Morning Meds
|
||||
message: '{{ response.data }}'
|
||||
message: '{{ response.data.notification_text }}'
|
||||
tag: tony-morning-meds
|
||||
actions:
|
||||
- action: TONY_MORNING_MEDS_TAKEN
|
||||
@@ -1791,7 +1803,7 @@ tony_morning_meds:
|
||||
data:
|
||||
who: common_areas
|
||||
type: alert
|
||||
message: '{{ response.data }}'
|
||||
message: '{{ response.data.notification_text }}'
|
||||
action: script.speech_engine
|
||||
else:
|
||||
- delay:
|
||||
@@ -2058,6 +2070,12 @@ tony_afternoon_meds:
|
||||
}}.
|
||||
task_name: Tony Afternoon Medication Reminder Snarky
|
||||
entity_id: ai_task.google_ai_task
|
||||
structure:
|
||||
notification_text:
|
||||
description: The text to send in the notification to Tony's phone
|
||||
required: true
|
||||
selector:
|
||||
text:
|
||||
response_variable: response
|
||||
else:
|
||||
- alias: Generate reminder
|
||||
@@ -2068,6 +2086,12 @@ tony_afternoon_meds:
|
||||
lines.
|
||||
task_name: Tony Afternoon Medication Reminder
|
||||
entity_id: ai_task.google_ai_task
|
||||
structure:
|
||||
notification_text:
|
||||
description: The text to send in the notification to Tony's phone
|
||||
required: true
|
||||
selector:
|
||||
text:
|
||||
response_variable: response
|
||||
- delay:
|
||||
hours: 0
|
||||
@@ -2081,7 +2105,7 @@ tony_afternoon_meds:
|
||||
who: tony
|
||||
type: alert
|
||||
title: Afternoon Meds
|
||||
message: '{{ response.data }}'
|
||||
message: '{{ response.data.notification_text }}'
|
||||
tag: tony-afternoon-meds
|
||||
actions:
|
||||
- action: TONY_AFTERNOON_MEDS_TAKEN
|
||||
@@ -2107,7 +2131,7 @@ tony_afternoon_meds:
|
||||
data:
|
||||
who: common_areas
|
||||
type: alert
|
||||
message: '{{ response.data }}'
|
||||
message: '{{ response.data.notification_text }}'
|
||||
action: script.speech_engine
|
||||
else:
|
||||
- delay:
|
||||
@@ -3118,6 +3142,12 @@ tina_morning_meds:
|
||||
}}.
|
||||
task_name: Tina Morning Medication Reminder Snarky
|
||||
entity_id: ai_task.google_ai_task
|
||||
structure:
|
||||
notification_text:
|
||||
description: The text to send in the notification to Tina's phone
|
||||
required: true
|
||||
selector:
|
||||
text:
|
||||
response_variable: response
|
||||
else:
|
||||
- alias: Generate reminder
|
||||
@@ -3128,6 +3158,12 @@ tina_morning_meds:
|
||||
lines.
|
||||
task_name: Tina Morning Medication Reminder
|
||||
entity_id: ai_task.google_ai_task
|
||||
structure:
|
||||
notification_text:
|
||||
description: The text to send in the notification to Tina's phone
|
||||
required: true
|
||||
selector:
|
||||
text:
|
||||
response_variable: response
|
||||
- delay:
|
||||
hours: 0
|
||||
@@ -3139,7 +3175,7 @@ tina_morning_meds:
|
||||
who: tina
|
||||
type: alert
|
||||
title: Morning Meds
|
||||
message: '{{ response.data }}'
|
||||
message: '{{ response.data.notification_text }}'
|
||||
tag: tina-morning-meds
|
||||
actions:
|
||||
- action: TINA_MORNING_MEDS_TAKEN
|
||||
@@ -3208,6 +3244,12 @@ tina_night_meds:
|
||||
}}.
|
||||
task_name: Tina Night Medication Reminder Snarky
|
||||
entity_id: ai_task.google_ai_task
|
||||
structure:
|
||||
notification_text:
|
||||
description: The text to send in the notification to Tina's phone
|
||||
required: true
|
||||
selector:
|
||||
text:
|
||||
response_variable: response
|
||||
else:
|
||||
- alias: Generate reminder
|
||||
@@ -3217,6 +3259,12 @@ tina_night_meds:
|
||||
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
|
||||
structure:
|
||||
notification_text:
|
||||
description: The text to send in the notification to Tina's phone
|
||||
required: true
|
||||
selector:
|
||||
text:
|
||||
response_variable: response
|
||||
- delay:
|
||||
hours: 0
|
||||
@@ -3228,7 +3276,7 @@ tina_night_meds:
|
||||
who: tina
|
||||
type: alert
|
||||
title: Night Meds
|
||||
message: '{{ response.data }}'
|
||||
message: '{{ response.data.notification_text }}'
|
||||
tag: tina-night-meds
|
||||
actions:
|
||||
- action: TINA_NIGHT_MEDS_TAKEN
|
||||
|
||||
@@ -464,3 +464,51 @@
|
||||
map(attribute='attributes.friendly_name') |
|
||||
list %}
|
||||
{{ uptimekuma | join(', ') }}
|
||||
- name: Media Server Viewer Health
|
||||
unique_id: 51154ade-255e-4dcd-9b89-66910fcc1331
|
||||
unit_of_measurement: '%'
|
||||
icon: mdi:movie
|
||||
state: >
|
||||
{% set total = states.binary_sensor |
|
||||
selectattr('entity_id','in',label_entities('media_server')) |
|
||||
selectattr('entity_id','in',label_entities('viewer')) |
|
||||
list | count | int %}
|
||||
{% set up = states.binary_sensor |
|
||||
selectattr('entity_id','in',label_entities('media_server')) |
|
||||
selectattr('entity_id','in',label_entities('viewer')) |
|
||||
selectattr('state','eq','on') |
|
||||
list | count | int %}
|
||||
{{ ((up / total) * 100) | round(0) }}
|
||||
attributes:
|
||||
services_down: >
|
||||
{% set down = states.binary_sensor |
|
||||
selectattr('entity_id','in',label_entities('media_server')) |
|
||||
selectattr('entity_id','in',label_entities('viewer')) |
|
||||
selectattr('state','eq','off') |
|
||||
map(attribute='attributes.friendly_name') |
|
||||
list %}
|
||||
{{ down | join(', ') }}
|
||||
- name: Media Server Downloaders Health
|
||||
unique_id: f27867fe-700f-45bc-9e6b-8b1ee74cb724
|
||||
unit_of_measurement: '%'
|
||||
icon: mdi:tray-arrow-down
|
||||
state: >
|
||||
{% set total = states.binary_sensor |
|
||||
selectattr('entity_id','in',label_entities('media_server')) |
|
||||
selectattr('entity_id','in',label_entities('downloader')) |
|
||||
list | count | int %}
|
||||
{% set up = states.binary_sensor |
|
||||
selectattr('entity_id','in',label_entities('media_server')) |
|
||||
selectattr('entity_id','in',label_entities('downloader')) |
|
||||
selectattr('state','eq','on') |
|
||||
list | count | int %}
|
||||
{{ ((up / total) * 100) | round(0) }}
|
||||
attributes:
|
||||
services_down: >
|
||||
{% set down = states.binary_sensor |
|
||||
selectattr('entity_id','in',label_entities('media_server')) |
|
||||
selectattr('entity_id','in',label_entities('downloader')) |
|
||||
selectattr('state','eq','off') |
|
||||
map(attribute='attributes.friendly_name') |
|
||||
list %}
|
||||
{{ down | join(', ') }}
|
||||
Reference in New Issue
Block a user