mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 17:34:42 +00:00
Add door opened notification
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user