Files
ad_trident/apps/global/notificationsmanagers.yaml
T

41 lines
1.4 KiB
YAML

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:
away:
services: notify/mobile_app_ipad_pro_11_de_pierre
conditions: input_boolean.haw and person.maeva == 'home' and not binary_sensor.is_bedroom_sleeping
sleeping:
services: notify/mobile_app_ipad_pro_11_de_pierre
conditions: input_boolean.haw and binary_sensor.is_bedroom_sleeping and (binary_sensor.hallway_motion or binary_sensor.corridor_motion or binary_sensor.bedroom_motion_bed_pierre)
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
commut_rain_notification:
recipients:
pierre:
services: notify/mobile_app_iphone_de_pierre
conditions: binary_sensor.commut_rain
message:
title: Pluie prévue sur votre trajet
content: "Il va pleuvoir dans {sensor.commut_rain_minutes_until_rain} minutes"