Add notifications manager

This commit is contained in:
2026-05-31 21:49:48 +02:00
parent 728577647a
commit fc6673e98b
4 changed files with 142 additions and 8 deletions

View File

@@ -0,0 +1,32 @@
notifications_manager:
module: notificationsmanager
class: NotificationsManager
priority: 100 # default priority app is 50, since the notification_manager doesn't create any sensor but is based on sensor created by many app, it's important it's created last
notifications:
back_home_notification:
recipients:
all:
services:
- notify/mobile_app_ipad_pro_11_de_pierre
conditions:
trigger_conditions:
- person.maeva == 'home'
- binary_sensor.is_bedroom_sleeping and (binary_sensor.hallway_motion or binary_sensor.corridor_motion or binary_sensor.bedroom_motion_bed_pierre)
blocking_conditions: not input_boolean.haw or not binary_sensor.someone_home
message:
content: Bisous
timeout: 600
leave_home_notification:
recipients:
all:
services:
- notify/mobile_app_macbook_m3_pro_de_pierre
conditions: input_boolean.haw and person.maeva != 'home' and binary_sensor.someone_home
message:
content: Good Bye
timeout: 600