mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 10:18:44 +00:00
Security Module: Add notification for open door while away
This commit is contained in:
@@ -8,6 +8,7 @@ cards:
|
|||||||
entities:
|
entities:
|
||||||
- entity: input_boolean.routine_welcome_home
|
- entity: input_boolean.routine_welcome_home
|
||||||
- entity: automation.presence_arrival_detection
|
- entity: automation.presence_arrival_detection
|
||||||
|
- entity: automation.door_opened_while_away
|
||||||
- entity: automation.coming_home
|
- entity: automation.coming_home
|
||||||
- entity: automation.leaving_home
|
- entity: automation.leaving_home
|
||||||
- entity: automation.cube_knock
|
- entity: automation.cube_knock
|
||||||
|
|||||||
@@ -92,3 +92,24 @@ automation:
|
|||||||
- delay: 00:00:10
|
- delay: 00:00:10
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
entity_id: switch.camera
|
entity_id: switch.camera
|
||||||
|
|
||||||
|
- id: door_opened_while_away
|
||||||
|
alias: Security · Door opened while away
|
||||||
|
trigger:
|
||||||
|
- platform: state
|
||||||
|
entity_id: binary_sensor.front_door_on_off
|
||||||
|
to: "on"
|
||||||
|
condition:
|
||||||
|
condition: and
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: person.georgi
|
||||||
|
state: "not_home"
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.guest_mode
|
||||||
|
state: "off"
|
||||||
|
action:
|
||||||
|
- service: script.telegram_say
|
||||||
|
data:
|
||||||
|
title: "🛡 *Security Module · Door opened while away*"
|
||||||
|
message: "It seems like the front door was opened while you are away! Check the camera!"
|
||||||
|
|||||||
Reference in New Issue
Block a user