From 9a2aa37609f3247be270d04178180d05b42dec9b Mon Sep 17 00:00:00 2001 From: rosetown-kelly <79489853+rosetown-kelly@users.noreply.github.com> Date: Fri, 18 Nov 2022 06:33:39 -0700 Subject: [PATCH] Add an example to detect doorbell button presses (#24740) Co-authored-by: Franck Nijhof --- source/_integrations/amcrest.markdown | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/source/_integrations/amcrest.markdown b/source/_integrations/amcrest.markdown index 3e2e7e4131d..eb4913d7be4 100644 --- a/source/_integrations/amcrest.markdown +++ b/source/_integrations/amcrest.markdown @@ -424,4 +424,25 @@ amcrest: - ptz_preset ``` +## Example Automation to Detect Button Presses on AD110 and AD410 Doorbells + +Using this trigger in an automation will allow you to detect the press of the doorbell call button and create automations based upon it. + +```yaml +# Example automations.yaml entry +alias: Doorbell Pressed +description: "Trigger when Amcrest Button Press Event Fires" +trigger: + - platform: event + event_type: amcrest + event_data: + event: "CallNoAnswered" + payload: + action: "Start" +action: + - type: flash + entity_id: light.living_room + domain: light +``` + To check if your Amcrest camera is supported/tested, visit the [supportability matrix](https://github.com/tchellomello/python-amcrest#supportability-matrix) link from the `python-amcrest` project.