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:
Alexander Heldt committed 2026-11-11 08:57:51 +00:00
1 parent 72cc9932c4
commit 36655ac153
2 files changed
+37 -4

No files matched your search

+2 -2
View File
@@ -107,7 +107,7 @@ ${sectorEntitiesYaml}
- condition: template - condition: template
value_template: "{{ trigger.from_state.state | int(-1) >= 0 and trigger.to_state.state | int(0) > trigger.from_state.state | int(0) }}" value_template: "{{ trigger.from_state.state | int(-1) >= 0 and trigger.to_state.state | int(0) > trigger.from_state.state | int(0) }}"
action: action:
- service: notify.mobile_app_pixel_9_pro - service: notify.phones
data: data:
title: "Disk SMART warning" title: "Disk SMART warning"
message: "{{ trigger.to_state.attributes.friendly_name }} increased from {{ trigger.from_state.state }} to {{ trigger.to_state.state }}" 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 - condition: template
value_template: "{{ trigger.to_state.state | lower == 'false' }}" value_template: "{{ trigger.to_state.state | lower == 'false' }}"
action: action:
- service: notify.mobile_app_pixel_9_pro - service: notify.phones
data: data:
title: "Disk SMART FAILURE" title: "Disk SMART FAILURE"
message: "{{ trigger.to_state.attributes.friendly_name }} reports SMART failure — drive is likely failing" message: "{{ trigger.to_state.attributes.friendly_name }} reports SMART failure — drive is likely failing"
@@ -51,6 +51,23 @@ recorder:
system_log: system_log:
fire_event: true 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: alert:
fridge_door: fridge_door:
name: Fridge is open name: Fridge is open
@@ -60,7 +77,7 @@ alert:
repeat: 2 repeat: 2
skip_first: true skip_first: true
notifiers: notifiers:
- mobile_app_pixel_9_pro - phones
kitchen_water_leak: kitchen_water_leak:
name: Water leak detected in the kitchen name: Water leak detected in the kitchen
@@ -69,12 +86,28 @@ alert:
state: "on" state: "on"
repeat: 5 repeat: 5
notifiers: notifiers:
- mobile_app_pixel_9_pro - phones
data: data:
ttl: 0 ttl: 0
priority: high priority: high
# Plays on the alarm stream so it sounds even when the phone is silenced # Plays on the alarm stream so it sounds even when the phone is silenced
channel: alarm_stream 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}''; ${cfg.extraConfig}'';