-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIPS.yml
More file actions
28 lines (25 loc) · 835 Bytes
/
IPS.yml
File metadata and controls
28 lines (25 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Warning! This script is buggy!!!
metadata:
name: IPS
description: Intrusion Prevention System
automations:
starters:
- type: device.event.PersonDetection
device: 玄関のドアホン - 玄関
condition:
type: and
conditions:
- type: device.state.LockUnlock
device: 家 - 玄関
state: isLocked
is: false
- type: home.state.HomePresence
state: homePresenceMode
is: HOME # Trigger when you are home to avoid lockout.
# If no one is home, it will automatically lock after 1 hour.
actions:
- type: assistant.command.OkGoogle
devices: 和室 - 和室
okGoogle: "家を閉めて。"
- type: assistant.command.Broadcast
message: "家が解錠中に人物を検出しました。IPSにより強制的に施錠します。"