I have a automation that notifies me and other people if a door is opened, has been left open etc.. I have all triggers in one automation and used id to select what to do for each trigger. Here is a part of it,
description: Notify target about 1st floor door sensor.
mode: single
triggers:
- alias: When 1st Floor Door Sensor changes from Closed to Open
trigger: state
entity_id:
- binary_sensor.1st_floor_door_sensor_contact
from:
- "off"
to:
- "on"
id: door_opened
- alias: When 1st Floor Door left opened for 10 mins
trigger: state
entity_id:
- binary_sensor.1st_floor_door_sensor_contact
from:
- "off"
to:
- "on"
for:
hours: 0
minutes: 0
seconds: 5
id: door_left_opened
conditions: []
actions:
- choose:
- conditions:
- condition: trigger
id:
- door_opened
sequence:
- action: notify.mobile_app_1st_floor_wallpanel
metadata: {}
data:
title: Door Open
message: Someone at the 1st floor door
data:
car_ui: true
channel: Door
tag: door_open
push:
sound: Doorbell.caf