alias: Doorbell id: automation_doorbell description: "Someone pushed the doorbell" trigger: - id: button_pressed platform: webhook webhook_id: "synology_doorbell_actionrule" local_only: true # - id: button_pressed # platform: event # event_type: "amcrest" # event_data: # camera: "Front Porch" # event: "AlarmLocal" - id: button_pressed trigger: event event_type: amcrest event_data: event: "CallNoAnswered" payload: action: "Start" - id: door_opened platform: state entity_id: - binary_sensor.front_door_contact - binary_sensor.outer_garage_door - binary_sensor.outer_garage_door_contact from: "off" to: "on" - id: door_closed platform: state entity_id: - binary_sensor.front_door_contact - binary_sensor.outer_garage_door - binary_sensor.outer_garage_door_contact from: "on" to: "off" action: - choose: - conditions: - condition: trigger id: button_pressed sequence: - service: notify.mobile_app_pixel_7 data: message: Someone is at the door data: image_url: "https://frigate.clintweaver.com/api/frigate_cam19/latest.jpg" - service: input_boolean.turn_on data: {} target: entity_id: input_boolean.doorbell - service: notify.dreamsurface data: title: Ding Dong message: "Someone is at the door" data: image: "https://frigate.clintweaver.com/api/frigate_cam19/latest.jpg" - service: notify.dreambox data: title: Ding Dong message: "Someone is at the door" data: image: "https://frigate.clintweaver.com/api/frigate_cam19/latest.jpg" - conditions: - condition: trigger id: door_opened - condition: state entity_id: input_boolean.doorbell state: "on" sequence: - service: input_boolean.turn_off data: {} target: entity_id: input_boolean.doorbell