mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
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
|
||||
platform: state
|
||||
entity_id: binary_sensor.front_porch_button_pressed
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- id: door_opened
|
||||
platform: state
|
||||
entity_id:
|
||||
- binary_sensor.front_door_contact
|
||||
- binary_sensor.outer_garage_door
|
||||
from: "off"
|
||||
to: "on"
|
||||
|
||||
- id: door_closed
|
||||
platform: state
|
||||
entity_id:
|
||||
- binary_sensor.front_door_contact
|
||||
- binary_sensor.outer_garage_door
|
||||
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
|
||||
Reference in New Issue
Block a user