Add door opened notification

This commit is contained in:
2020-04-20 17:36:16 +03:00
parent 4d3faf30db
commit 1516d7e31c
2 changed files with 21 additions and 0 deletions
@@ -104,6 +104,7 @@ cards:
tap_action: none tap_action: none
entities: entities:
- automation.notification_phone_battery_low - automation.notification_phone_battery_low
- automation.notification_door_opened
- type: divider - type: divider
+20
View File
@@ -19,3 +19,23 @@ automation:
"Hey, your phone is running low on battery, put it on the charger!" "Hey, your phone is running low on battery, put it on the charger!"
] | random ] | random
}} }}
- alias: Notification · Door opened
trigger:
platform: state
entity_id: binary_sensor.front_door_on_off
to: "on"
for:
minutes: 2
action:
service: script.say
data_template:
title: "❕*Notification Module*"
message: >-
{{
[
"Hey, the front door is opened. Are you home?!",
"Hey, the front door has been opened for 2 minutes!"
] | random
}}