home_alarm: module: homealarm class: HomeAlarm smart_conditions: trigger_conditions: not binary_sensor.someone_home or input_select.alarm_mode == 'On' blocking_conditions: input_select.alarm_mode == 'Off' opening_sensors: - binary_sensor.group_doors - binary_sensor.group_windows motion_sensors: - binary_sensor.corridor_motion - binary_sensor.hallway_motion - binary_sensor.restroom_motion - binary_sensor.garage_motion - binary_sensor.kitchen_motion - binary_sensor.mezzanine_motion - binary_sensor.living_room_presence_presence motion_intrusion_increment: 0.2 intrusion_cooldown_step: 0.1 intrusion_cooldown_interval: 60 reset_button: input_button.alarm_reset home_alarm_notifications: 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: home_alarm_armed_notification: recipients: all: services: - notify/mobile_app_iphone_de_pierre #- notify/mobile_app_mae conditions: binary_sensor.home_alarm_armed message: title: Alarme content: Activation de l'alarme timeout: 600 data: tag: home_alarm_notification home_alarm_windows_open_notification: recipients: all: services: - notify/mobile_app_iphone_de_pierre #- notify/mobile_app_mae conditions: binary_sensor.home_alarm_armed and sensor.ad_number_of_windows_open > 0 and sensor.home_alarm_intrusion_level == 0 message: title: Alarme content: "{sensor.ad_number_of_windows_open} fenĂȘtre(s) ouvertes" data: tag: home_alarm_notification push: interruption-level: critical home_alarm_doors_open_notification: recipients: all: services: - notify/mobile_app_iphone_de_pierre #- notify/mobile_app_mae conditions: binary_sensor.home_alarm_armed and sensor.ad_number_of_doors_open > 0 and sensor.home_alarm_intrusion_level == 0 message: title: Alarme content: "{sensor.ad_number_of_doors_open} porte(s) ouvertes" data: tag: home_alarm_notification push: interruption-level: critical home_alarm_unarmed_notification: recipients: all: services: - notify/mobile_app_iphone_de_pierre #- notify/mobile_app_mae conditions: not binary_sensor.home_alarm_armed message: title: Alarme content: DĂ©sactivation de l'alarme timeout: 600 clear_home_alarm_notification: recipients: all: services: - notify/mobile_app_iphone_de_pierre - notify/mobile_app_mae conditions: not binary_sensor.home_alarm_armed message: content: clear_notification data: tag: home_alarm_notification