manatee: Alert when Galleriet is above 23°C and notify both phones
Add a `binary_sensor.galleriet_too_warm` template sensor and an alert that repeats hourly while it's on. Send all Home Assistant notifications through a `phones` notify group so they reach both the Pixel and the iPhone, with a critical alert on iOS for water leaks.
This commit is contained in:
1 parent
72cc9932c4
commit
36655ac153
2 files changed
+37
-4
No files matched your search
@@ -107,7 +107,7 @@ ${sectorEntitiesYaml}
|
||||
- condition: template
|
||||
value_template: "{{ trigger.from_state.state | int(-1) >= 0 and trigger.to_state.state | int(0) > trigger.from_state.state | int(0) }}"
|
||||
action:
|
||||
- service: notify.mobile_app_pixel_9_pro
|
||||
- service: notify.phones
|
||||
data:
|
||||
title: "Disk SMART warning"
|
||||
message: "{{ trigger.to_state.attributes.friendly_name }} increased from {{ trigger.from_state.state }} to {{ trigger.to_state.state }}"
|
||||
@@ -120,7 +120,7 @@ ${smartPassedEntitiesYaml}
|
||||
- condition: template
|
||||
value_template: "{{ trigger.to_state.state | lower == 'false' }}"
|
||||
action:
|
||||
- service: notify.mobile_app_pixel_9_pro
|
||||
- service: notify.phones
|
||||
data:
|
||||
title: "Disk SMART FAILURE"
|
||||
message: "{{ trigger.to_state.attributes.friendly_name }} reports SMART failure — drive is likely failing"
|
||||
|
||||
@@ -51,6 +51,23 @@ recorder:
|
||||
system_log:
|
||||
fire_event: true
|
||||
|
||||
notify:
|
||||
# Send notifications to `phones` so they reach every phone
|
||||
- platform: group
|
||||
name: phones
|
||||
services:
|
||||
- action: mobile_app_pixel_9_pro
|
||||
- action: mobile_app_iphone
|
||||
|
||||
template:
|
||||
- binary_sensor:
|
||||
- name: Galleriet too warm
|
||||
unique_id: galleriet_too_warm
|
||||
state: "{{ states('sensor.3rd_temp_och_fuktmatare_temperature') | float(0) > 23 }}"
|
||||
availability: "{{ has_value('sensor.3rd_temp_och_fuktmatare_temperature') }}"
|
||||
# Stops a temperature hovering around 23 from re-triggering the alert
|
||||
delay_off: "00:15:00"
|
||||
|
||||
alert:
|
||||
fridge_door:
|
||||
name: Fridge is open
|
||||
@@ -60,7 +77,7 @@ alert:
|
||||
repeat: 2
|
||||
skip_first: true
|
||||
notifiers:
|
||||
- mobile_app_pixel_9_pro
|
||||
- phones
|
||||
|
||||
kitchen_water_leak:
|
||||
name: Water leak detected in the kitchen
|
||||
@@ -69,12 +86,28 @@ alert:
|
||||
state: "on"
|
||||
repeat: 5
|
||||
notifiers:
|
||||
- mobile_app_pixel_9_pro
|
||||
- phones
|
||||
data:
|
||||
ttl: 0
|
||||
priority: high
|
||||
# Plays on the alarm stream so it sounds even when the phone is silenced
|
||||
channel: alarm_stream
|
||||
# iOS equivalent: a critical alert, which bypasses silent mode and Focus
|
||||
push:
|
||||
sound:
|
||||
name: default
|
||||
critical: 1
|
||||
volume: 1.0
|
||||
|
||||
galleriet_too_warm:
|
||||
name: Galleriet is above 23°C
|
||||
message: "Galleriet is {{ states('sensor.3rd_temp_och_fuktmatare_temperature') }}°C"
|
||||
done_message: Galleriet is below 23°C again
|
||||
entity_id: binary_sensor.galleriet_too_warm
|
||||
state: "on"
|
||||
repeat: 60
|
||||
notifiers:
|
||||
- phones
|
||||
|
||||
${cfg.extraConfig}'';
|
||||
|
||||
|
||||
Reference in new issue
Block a user