1
0
Fork 0

Notification for front door left open

This commit is contained in:
Przemek Grondek 2022-04-16 00:58:15 +02:00
parent 8729261f6f
commit 63d501afe5

View file

@ -0,0 +1,35 @@
- id: front_door_open_notify
alias: '[INFO] Front door left open'
description: ''
mode: single
trigger:
- platform: state
entity_id: lock.front_door_25f246fe_door_lock
to: unlocked
for:
hours: 0
minutes: 30
seconds: 0
condition: [ ]
action:
- service: notify.mobile_app_iphone_pg
data:
message: Front Door left unlock for 30 minutes, would you like to close it?
data:
actions:
- action: LOCK_DOOR
title: Lock door
- id: mobile_action-lock_door
alias: '[Mobile-action] Lock door'
description: ''
mode: single
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: LOCK_DOOR
action:
- service: lock.lock
target:
entity_id: lock.front_door_25f246fe_door_lock